Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_title.html.haml « form « issuable « shared « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 36000f3cc6783f7a0711dd4fe635669bb9fb703d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
- issuable = local_assigns.fetch(:issuable)
- form = local_assigns.fetch(:form)

%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.with_label do
          = s_('MergeRequests|Mark as draft')
        - c.with_help_text do
          = s_('MergeRequests|Drafts cannot be merged until marked ready.')