diff options
author | Denys Mishunov <dmishunov@gitlab.com> | 2019-07-24 15:31:26 +0200 |
---|---|---|
committer | Denys Mishunov <dmishunov@gitlab.com> | 2019-08-07 11:57:38 +0200 |
commit | 5b5fc580f38174154af314b2e4c41f0c5d8c8b38 (patch) | |
tree | 4793b03800b46cd44ac165ee483badb83886c847 /app/views/search/_filter.html.haml | |
parent | 4bb8a4e3d3cd74e6e7a40c5e7805dd3670fdfc37 (diff) | |
download | gitlab-ce-5b5fc580f38174154af314b2e4c41f0c5d8c8b38.tar.gz |
Properly labelling fields on Search page
Adding proper <label>s while removing labels from the fields themselves.
This gives more space for the field's content
Diffstat (limited to 'app/views/search/_filter.html.haml')
-rw-r--r-- | app/views/search/_filter.html.haml | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/app/views/search/_filter.html.haml b/app/views/search/_filter.html.haml index c8b6a3258ab..6495eaedee7 100644 --- a/app/views/search/_filter.html.haml +++ b/app/views/search/_filter.html.haml @@ -3,9 +3,10 @@ - if params[:project_id].present? = hidden_field_tag :project_id, params[:project_id] .dropdown - %button.dropdown-menu-toggle.js-search-group-dropdown{ type: "button", data: { toggle: "dropdown", default_label: _('Group:'), group_id: params[:group_id] } } + %label{ for: "dashboard_search_group" } + = _("Group") + %button.form-control.dropdown-menu-toggle.js-search-group-dropdown{ type: "button", id: "dashboard_search_group", data: { toggle: "dropdown", group_id: params[:group_id] } } %span.dropdown-toggle-text - = _("Group:") - if @group.present? = @group.name - else @@ -18,9 +19,10 @@ = dropdown_loading .dropdown.project-filter - %button.dropdown-menu-toggle.js-search-project-dropdown{ type: "button", data: { toggle: "dropdown", default_label: _('Project:') } } + %label{ for: "dashboard_search_project" } + = _("Project") + %button.form-control.dropdown-menu-toggle.js-search-project-dropdown{ type: "button", id: "dashboard_search_project", data: { toggle: "dropdown"} } %span.dropdown-toggle-text - = _("Project:") - if @project.present? = @project.full_name - else |