use toolbar in workflow administration

Signed-off-by: Florian Kraft <f.kraft@finn.de>
pull/3000/head
Florian Kraft 10 years ago
parent 816f155263
commit 3d88a19ab2
  1. 14
      app/views/workflows/_action_menu.html.erb
  2. 4
      app/views/workflows/copy.html.erb
  3. 3
      app/views/workflows/edit.html.erb
  4. 4
      app/views/workflows/index.html.erb

@ -27,7 +27,15 @@ See doc/COPYRIGHT.rdoc for more details.
++#%>
<% content_for :action_menu_specific do %>
<%= link_to l(:button_copy), {:action => 'copy'}, :class => 'icon icon-copy' %>
<%= link_to l(:label_workflow_summary), {:action => 'index'}, :class => 'icon icon-info' %>
<%= toolbar title: title do %>
<li class="toolbar-item">
<%= link_to({ action: 'copy' }, class: 'button') do %>
<i class="button--icon icon-copy"></i> <%= l(:button_copy) %>
<% end %>
</li>
<li class="toolbar-item">
<%= link_to({ action: 'index' }, class: 'button') do %>
<i class="button--icon icon-info"></i> <%= l(:label_workflow_summary) %>
<% end %>
</li>
<% end %>

@ -27,9 +27,7 @@ See doc/COPYRIGHT.rdoc for more details.
++#%>
<%= render :partial => 'action_menu' %>
<h2><%= Workflow.model_name.human %></h2>
<%= render :partial => 'action_menu', locals: { title: Workflow.model_name.human } %>
<%= styled_form_tag({}, :id => 'workflow_copy_form') do %>
<section class="form--section">

@ -26,8 +26,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
See doc/COPYRIGHT.rdoc for more details.
++#%>
<%= render :partial => 'action_menu' %>
<h2><%= Workflow.model_name.human %></h2>
<%= render :partial => 'action_menu', locals: { title: Workflow.model_name.human } %>
<%= render :partial => 'layouts/action_menu_specific' %>
<%= styled_form_tag({}, :method => 'get') do %>
<fieldset class="simple-filters--container">

@ -26,10 +26,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
See doc/COPYRIGHT.rdoc for more details.
++#%>
<%= render :partial => 'action_menu' %>
<%= render partial: 'action_menu', locals: { title: l(:label_workflow_plural) } %>
<% html_title l(:label_administration), l(:label_workflow_plural) -%>
<h2><%= l(:label_workflow_plural) %></h2>
<%= render :partial => 'layouts/action_menu_specific' %>
<% if @workflow_counts.empty? %>
<p class="nodata"><%= l(:label_no_data) %></p>
<% else %>

Loading…
Cancel
Save