Add fields in conference edit form for hours

Make possible to change the start and end hours.
This commit is contained in:
Ana 2016-08-15 12:39:39 +02:00 committed by Ana María Martínez Gómez
parent b80aff3cce
commit 9b9d255e3b
2 changed files with 4 additions and 1 deletions

View file

@ -21,6 +21,8 @@
= f.input :timezone, :as => :time_zone, :hint => "The conference time zone"
= f.input :start_date, :as => :string, :input_html => { :id => "conference-start-datepicker", :readonly => "readonly" }
= f.input :end_date, :as => :string, :input_html => { :id => "conference-end-datepicker", :readonly => "readonly" }
= 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.action :submit, :as => :button, :button_html => {:class => "btn btn-primary"}