Moved financial_transaction into the new finance-namespace.
This commit is contained in:
parent
1d85b880f2
commit
c282cae79c
19 changed files with 167 additions and 153 deletions
21
app/views/finance/transactions/new.html.haml
Normal file
21
app/views/finance/transactions/new.html.haml
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
%h1 New transaction
|
||||
|
||||
.edit_form{ :style => "width:30em" }
|
||||
- form_for(@financial_transaction, :url => { :action => 'create' }) do |f|
|
||||
= f.error_messages
|
||||
= f.hidden_field :order_group_id
|
||||
%p
|
||||
Group:
|
||||
%b=h @group.name
|
||||
%p
|
||||
= f.label :amount
|
||||
%br/
|
||||
= f.text_field :amount, :size => 10
|
||||
%p
|
||||
= f.label :note
|
||||
%br/
|
||||
= f.text_area :note, :cols => 40, :rows => 5
|
||||
%p
|
||||
= submit_tag "Save"
|
||||
|
||||
= link_to "Back", :controller => 'transactions'
|
||||
Loading…
Add table
Add a link
Reference in a new issue