Sha256: da0540b5a58ec169fdcdaf8bc911fac4b9ce1d3f657fd5898c309e2f735ffea1

Contents?: true

Size: 1.05 KB

Versions: 17

Compression:

Stored size: 1.05 KB

Contents

= form_for @access_control_entry, :remote=>true 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
    = hidden_field_tag :container, "ace_listing"
    = hidden_field_tag :ajax_function, "append"
  %ul.ace_form_fields
    %li
      .name Email
      = f.text_field :user_email, :class=>"email"
    %li
      .name Role
      = f.select :role, Role.collection_entries
    %li
      .name Can?
      = f.check_box :can
    %li
      .name verb
      = f.text_field :verb, :class=>"verb"
    - if parent.is_a?(User) || parent.is_a? (Role)
      %li
        .name Resource
        = f.select :resource_type, [["Forum", "Forum"], ["Page", "Page"]]
        = f.hidden_field :resource_id
    - else
      = hidden_field_tag resource.class.name.foreign_key.to_sym, resource.id

    %li
      = f.submit 'Save', :disable_with=>"Saving..."

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
wheels-0.1.30 app/views/access_control_entries/_form.html.haml
wheels-0.1.28 app/views/access_control_entries/_form.html.haml
wheels-0.1.27 app/views/access_control_entries/_form.html.haml
wheels-0.1.25 app/views/access_control_entries/_form.html.haml
wheels-0.1.24 app/views/access_control_entries/_form.html.haml
wheels-0.1.23 app/views/access_control_entries/_form.html.haml
wheels-0.1.22 app/views/access_control_entries/_form.html.haml
wheels-0.1.21 app/views/access_control_entries/_form.html.haml
wheels-0.1.20 app/views/access_control_entries/_form.html.haml
wheels-0.1.19 app/views/access_control_entries/_form.html.haml
wheels-0.1.18 app/views/access_control_entries/_form.html.haml
wheels-0.1.17 app/views/access_control_entries/_form.html.haml
wheels-0.1.16 app/views/access_control_entries/_form.html.haml
wheels-0.1.15 app/views/access_control_entries/_form.html.haml
wheels-0.1.14 app/views/access_control_entries/_form.html.haml
wheels-0.1.13 app/views/access_control_entries/_form.html.haml
wheels-0.1.12 app/views/access_control_entries/_form.html.haml