Merge pull request #1348 from siddhantbajaj/RegistrationLimit

Fixed registration limit issue
This commit is contained in:
Stella Rouzi 2017-03-14 09:12:51 +02:00 committed by GitHub
commit b0a84ad1c6

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"}