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