mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-09 07:28:41 -07:00
17 lines
443 B
Text
17 lines
443 B
Text
= form_for(district, as: 'district') do |f|
|
|
- if district.errors.any?
|
|
#error_explanation
|
|
%h2
|
|
= pluralize(district.errors.count, "error")
|
|
prohibited this district from being saved:
|
|
%ul
|
|
- district.errors.full_messages.each do |message|
|
|
%li= message
|
|
.field
|
|
= f.label :name
|
|
= f.text_field :name
|
|
.field
|
|
= f.label :state_id
|
|
= f.number_field :state_id
|
|
.actions
|
|
= f.submit
|