Sha256: 66032ef9ccda8f44ce22e07959bc57c3c7b613432846329d9057205080dddcdd

Contents?: true

Size: 985 Bytes

Versions: 2

Compression:

Stored size: 985 Bytes

Contents

- content_for :title do
  = t('.title')

%p= flash[:notice]

%h1= t('.title')

%p= link_to raw(t('.back')), admin_roles_path

%h2
  = raw t('.name')
  = @role.title

= form_for :role, :url => {:action=> :update }, :html => {:method => :put, :class => :form } do |f|
  = render :partial => 'form', :locals => {:f => f, :button => t('.update')}

%h4= t('.create_section')
- role = TheRole.get(@role.the_role)
  
= form_tag(new_role_section_admin_role_path, :method => :post, :class => :new_action) do
  = text_field_tag :section_name
  = submit_tag t('.create_section')

%h4= t('.create_access_policy')

- unless role.empty?
  = form_tag(new_role_policy_admin_role_path(@role), :method => :post, :class => :new_action) do
    = text_field_tag :section_policy

    %select{ :name => :section_name }
      -role.each do |name, set|
        %option{ :value => name }
          = name
        
      %input{ :type => :submit, :value => t('.create_policy') }
- else
  %p= t('.section_needs')

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
the_role-1.4.1 app/views/admin/roles/edit.html.haml
the_role-1.4.0 app/views/admin/roles/edit.html.haml