tab/app/views/transactions/new.html.haml

9 lines
347 B
Plaintext
Raw Normal View History

2015-09-09 15:06:39 +00:00
= render 'partials/form_errors', object: @transaction
2015-09-09 09:24:45 +00:00
= simple_form_for @transaction do |f|
2015-09-09 10:58:44 +00:00
= f.hidden_field :debtor, value: current_user.name
= f.collection_select :creditor, User.all, :name, :name, {}, { class: 'select2-selector' }
2015-09-09 09:24:45 +00:00
= f.input :amount
= f.input :message, required: true
2015-09-09 15:06:39 +00:00
.pure-controls
= f.button :submit, "Send it!"