This commit is contained in:
Felix Van der Jeugt 2016-02-10 20:32:43 +01:00
parent ac2dbee62b
commit 227903c88f

View file

@ -14,5 +14,6 @@
%span.glyphicon.glyphicon-euro
= f.number_field :euros, value: amount(@transaction.amount),
placeholder: "Bedrag", step: 0.01, min: (0.01 unless current_user.penning),
class: "form-control", size: 20, max: Rails.application.config.maximum_amount/100, required: true
class: "form-control", size: 20, required: true,
max: (Rails.application.config.maximum_amount/100 unless current_user.penning)
= f.submit "Send it!", class: "pure-button pure-button-primary btn"