Fixed registration limit issue

This commit is contained in:
Siddhant Bajaj 2017-03-13 22:57:38 +05:30
parent a826bb9d1e
commit 3655c80feb

View file

@ -24,5 +24,5 @@
= f.input :start_hour, :input_html => {size: 2, type: 'number', min: 0, max: 23}
= f.input :end_hour, :input_html => {size: 2, type: 'number', min: 1, max: 24}
= f.inputs name: "Registrations" do
= f.input :registration_limit, as: :number, in: 0..9999, hint: "Limit the number of registrations to the conference (0 no limit)"
= f.input :registration_limit, as: :number, in: 0..9999, hint: "Limit the number of registrations to the conference (0 no limit). You currently have " + pluralize(@conference.registrations.count,'registration')
= f.action :submit, :as => :button, :button_html => {:class => "btn btn-primary"}