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})
|
||||
|
|
|
|||
|
|
@ -3,4 +3,4 @@
|
|||
= f.input :description
|
||||
.form-actions
|
||||
= f.submit class: 'btn'
|
||||
= link_to t('.or_cancel'), article_categories_path
|
||||
= link_to t('ui.or_cancel'), article_categories_path
|
||||
|
|
|
|||
|
|
@ -7,4 +7,4 @@
|
|||
%i= t '.warning'
|
||||
.form-actions
|
||||
= submit_tag t('.submit'), class: 'btn btn-primary'
|
||||
= link_to t('.or_cancel'), supplier_articles_path(@supplier)
|
||||
= link_to t('ui.or_cancel'), supplier_articles_path(@supplier)
|
||||
|
|
|
|||
|
|
@ -5,5 +5,5 @@
|
|||
= render 'edit_all_table'
|
||||
.form-actions
|
||||
= submit_tag t('.submit', supplier: @supplier.name), class: 'btn btn-primary'
|
||||
= link_to t('.or_cancel'), upload_supplier_articles_path(@supplier)
|
||||
= link_to t('ui.or_cancel'), upload_supplier_articles_path(@supplier)
|
||||
|
||||
|
|
|
|||
|
|
@ -64,4 +64,4 @@
|
|||
%hr/
|
||||
= hidden_field 'supplier', 'id'
|
||||
= submit_tag t('.submit'), class: 'btn btn-primary'
|
||||
= link_to t('.or_cancel'), supplier_articles_path(@supplier)
|
||||
= link_to t('ui.or_cancel'), supplier_articles_path(@supplier)
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
= simple_form_for @order, url: update_note_finance_order_path(@order), remote: true, method: :put do |f|
|
||||
.modal-header
|
||||
= button_tag "x", class: 'close', data: {dismiss: 'modal'}
|
||||
= button_tag t('ui.marks.close'), class: 'close', data: {dismiss: 'modal'}
|
||||
%h3 Notiz bearbeiten
|
||||
.modal-body
|
||||
= f.input :note, input_html: {class: 'input-xlarge'}
|
||||
.modal-footer
|
||||
= button_tag t('.close'), class: 'btn', data: {dismiss: 'modal'}
|
||||
= f.submit , class: 'btn btn-primary'
|
||||
= button_tag t('ui.close'), class: 'btn', data: {dismiss: 'modal'}
|
||||
= f.submit , class: 'btn btn-primary'
|
||||
|
|
|
|||
|
|
@ -19,8 +19,8 @@
|
|||
%td= order_article.price.tax
|
||||
%td= order_article.price.deposit
|
||||
%td
|
||||
= link_to t('.edit'), edit_finance_order_order_article_path(order_article.order, order_article), remote: true,
|
||||
= link_to t('ui.edit'), edit_finance_order_order_article_path(order_article.order, order_article), remote: true,
|
||||
class: 'btn btn-mini'
|
||||
%td
|
||||
= link_to t('.delete'), finance_order_order_article_path(order_article.order, order_article), method: :delete,
|
||||
remote: true, confirm: t('.confirm'), class: 'btn btn-danger btn-mini'
|
||||
= link_to t('ui.delete'), finance_order_order_article_path(order_article.order, order_article), method: :delete,
|
||||
remote: true, confirm: t('.confirm'), class: 'btn btn-danger btn-mini'
|
||||
|
|
|
|||
|
|
@ -9,4 +9,4 @@
|
|||
= f.input :note, :as => :text
|
||||
.form-actions
|
||||
= f.submit class: 'btn btn-primary'
|
||||
= link_to t('.or_cancel'), finance_ordergroup_transactions_path(@ordergroup)
|
||||
= link_to t('ui.or_cancel'), finance_ordergroup_transactions_path(@ordergroup)
|
||||
|
|
|
|||
|
|
@ -33,4 +33,4 @@
|
|||
= link_to t('.new_ordergroup'), '#', 'data-add-transaction' => true, class: 'btn'
|
||||
.form-actions
|
||||
= submit_tag t('.save'), class: 'btn btn-primary'
|
||||
= link_to t('.or_cancel'), finance_ordergroups_path
|
||||
= link_to t('ui.or_cancel'), finance_ordergroups_path
|
||||
|
|
|
|||
|
|
@ -7,5 +7,5 @@
|
|||
= form.input :ordergroup_id, as: :select, collection: Ordergroup.all.map { |g| [g.name, g.id] }
|
||||
= form.input :result, hint: "Einheit: #{@order_article.article.unit}"
|
||||
.modal-footer
|
||||
= button_tag t('.close'), class: 'btn', data: {dismiss: 'modal'}
|
||||
= form.submit t('.save'), class: 'btn btn-primary'
|
||||
= button_tag t('ui.close'), class: 'btn', data: {dismiss: 'modal'}
|
||||
= form.submit t('ui.save'), class: 'btn btn-primary'
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
%td= format_date(invoice.date)
|
||||
%td.numeric= number_to_currency(invoice.amount)
|
||||
%td= invoice.supplier.name
|
||||
%td= link_to t('.edit'), edit_finance_invoice_path(invoice), class: 'btn btn-mini'
|
||||
%td= link_to t('ui.edit'), edit_finance_invoice_path(invoice), class: 'btn btn-mini'
|
||||
|
||||
%h2
|
||||
= t('.last_transactions')
|
||||
|
|
@ -57,4 +57,4 @@
|
|||
%td.numeric= number_to_currency(order.sum(:fc))
|
||||
%td= link_to t('.clear'), new_finance_order_path(order_id: order.id), class: 'btn btn-mini'
|
||||
- else
|
||||
= t('.everything_cleared')
|
||||
= t('.everything_cleared')
|
||||
|
|
|
|||
|
|
@ -17,4 +17,4 @@
|
|||
= f.input :note
|
||||
.form-actions
|
||||
= f.submit class: 'btn'
|
||||
= link_to t('.or_cancel'), :back
|
||||
= link_to t('ui.or_cancel'), :back
|
||||
|
|
|
|||
|
|
@ -5,4 +5,4 @@
|
|||
= render :partial => 'shared/group_form_fields', :locals => {:f => f}
|
||||
.form-actions
|
||||
= f.submit
|
||||
= link_to t('.or_cancel'), foodcoop_workgroups_path
|
||||
= link_to t('ui.or_cancel'), foodcoop_workgroups_path
|
||||
|
|
|
|||
|
|
@ -138,6 +138,6 @@
|
|||
€
|
||||
#order-button
|
||||
= submit_tag( t('.action_save'), id: 'submit_button', class: 'btn btn-primary' )
|
||||
#{link_to t('.cancel'), group_orders_path}
|
||||
#{link_to t('ui.or_cancel'), group_orders_path}
|
||||
%input#total_balance{name: "total_balance", type: "hidden", value: @ordergroup.account_balance - @group_order.price}/
|
||||
%input{name: "version", type: "hidden", value: @version}/
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
= simple_form_for(@current_user, :url => { :action => 'update_profile'}) do |f|
|
||||
= render :partial => 'shared/user_form_fields', :locals => {:f => f}
|
||||
.form-actions
|
||||
= submit_tag t('.user.save'), class: 'btn'
|
||||
= submit_tag t('ui.save'), class: 'btn'
|
||||
.span5
|
||||
%h2= t '.groups.title'
|
||||
%table.table.table-striped
|
||||
|
|
|
|||
|
|
@ -4,4 +4,4 @@
|
|||
= form.input :email
|
||||
.form-actions
|
||||
= form.submit t('.submit'), class: 'btn'
|
||||
= link_to t('.cancel'), :back
|
||||
= link_to t('ui.or_cancel'), :back
|
||||
|
|
|
|||
|
|
@ -43,4 +43,4 @@
|
|||
= f.input :body, input_html: {class: 'input-xxlarge'}
|
||||
.form-actions
|
||||
= f.submit class: 'btn btn-primary'
|
||||
= link_to t('.cancel'), :back
|
||||
= link_to t('ui.or_cancel'), :back
|
||||
|
|
|
|||
|
|
@ -81,4 +81,4 @@
|
|||
= f.label :contact_address
|
||||
%br/
|
||||
= f.text_field :contact_address
|
||||
%p= f.submit t('.submit')
|
||||
%p= f.submit t('ui.edit')
|
||||
|
|
|
|||
|
|
@ -51,4 +51,4 @@
|
|||
|
||||
.form-actions
|
||||
= f.submit class: 'btn'
|
||||
= link_to t('.cancel'), orders_path
|
||||
= link_to t('ui.or_cancel'), orders_path
|
||||
|
|
|
|||
|
|
@ -4,4 +4,4 @@
|
|||
= f.input :date
|
||||
= f.input :note
|
||||
= f.submit
|
||||
= link_to t('.cancel'), stock_takings_path
|
||||
= link_to t('ui.cancel'), stock_takings_path
|
||||
|
|
|
|||
|
|
@ -14,4 +14,4 @@
|
|||
= render :partial => 'stock_change', :collection => @stock_taking.stock_changes
|
||||
.form-actions
|
||||
= f.submit class: 'btn'
|
||||
= link_to t('.cancel'), stock_takings_path
|
||||
= link_to t('ui.cancel'), stock_takings_path
|
||||
|
|
|
|||
|
|
@ -13,4 +13,4 @@
|
|||
= f.association :article_category
|
||||
.form-actions
|
||||
= f.submit class: 'btn'
|
||||
= link_to t('.cancel'), stock_articles_path
|
||||
= link_to t('ui.or_cancel'), stock_articles_path
|
||||
|
|
|
|||
|
|
@ -18,4 +18,4 @@
|
|||
= f.input :min_order_quantity
|
||||
.form-actions
|
||||
= f.submit class: 'btn'
|
||||
= link_to t('.cancel'), suppliers_path
|
||||
= link_to t('ui.or_cancel'), suppliers_path
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue