add debtor input field for penning
This commit is contained in:
parent
d4576f2453
commit
661728772f
1 changed files with 4 additions and 1 deletions
|
@ -1,6 +1,9 @@
|
||||||
= @transaction.errors.full_messages.join(", ")
|
= @transaction.errors.full_messages.join(", ")
|
||||||
= simple_form_for @transaction do |f|
|
= simple_form_for @transaction do |f|
|
||||||
= f.hidden_field :debtor, value: current_user.name
|
- if current_user.penning
|
||||||
|
= f.collection_select :debtor, User.all, :name, :name, {}, { class: 'select2-selector' }
|
||||||
|
- else
|
||||||
|
= f.hidden_field :debtor, value: current_user.name
|
||||||
= f.collection_select :creditor, User.all, :name, :name, {}, { class: 'select2-selector' }
|
= f.collection_select :creditor, User.all, :name, :name, {}, { class: 'select2-selector' }
|
||||||
= f.input :amount
|
= f.input :amount
|
||||||
= f.input :message, required: true
|
= f.input :message, required: true
|
||||||
|
|
Loading…
Reference in a new issue