Открыть боковую панель
nt_test133
nt_project_uxpg8lvcuq8w
Коммиты
d8fba111
Не подтверждена
Коммит
d8fba111
создал
Июл 01, 2016
по автору
Luke "Jared" Bennett
Просмотр файлов
Started on issue templates UI
владелец
3041c433
Изменения
1
Скрыть пробелы
Построчно
Рядом
app/views/shared/issuable/_form.html.haml
Просмотр файла @
d8fba111
...
...
@@ -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
...
...
Редактирование
Предварительный просмотр
Поддерживает Markdown
0%
Попробовать снова
или
прикрепить новый файл
.
Отмена
You are about to add
0
people
to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Отмена
Пожалуйста,
зарегистрируйтесь
или
войдите
чтобы прокомментировать