1
0
mirror of https://github.com/fspc/bike-database.git synced 2025-04-04 10:03:22 -04:00
bike-database/app/views/agencies/_form.html.haml
2014-09-21 18:23:15 -05:00

12 lines
397 B
Plaintext

= form_for @agency, html: {class: 'form-horizontal'} do |f|
- if @agency.errors.any?
#error_explanation
%h2= pluralize(@agency.errors.count, "error") + " prohibited this agency from being saved:"
%ul
- @agency.errors.full_messages.each do |msg|
%li= msg
= render 'fields', f: f
.row
.actions.col-sm-offset-2
= f.submit class: "btn btn-default"