Skip to content
Snippets Groups Projects
Unverified Commit d8fba111 authored by Luke "Jared" Bennett's avatar Luke "Jared" Bennett
Browse files

Started on issue templates UI

parent 3041c433
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -23,6 +23,25 @@
to prevent a
%strong Work In Progress
merge request from being merged before it's ready.
- if issuable.is_a?(Issue)
.form-group
= f.label :template, 'Template', class: 'control-label'
.col-sm-10
-# START render 'projects/issues/templates_dropdown' START
= hidden_field_tag(:template_name, params[:template_name])
-# 'data-templates' will be a method in issuables_helper that returns endpoint to get templates 'issue_templates_filter_dropdown_path'
= dropdown_tag(h(params[:template_name] || 'Template'), options: { title: 'Filter by template name', toggle_class: 'js-template-select js-filter-submit', filter: true, dropdown_class: 'dropdown-menu-selectable',
placeholder: 'Search templates', footer_content: true, data: { field_name: :template_name, selected: params[:template_name], project_id: @project.try(:id), templates: '/namespace/project/issues/templates', default_label: 'Template' } }) do
%ul.dropdown-footer-list
%li
%a.reset-template
Reset
-# END render 'projects/issues/templates_dropdown' END
.form-group.detail-page-description
= f.label :description, 'Description', class: 'control-label'
.col-sm-10
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment