Files
growstuff/app/views/roles/_form.html.haml
2017-12-17 12:11:55 +13:00

20 lines
495 B
Plaintext

= form_for @role do |f|
.row
- if @role.errors.any?
#error_explanation
%h2
= pluralize(@role.errors.size, "error")
prohibited this role from being saved:
%ul
- @role.errors.full_messages.each do |msg|
%li= msg
.field
.col-md2= f.label :name
.col-md10= f.text_field :name
.field
.col-md2= f.label :description
.col-md10= f.text_area :description
.actions
= f.submit 'Save', class: 'btn btn-default'