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

@ -8,4 +8,4 @@
= f.input :ignore_apple_restriction
.form-actions
= f.button :submit
= link_to t('.or_cancel'), :back
= link_to t('admin.or_cancel'), :back

View file

@ -8,7 +8,7 @@
%th= t '.contact'
%th= t '.address'
%th= t '.members'
%th= t '.actions'
%th= t 'admin.actions'
%tbody
- for ordergroup in @ordergroups
%tr{:class => cycle('even','odd', :name => 'groups')}
@ -17,6 +17,6 @@
%td= link_to_gmaps ordergroup.contact_address
%td= ordergroup.users.size
%td
= link_to t('.edit'), edit_admin_ordergroup_path(ordergroup), class: 'btn btn-mini'
= link_to t('.delete'), [:admin, ordergroup], :confirm => t('.confirm', name: ordergroup.name),
= 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'

View file

@ -10,6 +10,6 @@
= form_tag admin_ordergroups_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')
#ordergroups
= render "ordergroups"