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.
sqm-dashboards/app/views/legacy/schools/_form.html.haml

18 lines
545 B

= form_for(school, as: 'school') do |f|
- if school.errors.any?
#error_explanation
%h2
= pluralize(school.errors.count, "error")
prohibited this school from being saved:
%ul
- school.errors.full_messages.each do |message|
%li= message
.form-group
= f.label :name
= f.text_field :name, class: 'form-control'
-# .form-group
-# = f.label :district_id
-# = f.number_field :district_id, class: 'form-control'
.form-group
= f.submit 'Save School', class: 'btn btn-primary'