debian-mirror-gitlab/app/views/shared/issuable/form/_title.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
925 B
Text
Raw Normal View History

2017-08-17 22:00:37 +05:30
- issuable = local_assigns.fetch(:issuable)
- form = local_assigns.fetch(:form)
2021-03-11 19:13:27 +05:30
- no_issuable_templates = issuable_templates(ref_project, issuable.to_ability_name).empty?
2017-08-17 22:00:37 +05:30
2022-07-23 23:45:48 +05:30
%div{ data: { testid: 'issue-title-input-field' } }
2022-05-07 20:08:51 +05:30
= form.text_field :title, required: true, aria: { required: true }, maxlength: 255, autofocus: true,
2022-08-27 11:52:29 +05:30
autocomplete: 'off', class: 'form-control pad', dir: 'auto', data: { qa_selector: 'issuable_form_title_field' }
2017-08-17 22:00:37 +05:30
2022-07-23 23:45:48 +05:30
- if issuable.respond_to?(:draft?)
2023-04-23 21:23:45 +05:30
.gl-pt-3
= render Pajamas::CheckboxTagComponent.new(name: 'mark_as_draft', checkbox_options: { class: 'js-toggle-draft' }) do |c|
= c.label do
= s_('MergeRequests|Mark as draft')
= c.help_text do
= s_('MergeRequests|Drafts cannot be merged until marked ready.')
2017-08-17 22:00:37 +05:30
- if no_issuable_templates && can?(current_user, :push_code, issuable.project)
2018-11-08 19:23:39 +05:30
= render 'shared/issuable/form/default_templates'