Limit event types lenght

This commit is contained in:
Ana 2016-05-31 16:51:12 +02:00
parent 301ad1c722
commit 55c41810b2
4 changed files with 50 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}