tab/app/views/transactions/new.html.haml
2015-09-08 21:07:00 +02:00

7 lines
265 B
Plaintext

= @transaction.errors.full_messages.join(", ")
= form_for @transaction do |f|
= f.collection_select :creditor_id, User.all, :id, :name, {}, { class: 'select2-selector' }
= f.number_field :amount
= f.text_field :message, required: true
= f.submit "Send it!"