Sha256: 2b1024cd8e16d86583439a7934f6abb8bec448009e8b386b5c24912e493fc1ff

Contents?: true

Size: 946 Bytes

Versions: 3

Compression:

Stored size: 946 Bytes

Contents

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

p= flash[:notice]

h1= t('.title')

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

h2
  == 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

3 entries across 3 versions & 1 rubygems

Version Path
the_role-0.9.92 app/views/admin/roles/edit.slim
the_role-0.9.91 app/views/admin/roles/edit.slim
the_role-0.9.9 app/views/admin/roles/edit.slim