start articles i18n
This commit is contained in:
parent
b81f414ae5
commit
cb537bc11c
7 changed files with 54 additions and 32 deletions
|
@ -7,13 +7,13 @@
|
||||||
%td= truncate(article.note, :length => 11)
|
%td= truncate(article.note, :length => 11)
|
||||||
%td= article.unit_quantity
|
%td= article.unit_quantity
|
||||||
%td{:class => "currency"}
|
%td{:class => "currency"}
|
||||||
%acronym{:title => "zuletzt geändert: #{format_date(article.updated_at)} | Brutto: #{number_to_currency(article.gross_price)}"}
|
%acronym{:title => t('.last_update', last_update: format_date(article.updated_at), gross_price: number_to_currency(article.gross_price))}
|
||||||
= number_to_currency(article.price)
|
= number_to_currency(article.price)
|
||||||
%td= number_to_percentage(article.tax) if article.tax != 0
|
%td= number_to_percentage(article.tax) if article.tax != 0
|
||||||
%td= number_to_currency(article.deposit) if article.deposit != 0
|
%td= number_to_currency(article.deposit) if article.deposit != 0
|
||||||
%td= link_to "Bearbeiten", edit_supplier_article_path(@supplier, article),
|
%td= link_to t('ui.edit'), edit_supplier_article_path(@supplier, article),
|
||||||
:remote => true, class: 'btn btn-mini'
|
:remote => true, class: 'btn btn-mini'
|
||||||
%td= link_to "Löschen", [@supplier, article],
|
%td= link_to t('ui.delete'), [@supplier, article],
|
||||||
:method => :delete, :confirm => 'Bist du sicher?', :remote => true, class: 'btn btn-mini btn-danger'
|
:method => :delete, :confirm => t('.confirm_delete'), :remote => true, class: 'btn btn-mini btn-danger'
|
||||||
|
|
||||||
|
|
|
@ -6,15 +6,15 @@
|
||||||
%thead
|
%thead
|
||||||
%tr
|
%tr
|
||||||
%th
|
%th
|
||||||
%th= sort_link_helper "Name", "name"
|
%th= sort_link_helper t('simple_form.labels.article.name'), "name"
|
||||||
%th
|
%th
|
||||||
%th= sort_link_helper "Kategorie", "category"
|
%th= sort_link_helper t('simple_form.labels.article.article_category'), "category"
|
||||||
%th= sort_link_helper "Einheit", "unit"
|
%th= sort_link_helper t('simple_form.labels.article.unit'), "unit"
|
||||||
%th= sort_link_helper "Notiz", "note"
|
%th= sort_link_helper t('simple_form.labels.article.note'), "note"
|
||||||
%th{:style => "width: 4em;"} Gebgr.
|
%th{:style => "width: 4em;"}= t '.unit_quantity'
|
||||||
%th{:style => "width: 5em;"} Preis
|
%th{:style => "width: 5em;"}= t '.price_netto'
|
||||||
%th{:style => "width: 3.5em;"} MwSt
|
%th{:style => "width: 3.5em;"}= t 'simple_form.labels.defaults.tax'
|
||||||
%th{:style => "width: 4em;"} Pfand
|
%th{:style => "width: 4em;"}= t 'simple_form.labels.defaults.deposit'
|
||||||
%th{:style => "width: 3em;"}
|
%th{:style => "width: 3em;"}
|
||||||
|
|
||||||
%tbody#listbody
|
%tbody#listbody
|
||||||
|
@ -27,10 +27,10 @@
|
||||||
%td{:colspan => '11'}
|
%td{:colspan => '11'}
|
||||||
= check_box_tag :checkall, 1, false, 'data-check-all' => '#articlesInListForm', 'data-ignore-onchange' => true
|
= check_box_tag :checkall, 1, false, 'data-check-all' => '#articlesInListForm', 'data-ignore-onchange' => true
|
||||||
%select{:name => "selected_action", 'data-submit-onchange' => true}
|
%select{:name => "selected_action", 'data-submit-onchange' => true}
|
||||||
%option{:value => '', :selected => 'selected'} Aktion wählen ...
|
%option{:value => '', :selected => 'selected'}= t '.option_select'
|
||||||
%option{:value => "destroy", 'data-confirm' => 'Willst Du wirklich alle gewählten Artikel löschen?'} Artikel löschen
|
%option{:value => "destroy", 'data-confirm' => t('.confirm_delete')}= t '.option_delete'
|
||||||
%option{:value => "setNotAvailable"} Artikel sind nicht mehr verfügbar
|
%option{:value => "setNotAvailable"}= t '.option_not_available'
|
||||||
%option{:value => "setAvailable"} Artikel sind verfügbar
|
%option{:value => "setAvailable"}= t '.option_available'
|
||||||
= hidden_field_tag 'supplier_id', @supplier.id
|
= hidden_field_tag 'supplier_id', @supplier.id
|
||||||
|
|
||||||
= pagination_links_remote @articles
|
= pagination_links_remote @articles
|
|
@ -1,7 +1,3 @@
|
||||||
%tr.edit_inline{:id=> "edit_"+@article.id.to_s}
|
%tr.edit_inline{:id=> "edit_"+@article.id.to_s}
|
||||||
%td{:colspan=>"10"}
|
%td{:colspan=>"10"}
|
||||||
=h @article.name
|
= t('.note', article: h(@article.name), drop_link: link_to(t('.drop'), :controller => 'orders', :action => 'edit', :id => @order)).html_safe
|
||||||
wird in laufenden Bestellungen verwendet und kann nicht gelöscht werden.
|
|
||||||
Bitte zuerst den Artikel aus den Bestellungen
|
|
||||||
= link_to "entfernen", :controller => 'orders', :action => 'edit', :id => @order
|
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
= f.hidden_field :shared_updated_on
|
= f.hidden_field :shared_updated_on
|
||||||
= f.hidden_field :supplier_id
|
= f.hidden_field :supplier_id
|
||||||
.modal-header
|
.modal-header
|
||||||
= button_tag "x", class: 'close', data: {dismiss: 'modal'}
|
= button_tag t('ui.marks.close'), class: 'close', data: {dismiss: 'modal'}
|
||||||
%h3 Neuen Artikel einfügen
|
%h3= t '.title'
|
||||||
.modal-body
|
.modal-body
|
||||||
= f.input :availability
|
= f.input :availability
|
||||||
= f.input :name
|
= f.input :name
|
||||||
|
@ -19,6 +19,6 @@
|
||||||
= f.input :tax
|
= f.input :tax
|
||||||
= f.input :deposit
|
= f.input :deposit
|
||||||
.modal-footer
|
.modal-footer
|
||||||
= button_tag "Schließen", class: 'btn', data: {dismiss: 'modal'}
|
= button_tag t('ui.close'), class: 'btn', data: {dismiss: 'modal'}
|
||||||
= f.submit class: 'btn btn-primary'
|
= f.submit class: 'btn btn-primary'
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,10 @@
|
||||||
- title "Alle Artikel von #{@supplier.name} bearbeiten" |
|
- title t('.title', supplier: @supplier.name)
|
||||||
%p
|
%p
|
||||||
%i
|
%i= t '.note'
|
||||||
Pflichtfelder sind: Name, Einheit, (netto) Preis und Bestellnummer.
|
|
||||||
= form_tag(update_all_supplier_articles_path(@supplier)) do
|
= form_tag(update_all_supplier_articles_path(@supplier)) do
|
||||||
= render 'edit_all_table'
|
= render 'edit_all_table'
|
||||||
%br/
|
%br/
|
||||||
%i Achtung, alle Artikel werden aktualisiert!
|
%i= t '.warning'
|
||||||
.form-actions
|
.form-actions
|
||||||
= submit_tag 'Alle Artikel aktualisieren', class: 'btn btn-primary'
|
= submit_tag t('.submit'), class: 'btn btn-primary'
|
||||||
= link_to 'oder abbrechen', supplier_articles_path(@supplier)
|
= link_to t('.or_cancel'), supplier_articles_path(@supplier)
|
||||||
|
|
26
config/locales/de/de.articles.yml
Normal file
26
config/locales/de/de.articles.yml
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
de:
|
||||||
|
articles:
|
||||||
|
article:
|
||||||
|
last_update: 'zuletzt geändert: %{last_update} | Brutto: %{gross_price}'
|
||||||
|
confirm_delete: 'Bist du sicher?'
|
||||||
|
articles:
|
||||||
|
unit_quantity: 'Gebgr.'
|
||||||
|
price_netto: 'Preis'
|
||||||
|
option_select: 'Aktion wählen ...'
|
||||||
|
option_delete: 'Artikel löschen'
|
||||||
|
confirm_delete: 'Willst Du wirklich alle gewählten Artikel löschen?'
|
||||||
|
option_not_available: 'Artikel sind nicht mehr verfügbar'
|
||||||
|
option_available: 'Artikel sind verfügbar'
|
||||||
|
destroy_active_article:
|
||||||
|
note: >
|
||||||
|
%{article} wird in laufenden Bestellungen verwendet und kann nicht gelöscht werden.
|
||||||
|
Bitte zuerst den Artikel aus den Bestellungen %{drop_link}.
|
||||||
|
drop: 'entfernen'
|
||||||
|
edit_all:
|
||||||
|
title: 'Alle Artikel von %{supplier} bearbeiten'
|
||||||
|
note: 'Pflichtfelder sind: Name, Einheit, (netto) Preis und Bestellnummer.'
|
||||||
|
warning: 'Achtung, alle Artikel werden aktualisiert!'
|
||||||
|
submit: 'Alle Artikel aktualisieren'
|
||||||
|
or_cancel: 'oder abbrechen'
|
||||||
|
form:
|
||||||
|
title: 'Neuen Artikel einfügen'
|
|
@ -81,6 +81,7 @@ de:
|
||||||
min_order_quantity: 'Mindestbestellmenge'
|
min_order_quantity: 'Mindestbestellmenge'
|
||||||
is_subscribed: 'abonniert?'
|
is_subscribed: 'abonniert?'
|
||||||
article:
|
article:
|
||||||
|
name: 'Name'
|
||||||
availability: 'Artikel ist verfügbar?'
|
availability: 'Artikel ist verfügbar?'
|
||||||
origin: 'Herkunft'
|
origin: 'Herkunft'
|
||||||
manufacturer: 'Produzent'
|
manufacturer: 'Produzent'
|
||||||
|
|
Loading…
Reference in a new issue