Commit d8305470 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Style admin->projects filter


Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 38afc3e8c3bb
.row
.col-md-4
.admin-filter
= form_tag admin_projects_path, method: :get, class: 'form-inline' do
= form_tag admin_projects_path, method: :get, class: '' do
.form-group
......@@ -5,6 +5,5 @@
.form-group
= label_tag :name, 'Name:', class: 'control-label'
.col-sm-10
= text_field_tag :name, params[:name], class: "span2"
= label_tag :name, 'Name:'
= text_field_tag :name, params[:name], class: "form-control"
.form-group
......@@ -9,5 +8,5 @@
.form-group
= label_tag :owner_id, 'Owner:', class: 'control-label'
.col-sm-10
= label_tag :owner_id, 'Owner:'
%div
= users_select_tag :owner_id, selected: params[:owner_id], class: 'input-large input-clamp'
......@@ -13,22 +12,12 @@
= users_select_tag :owner_id, selected: params[:owner_id], class: 'input-large input-clamp'
.form-group.visibility-levels
= label_tag :visibility_level, 'Visibility Levels', class: 'control-label'
- Project.visibility_levels.each do |label, level|
.col-sm-10
= check_box_tag 'visibility_levels[]', level, params[:visibility_levels].present? && params[:visibility_levels].include?(level.to_s)
%span.descr
= visibility_level_icon(level)
= label
.form-group
= label_tag :with_push, 'Not empty', class: 'control-label'
.col-sm-10
= check_box_tag :with_push, 1, params[:with_push]
&nbsp;
%span.light Projects with push events
.form-group
= label_tag :abandoned, 'Abandoned', class: 'control-label'
.col-sm-10
= check_box_tag :abandoned, 1, params[:abandoned]
&nbsp;
%span.light No activity over 6 month
.checkbox
= label_tag :with_push, 'Not empty'
= check_box_tag :with_push, 1, params[:with_push]
&nbsp;
%span.light Projects with push events
.checkbox
= label_tag :abandoned, 'Abandoned'
= check_box_tag :abandoned, 1, params[:abandoned]
&nbsp;
%span.light No activity over 6 month
......@@ -34,6 +23,14 @@
%fieldset
%strong Visibility level:
.visibility-levels
- Project.visibility_levels.each do |label, level|
.checkbox
%label
= check_box_tag 'visibility_levels[]', level, params[:visibility_levels].present? && params[:visibility_levels].include?(level.to_s)
%span.descr
= visibility_level_icon(level)
= label
.form-actions
= submit_tag "Search", class: "btn submit btn-primary"
= link_to "Reset", admin_projects_path, class: "btn"
......@@ -37,6 +34,7 @@
.form-actions
= submit_tag "Search", class: "btn submit btn-primary"
= link_to "Reset", admin_projects_path, class: "btn"
.col-md-8
.ui-box
.title
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment