move commonly used verbs to common i18n identifier
This commit is contained in:
parent
4aa40b387a
commit
f1d6df9ecc
60 changed files with 50 additions and 111 deletions
|
|
@ -8,4 +8,4 @@
|
|||
= f.input :ignore_apple_restriction
|
||||
.form-actions
|
||||
= f.button :submit
|
||||
= link_to t('admin.or_cancel'), :back
|
||||
= link_to t('ui.or_cancel'), :back
|
||||
|
|
|
|||
|
|
@ -17,6 +17,6 @@
|
|||
%td= link_to_gmaps ordergroup.contact_address
|
||||
%td= ordergroup.users.size
|
||||
%td
|
||||
= link_to t('admin.edit'), edit_admin_ordergroup_path(ordergroup), class: 'btn btn-mini'
|
||||
= link_to t('admin.delete'), [:admin, ordergroup], :confirm => t('admin.confirm', name: ordergroup.name),
|
||||
:method => :delete, class: 'btn btn-mini btn-danger'
|
||||
= link_to t('ui.edit'), edit_admin_ordergroup_path(ordergroup), class: 'btn btn-mini'
|
||||
= link_to t('ui.delete'), [:admin, ordergroup], :confirm => t('admin.confirm', name: ordergroup.name),
|
||||
:method => :delete, class: 'btn btn-mini btn-danger'
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
- title t '.title', name: @ordergroup.name
|
||||
|
||||
%section= render 'shared/group', group: @ordergroup
|
||||
= link_to t('.edit'), edit_admin_ordergroup_path(@ordergroup), class: 'btn'
|
||||
= link_to t('.delete'), [:admin, @ordergroup], :confirm => t('.confirm'), :method => :delete, class: 'btn btn-danger'
|
||||
= link_to t('ui.edit'), edit_admin_ordergroup_path(@ordergroup), class: 'btn'
|
||||
= link_to t('ui.delete'), [:admin, @ordergroup], :confirm => t('.confirm'), :method => :delete, class: 'btn btn-danger'
|
||||
= link_to t('.send_message'), new_message_path(:message => {:group_id => @ordergroup.id}), class: 'btn'
|
||||
|
|
|
|||
|
|
@ -2,4 +2,4 @@
|
|||
= render 'shared/user_form_fields', f: f
|
||||
.form-actions
|
||||
= f.submit
|
||||
= link_to t('admin.or_cancel'), :back
|
||||
= link_to t('ui.or_cancel'), :back
|
||||
|
|
|
|||
|
|
@ -18,6 +18,6 @@
|
|||
%td= user.email
|
||||
%td= format_roles(user)
|
||||
%td= format_time(user.last_login)
|
||||
%td= link_to t('admin.edit'), edit_admin_user_path(user), class: 'btn btn-mini'
|
||||
%td= link_to t('admin.delete'), [:admin, user], :confirm => t('admin.confirm', name: user.name),
|
||||
%td= link_to t('ui.edit'), edit_admin_user_path(user), class: 'btn btn-mini'
|
||||
%td= link_to t('ui.delete'), [:admin, user], :confirm => t('admin.confirm', name: user.name),
|
||||
:method => :delete, class: 'btn btn-danger btn-mini'
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@
|
|||
|
||||
%hr/
|
||||
%p
|
||||
= link_to t('admin.edit'), edit_admin_user_path(@user), class: 'btn'
|
||||
= link_to t('admin.delete'), [:admin, @user], :confirm => t('.confirm', user: @user.first_name),
|
||||
= link_to t('ui.edit'), edit_admin_user_path(@user), class: 'btn'
|
||||
= link_to t('ui.delete'), [:admin, @user], :confirm => t('.confirm', user: @user.first_name),
|
||||
:method => :delete, class: 'btn btn-danger'
|
||||
= link_to t('.send_message'), new_message_path(:message => {:mail_to => @user.id}), class: 'btn'
|
||||
|
|
|
|||
|
|
@ -9,4 +9,4 @@
|
|||
= f.input :role_orders
|
||||
.form-actions
|
||||
= f.button :submit
|
||||
= link_to t('admin.or_cancel'), :back
|
||||
= link_to t('ui.or_cancel'), :back
|
||||
|
|
|
|||
|
|
@ -15,6 +15,6 @@
|
|||
%td= workgroup.users.size
|
||||
%td= format_roles(workgroup)
|
||||
%td
|
||||
= link_to t('admin.edit'), edit_admin_workgroup_path(workgroup), class: 'btn btn-mini'
|
||||
= link_to t('admin.delete'), [:admin, workgroup], :confirm => t('admin.confirm', name: workgroup.name),
|
||||
= link_to t('ui.edit'), edit_admin_workgroup_path(workgroup), class: 'btn btn-mini'
|
||||
= link_to t('ui.delete'), [:admin, workgroup], :confirm => t('admin.confirm', name: workgroup.name),
|
||||
:method => :delete, class: 'btn btn-mini btn-danger'
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
- title t '.title', name: @workgroup.name
|
||||
|
||||
%section= render 'shared/group', group: @workgroup
|
||||
= link_to t('.edit'), edit_admin_workgroup_path(@workgroup), class: 'btn'
|
||||
= link_to t('.delete'), [:admin, @workgroup], :confirm => t('.confirm'), :method => :delete, class: 'btn btn-danger'
|
||||
= link_to_new_message(message_params: {group_id: @workgroup.id})
|
||||
= link_to t('ui.edit'), edit_admin_workgroup_path(@workgroup), class: 'btn'
|
||||
= link_to t('ui.delete'), [:admin, @workgroup], :confirm => t('.confirm'), :method => :delete, class: 'btn btn-danger'
|
||||
= link_to_new_message(message_params: {group_id: @workgroup.id})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue