use a simple-filter for the workflow filter

also, remove the extra margin

[ci skip]
pull/2736/head
Florian Kraft 10 years ago
parent 95b0bf79e7
commit fa738f8c91
  1. 2
      app/assets/stylesheets/content/_simple_filters.sass
  2. 25
      app/views/workflows/edit.html.erb

@ -1,7 +1,7 @@
.simple-filters--container
border: 1px solid $advanced-filters--border-color
padding: 1rem
margin: 0 1.2em 1rem 0.6em
margin: 0.6em 0
.simple-filters--filters
@extend .advanced-filters--filters

@ -30,12 +30,12 @@ See doc/COPYRIGHT.rdoc for more details.
<h2><%= Workflow.model_name.human %></h2>
<%= render :partial => 'layouts/action_menu_specific' %>
<%= styled_form_tag({}, :method => 'get') do %>
<fieldset class="form--fieldset">
<legend class="form--fieldset-legend"><%=l(:text_workflow_edit)%></legend>
<div class="grid-block">
<div class="form--column">
<div class="form--field -vertical">
<%= styled_label_tag :role_id, Role.model_name.human %>
<fieldset class="simple-filters--container">
<legend><%=l(:text_workflow_edit)%></legend>
<ul class="simple-filters--filters">
<li class="simple-filters-filter">
<%= styled_label_tag :role_id, Role.model_name.human, class: 'simple-filters--filter-name' %>
<div class="simple-filters--filter-value">
<%= styled_select_tag 'role_id', options_from_collection_for_select(@roles, "id", "name", @role && @role.id) %>
</div>
<div class="form--field">
@ -45,15 +45,14 @@ See doc/COPYRIGHT.rdoc for more details.
<%= styled_check_box_tag :used_statuses_only, '1', @used_statuses_only %> <%= l(:label_display_used_statuses_only) %>
<% end %>
</div>
</div>
<div class="form--column">
<div class="form--field -vertical">
<%= styled_label_tag :type_id, Type.model_name.human %>
</li>
<li class="simple-filters-filter">
<%= styled_label_tag :type_id, Type.model_name.human, class: 'simple-filters--filter-name' %>
<div class="simple-filter--filter-value">
<%= styled_select_tag 'type_id', options_from_collection_for_select(@types, "id", "name", @type && @type.id) %>
</div>
</div>
</div>
<hr class="form--separator">
</li>
</ul>
<%= submit_tag l(:button_edit), :name => nil, :accesskey => accesskey(:edit), class: 'button -highlight' %>
</fieldset>
<% end %>

Loading…
Cancel
Save