2016-06-02 11:05:42 +05:30
|
|
|
- if params[:group_id].present?
|
|
|
|
= hidden_field_tag :group_id, params[:group_id]
|
|
|
|
- if params[:project_id].present?
|
|
|
|
= hidden_field_tag :project_id, params[:project_id]
|
|
|
|
.dropdown
|
2017-09-10 17:25:29 +05:30
|
|
|
%button.dropdown-menu-toggle.js-search-group-dropdown{ type: "button", data: { toggle: "dropdown", default_label: "Group:", group_id: params[:group_id] } }
|
2016-06-02 11:05:42 +05:30
|
|
|
%span.dropdown-toggle-text
|
|
|
|
Group:
|
|
|
|
- if @group.present?
|
|
|
|
= @group.name
|
|
|
|
- else
|
2014-09-02 18:07:02 +05:30
|
|
|
Any
|
2016-06-02 11:05:42 +05:30
|
|
|
= icon("chevron-down")
|
|
|
|
.dropdown-menu.dropdown-select.dropdown-menu-selectable.dropdown-menu-align-right
|
|
|
|
= dropdown_title("Filter results by group")
|
|
|
|
= dropdown_filter("Search groups")
|
|
|
|
= dropdown_content
|
|
|
|
= dropdown_loading
|
2014-09-02 18:07:02 +05:30
|
|
|
|
2016-06-02 11:05:42 +05:30
|
|
|
.dropdown.project-filter
|
2017-08-17 22:00:37 +05:30
|
|
|
%button.dropdown-menu-toggle.js-search-project-dropdown{ type: "button", data: { toggle: "dropdown", default_label: "Project:" } }
|
2016-06-02 11:05:42 +05:30
|
|
|
%span.dropdown-toggle-text
|
|
|
|
Project:
|
|
|
|
- if @project.present?
|
2018-03-27 19:54:05 +05:30
|
|
|
= @project.full_name
|
2016-06-02 11:05:42 +05:30
|
|
|
- else
|
2014-09-02 18:07:02 +05:30
|
|
|
Any
|
2016-06-02 11:05:42 +05:30
|
|
|
= icon("chevron-down")
|
|
|
|
.dropdown-menu.dropdown-select.dropdown-menu-selectable.dropdown-menu-align-right
|
|
|
|
= dropdown_title("Filter results by project")
|
|
|
|
= dropdown_filter("Search projects")
|
|
|
|
= dropdown_content
|
|
|
|
= dropdown_loading
|