Translations and other little improvements.

This commit is contained in:
Benjamin Meichsner 2009-02-12 21:38:41 +01:00
parent 951d19db6a
commit a0e10141dc
17 changed files with 63 additions and 58 deletions

View file

@ -1,6 +1,6 @@
%tr.transaction
%td
%select{:name => 'financial_transactions[][ordergroup_id]'}
= options_for_select Ordergroup.find(:all, :order => 'name').collect { |g| [ g.name, g.id ] }
= options_for_select Ordergroup.without_deleted.all(:order => 'name').collect { |g| [ g.name, g.id ] }
%td= text_field_tag 'financial_transactions[][amount]'
%td= link_to_function image_tag("b_drop.png", :size => "16x16", :alt => _("Remove"), :border => "0"), "$(this).up('.transaction').remove()", {:title => _("Remove ordergroup")}
%td= link_to_function icon(:delete), "$(this).up('.transaction').remove()", {:title => "Gruppe enfernen"}

View file

@ -1,5 +1,5 @@
%p
= _("Found") + ":"
Gefunden:
= @total
%p
%table{:style => "width:100%"}
@ -12,9 +12,9 @@
%table.list
%thead
%tr
%th= sort_link_helper _("Name"), "name", @per_page
%th= sort_link_helper "Name", "name", @per_page
%th Kontakt
%th= sort_link_helper _("Account balance"), "account_balance", @per_page
%th= sort_link_helper "Kontostand", "account_balance", @per_page
%th
%tbody
- for group in @groups
@ -23,6 +23,6 @@
%td= group.contact
%td{:class => "currency", :style => "width:5em"}= number_to_currency(group.account_balance)
%td{:class => "actions"}
= link_to image_tag("euro_new.png", :size => "16x16", :alt => _("New transaction"), :border => "0"), {:action => 'new', :id => group}, {:title => _("New transaction")}
= link_to image_tag("b_browse.png", :size => "16x16", :border => "0", :alt => 'Kontoauszug'), {:action => 'list', :id => group}, {:title => _("List transactions")}
= link_to image_tag("euro_new.png", :size => "16x16", :alt => "Neue Transaktion", :border => "0"), {:action => 'new', :id => group}, {:title => "Neue Transaktion"}
= link_to image_tag("b_browse.png", :size => "16x16", :border => "0", :alt => 'Kontoauszug'), {:action => 'list', :id => group}, {:title => "Kontoauszug"}

View file

@ -1,16 +1,16 @@
%h1 Manage accounts
- title "Konten verwalten"
%p
%i
=_ "To create multiple transactions at once please follow this "
= link_to _("link"), :action => 'new_collection'
Um mehrer Transaktionen auf einmal anzulegen folge bitte diesem
= link_to _("Link"), :action => 'new_collection'
.left_column{:style=>"width:50em"}
.box_title
%h2=_ "Ordergroups"
%h2 Bestellgruppen
.column_content
#group_filter
%form{:name=>"sform", :action=>"", :style=>"display:inline;"}
%label{:for => 'article_name'}= _("Search in name") + ":"
Suchen im Namen:
= text_field_tag("query", params['query'], :size => 10 )
= observe_field 'query', :frequency => 2, |

View file

@ -1,21 +1,21 @@
%h1 New transaction
- title "Neue Transaktion"
.edit_form{ :style => "width:30em" }
- form_for(@financial_transaction, :url => { :action => 'create' }) do |f|
- form_for @financial_transaction, :url => {:action => 'create'} do |f|
= f.error_messages
= f.hidden_field :ordergroup_id
%p
Group:
Bestellgruppe:
%b=h @group.name
%p
= f.label :amount
Betrag
%br/
= f.text_field :amount, :size => 10
%p
= f.label :note
Notiz
%br/
= f.text_area :note, :cols => 40, :rows => 5
%p
= submit_tag "Save"
= link_to "Back", :controller => 'transactions'
= submit_tag "Speichern"
|
= link_to "Abbrechen", :controller => 'transactions'

View file

@ -1,20 +1,20 @@
- title _("Update multiple accounts")
- title "Mehrer Konten aktualisieren"
- form_tag :action => "create_collection" do
%p
%b= _("Note") + ":"
%b Notiz
= text_field_tag "note"
%p
%table#Ordergroups{:style => "width:20em"}
%tr
%th=_ "Ordergroup"
%th=_ "Amount"
%th Bestellgruppe
%th Betrag
= render :partial => 'ordergroup', :collection => [1, 2, 3]
%p
= link_to_function _("Add another ordergroup") do |page|
= link_to_function "Neue Bestellgruppe hinzufügen" do |page|
- page.insert_html :bottom, :Ordergroups, :partial => 'ordergroup'
%p
= submit_tag _("Save")
= submit_tag "Transaktionen speichern"
|
= link_to _("Cancel"), :controller => 'finance/transactions'
= link_to "Abbrechen", :controller => 'finance/transactions'