mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
17 lines
545 B
Text
17 lines
545 B
Text
= 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'
|