Sha256: 38b24667111439b133c60acef98f5b36fb1b59c42f7bd545255370d016032d5c
Contents?: true
Size: 981 Bytes
Versions: 8
Compression:
Stored size: 981 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
8 entries across 8 versions & 1 rubygems