osem-fcy/app/views/call_for_booths/_form.html.haml

20 lines
530 B
Text
Raw Normal View History

2017-06-06 21:36:18 +03:00
= form_for @call_for_booth do |f|
- if @call_for_booth.errors.any?
#error_explanation
%h2= "#{pluralize(@call_for_booth.errors.count, "error")} prohibited this call_for_booth from being saved:"
%ul
- @call_for_booth.errors.full_messages.each do |msg|
%li= msg
.field
= f.label :start_date
= f.date_select :start_date
.field
= f.label :end_date
= f.date_select :end_date
.field
= f.label :booth_limit
= f.number_field :booth_limit
.actions
= f.submit 'Save'