You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.1 KiB
52 lines
1.1 KiB
= form_for([@schedule.school, @schedule]) do |f|
|
|
- if @schedule.errors.any?
|
|
#error_explanation
|
|
%h2
|
|
= pluralize(@schedule.errors.count, "error")
|
|
prohibited this schedule from being saved:
|
|
%ul
|
|
- @schedule.errors.full_messages.each do |msg|
|
|
%li= msg
|
|
.field
|
|
= f.label :name
|
|
%br/
|
|
= f.text_field :name
|
|
.field
|
|
= f.label :description
|
|
%br/
|
|
= f.text_area :description
|
|
.field
|
|
= f.label :school_id
|
|
%br/
|
|
= f.number_field :school_id
|
|
.field
|
|
= f.label :frequency_hours
|
|
%br/
|
|
= f.number_field :frequency_hours
|
|
.field
|
|
= f.label :start_date
|
|
%br/
|
|
= f.date_select :start_date
|
|
.field
|
|
= f.label :end_date
|
|
%br/
|
|
= f.date_select :end_date
|
|
.field
|
|
= f.label :active
|
|
%br/
|
|
= f.check_box :active
|
|
.field
|
|
= f.label :random
|
|
%br/
|
|
= f.check_box :random
|
|
.field
|
|
= f.label :recipient_list_id
|
|
%br/
|
|
= f.number_field :recipient_list_id
|
|
.field
|
|
= f.label :question_list_id
|
|
%br/
|
|
= f.number_field :question_list_id
|
|
.actions
|
|
= f.submit
|