use toolbar in roles administration

Signed-off-by: Florian Kraft <f.kraft@finn.de>
pull/3000/head
Florian Kraft 10 years ago
parent ee609d889b
commit 8bc80c227a
  1. 3
      app/views/roles/edit.html.erb
  2. 9
      app/views/roles/index.html.erb
  3. 2
      app/views/roles/new.html.erb
  4. 2
      app/views/roles/report.html.erb

@ -29,7 +29,8 @@ See doc/COPYRIGHT.rdoc for more details.
<% html_title l(:label_administration), "#{l(:label_edit)} #{Role.model_name.human} #{@role.name}" %>
<h2><%= link_to l(:label_role_plural), roles_path %> &#187; <%=h @role.name %></h2>
<%= toolbar title: "#{link_to(l(:label_role_plural), roles_path)} &raquo; #{@role.name}" %>
<%= labelled_tabular_form_for @role, :html => { :id => 'role_form' }, :as => :role do |f| %>
<%= render :partial => 'form', :locals => { :f => f } %>

@ -28,10 +28,15 @@ See doc/COPYRIGHT.rdoc for more details.
++#%>
<% content_for :action_menu_specific do %>
<%= link_to l(:label_role_new), {:action => 'new'}, :class => 'icon icon-add' %>
<% end %>
<% html_title l(:label_administration), l("label_role_plural") %>
<h2><%=l(:label_role_plural)%></h2>
<%= toolbar title: l(:label_role_plural) do %>
<li class="toolbar-item">
<%= link_to new_role_path, class: 'button -alt-highlight' do %>
<i class="button--icon icon-add"></i> <%= l(:label_role_new) %>
<% end %>
</li>
<% end %>
<%= render :partial => 'layouts/action_menu_specific' %>
<table class="list">
<thead>

@ -29,7 +29,7 @@ See doc/COPYRIGHT.rdoc for more details.
<% html_title l(:label_administration), l("label_group_new") %>
<h2><%= link_to l(:label_role_plural), roles_path %> &#187; <%=l(:label_role_new)%></h2>
<%= toolbar title: "#{link_to(l(:label_role_plural), roles_path)} &raquo; #{l(:label_role_new)}" %>
<%= labelled_tabular_form_for @role, :html => {:id => 'role_form'}, :as => :role do |f| %>
<%= render :partial => 'form', :locals => { :f => f } %>

@ -26,7 +26,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
See doc/COPYRIGHT.rdoc for more details.
++#%>
<h2><%= link_to l(:label_role_plural), roles_path %> &#187; <%=l(:label_permissions_report)%></h2>
<%= toolbar title: "#{link_to(l(:label_role_plural), roles_path)} &raquo; #{l(:label_permissions_report)}" %>
<%= form_tag(roles_path, :method => :put, :id => 'permissions_form') do %>
<%= hidden_field_tag 'permissions[0]', '', :id => nil %>
<div class="autoscroll">

Loading…
Cancel
Save