Introduce Call for Booths
This commit is contained in:
parent
66ac45efc8
commit
7ee9b2966a
13 changed files with 191 additions and 16 deletions
19
app/views/call_for_booths/_form.html.haml
Normal file
19
app/views/call_for_booths/_form.html.haml
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
= 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'
|
||||
Loading…
Add table
Add a link
Reference in a new issue