diff --git a/app/views/transactions/new.html.haml b/app/views/transactions/new.html.haml index 4e4f5da..246edef 100644 --- a/app/views/transactions/new.html.haml +++ b/app/views/transactions/new.html.haml @@ -1,10 +1,12 @@ = @transaction.errors.full_messages.join(", ") = simple_form_for @transaction do |f| - if current_user.penning - = f.collection_select :debtor, User.all, :name, :name, {}, { class: 'select2-selector' } + = f.collection_select :debtor, User.all, :name, :name, + {selected: current_user.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, + {selected: User.zeus.name}, { class: 'select2-selector' } = f.input :amount = f.input :message, required: true = f.submit "Send it!"