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

7 lines
265 B
Text
Raw Normal View History

2015-09-08 21:07:00 +02:00
= @transaction.errors.full_messages.join(", ")
2015-09-08 16:19:48 +02:00
= form_for @transaction do |f|
2015-09-08 21:07:00 +02:00
= f.collection_select :creditor_id, User.all, :id, :name, {}, { class: 'select2-selector' }
2015-09-08 16:19:48 +02:00
= f.number_field :amount
2015-09-08 21:07:00 +02:00
= f.text_field :message, required: true
2015-09-08 16:19:48 +02:00
= f.submit "Send it!"