Merge pull request #1024 from Ana06/event-length

Limit event types length
This commit is contained in:
Henne Vogelsang 2016-06-02 15:46:45 +02:00
commit be4198eb37
4 changed files with 53 additions and 6 deletions

View file

@ -10,7 +10,7 @@
.col-md-12
= semantic_form_for(@event_type, :url => (@event_type.new_record? ? admin_conference_program_event_types_path : admin_conference_program_event_type_path(@conference.short_title, @event_type))) do |f|
= f.input :title
= f.input :length, :input_html => {:size => 3}
= f.input :length, :input_html => {size: 3, type: 'number', step: EventType::LENGTH_STEP, min: EventType::LENGTH_STEP}
= f.input :description
= f.input :minimum_abstract_length, :input_html => {:size => 3}
= f.input :maximum_abstract_length, :input_html => {:size => 3}