finished admin/users i18n + dry the admin i18n

This commit is contained in:
Manuel Wiedenmann 2013-02-04 01:38:18 +07:00
parent 75c9338fd9
commit 64b3d7e17d
13 changed files with 78 additions and 56 deletions

View file

@ -1,7 +1,7 @@
%p= t('.first_paragraph', url: link_to(t('.here'), new_invite_path(id: @workgroup.id), remote: true)).html_safe
= simple_form_for [:admin, @workgroup] do |f|
= render :layout => 'shared/group_form_fields', :locals => {:f => f} do
%h4 Zugriff auf
%h4= t 'admin.access_to'
= f.input :role_admin
= f.input :role_finance
= f.input :role_suppliers
@ -9,4 +9,4 @@
= f.input :role_orders
.form-actions
= f.button :submit
= link_to t('.or_cancel'), :back
= link_to t('admin.or_cancel'), :back

View file

@ -6,8 +6,8 @@
%tr
%th= t '.name'
%th= t '.members'
%th= t '.access_to'
%th= t '.actions'
%th= t 'admin.access_to'
%th= t 'admin.actions'
%tbody
- for workgroup in @workgroups
%tr
@ -15,6 +15,6 @@
%td= workgroup.users.size
%td= format_roles(workgroup)
%td
= link_to t('.edit'), edit_admin_workgroup_path(workgroup), class: 'btn btn-mini'
= link_to t('.delete'), [:admin, workgroup], :confirm => t('.confirm', name: workgroup.name),
= 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),
:method => :delete, class: 'btn btn-mini btn-danger'

View file

@ -10,6 +10,6 @@
= form_tag admin_workgroups_path, :method => :get, :remote => true,
'data-submit-onchange' => true, class: 'form-search' do
= text_field_tag :query, params[:query], class: 'input-medium search-query',
placeholder: t('.search_placeholder')
placeholder: t('admin.search_placeholder')
#workgroups
= render "workgroups"