Sha256: 8f998bdb90a44efc2a99aea1c154dea144884a774566a5a5e116f98295761951

Contents?: true

Size: 832 Bytes

Versions: 1

Compression:

Stored size: 832 Bytes

Contents

= form_for @role, html: { class: "form-horizontal", role: "form" } do |f|
  -if @role.errors.any?
    .alert.alert-danger.alert-dismissable{role: "alert"}
      %button.close{type: "button", data: {dismiss: "alert"} }
        %span{aria: {hidden: "true"} } ×
        %span.sr-only Close
      %h4= "#{pluralize(@role.errors.count, "error")} prohibited this role from being saved:"

      %ul
        - @role.errors.full_messages.each do |msg|
          %li= msg

  .form-group
    = f.label :identifier, class: 'col-sm-2 control-label'
    .col-sm-10
      = f.text_field :identifier, class: 'form-control'
  .form-group
    = f.label :name, class: 'col-sm-2 control-label'
    .col-sm-10
      = f.text_field :name, class: 'form-control'
  .form-group
    .col-sm-offset-2.col-sm-10
      = f.submit class: 'btn btn-primary'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sc_core-0.0.7 app/views/sc_core/roles/_form.html.haml