move commonly used verbs to common i18n identifier

This commit is contained in:
wvengen 2013-04-04 02:49:52 +02:00
parent 4aa40b387a
commit f1d6df9ecc
60 changed files with 50 additions and 111 deletions

View file

@ -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'

View file

@ -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'

View file

@ -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)

View file

@ -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

View file

@ -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'

View file

@ -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')

View file

@ -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