Introduced actionbar. Some fixes for balancing page.

This commit is contained in:
benni 2012-11-12 13:13:01 +01:00
parent 1d9815731c
commit f4f10b1e4c
26 changed files with 90 additions and 78 deletions

View file

@ -1,7 +1,9 @@
- title "Kontoauszug für #{@ordergroup.name}"
- content_for :actionbar do
= link_to 'Neue Transaktion anlegen', new_finance_ordergroup_transaction_path(@ordergroup), class: 'btn btn-primary'
- content_for :sidebar do
%p= link_to 'Neue Transaktion anlegen', new_finance_ordergroup_transaction_path(@ordergroup), class: 'btn btn-primary'
.well.well-small
%strong Kontostand: #{number_to_currency(@ordergroup.account_balance)}
%br/

View file

@ -7,5 +7,6 @@
= f.hidden_field :ordergroup_id
= f.input :amount
= f.input :note, :as => :text
= f.submit
= link_to "oder abbrechen", finance_ordergroup_transactions_path(@ordergroup)
.form-actions
= f.submit class: 'btn btn-primary'
= link_to "oder abbrechen", finance_ordergroup_transactions_path(@ordergroup)