Insert distance below 'sort by'-form

pull/6827/head
Henriette Dinger 9 years ago
parent c3d657b400
commit 9761a68c04
  1. 4
      app/assets/stylesheets/documents/documents.css.erb
  2. 4
      app/views/documents/index.html.erb

@ -33,3 +33,7 @@ See doc/COPYRIGHT.rdoc for more details.
dt.document:before {
content: "\e006";
}
.sidebar--document-sort label:last-of-type {
margin-bottom: 2rem;
}

@ -30,6 +30,8 @@ See doc/COPYRIGHT.rdoc for more details.
++#%>
<%= stylesheet_link_tag 'documents/documents.css' %>
<%= toolbar title: l(:label_document_plural) do %>
<% if authorize_for(:documents, :new) %>
<li class="toolbar-item">
@ -51,7 +53,7 @@ See doc/COPYRIGHT.rdoc for more details.
<% content_for :sidebar do %>
<h3><%= l(:label_sort_by, '') %></h3>
<%= form_tag({}, :method => :get) do %>
<%= form_tag({}, :method => :get, class: 'sidebar--document-sort') do %>
<label>
<%= radio_button_tag 'sort_by', 'category', (@sort_by == 'category'), :onclick => 'this.form.submit();' %>
<%= Document.human_attribute_name(:category) %>

Loading…
Cancel
Save