Sha256: 06797427b66cc09dd198dc7302842da92a13945d6800fc7ef042bfecbffee0de

Contents?: true

Size: 796 Bytes

Versions: 3

Compression:

Stored size: 796 Bytes

Contents

= form_for @access_control_entry do |f|
  -if @access_control_entry.errors.any?
    #errorExplanation
      %h2= "#{pluralize(@access_control_entry.errors.count, "error")} prohibited this access_control_entry from being saved:"
      %ul
        - @access_control_entry.errors.full_messages.each do |msg|
          %li= msg
  %ul.form_fields
    %li
      = f.label :resource_class_name
      = f.select :resource_class_name, [["Forum", "Forum"], ["Page", "Page"]]
      = f.hidden_field :resource_id
    %li
      = f.label :user_email
      = f.text_field :user_email
    %li
      = f.label :role
      = f.select :role, ["Admin", "User", "Nobody"]
    %li
      = f.label :can
      = f.check_box :can
    %li
      = f.label :verb
      = f.text_field :verb
    %li
      = f.submit 'Save'

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
wheels-0.0.21 app/views/access_control_entries/_form.html.haml
wheels-0.0.20 app/views/access_control_entries/_form.html.haml
wheels-0.0.19 app/views/access_control_entries/_form.html.haml