Add a shortcut for cloning profiles

This commit is contained in:
Petko Bordjukov 2016-10-09 04:45:01 +03:00
parent e762acebfb
commit 74e778860a
2 changed files with 6 additions and 0 deletions

View File

@ -50,6 +50,9 @@
- if profile.present?
= action_buttons(@conference, profile, [:show, :edit, :destroy])
- else
- if user.personal_profiles.any?
= link_to [:management, @conference, :personal_profiles, {personal_profile: {user_id: user.id}}], class: ['btn', 'btn-primary'], title: t('actions.clone.title', model: PersonalProfile.model_name.human), method: :post do
=> icon('clone')
= link_to [:new, :management, @conference, :personal_profile, {user_id: user.id}], class: ['btn', 'btn-primary'], title: t('actions.create.title', model: PersonalProfile.model_name.human) do
=> icon('user-plus')
.panel-footer.text-right

View File

@ -39,6 +39,9 @@ bg:
update: "Обнови кандидатурата"
actions:
are_you_sure: "Сигурен ли си?"
clone:
button: "Клонирай %{model}"
title: "Клониране на съществуващ %{model}"
create:
button: "Създай %{model}"
title: "Създаване на %{model}"