18 lines
925 B
Text
18 lines
925 B
Text
- issuable = local_assigns.fetch(:issuable)
|
|
- form = local_assigns.fetch(:form)
|
|
- no_issuable_templates = issuable_templates(ref_project, issuable.to_ability_name).empty?
|
|
|
|
%div{ data: { testid: 'issue-title-input-field' } }
|
|
= form.text_field :title, required: true, aria: { required: true }, maxlength: 255, autofocus: true,
|
|
autocomplete: 'off', class: 'form-control pad', dir: 'auto', data: { qa_selector: 'issuable_form_title_field' }
|
|
|
|
- if issuable.respond_to?(:draft?)
|
|
.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.')
|
|
|
|
- if no_issuable_templates && can?(current_user, :push_code, issuable.project)
|
|
= render 'shared/issuable/form/default_templates'
|