summaryrefslogtreecommitdiff
path: root/app/views/shared/_new_commit_form.html.haml
blob: 31b02ed93d027cbb22fdc91543c6b536a3eec51f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
= render 'shared/commit_message_container', placeholder: placeholder

- unless @project.empty_repo?
  .form-group.branch
    = label_tag 'new_branch', 'Target branch', class: 'control-label'
    .col-sm-10
      = text_field_tag 'new_branch', @new_branch || @ref, required: true, class: "form-control js-new-branch"

  .form-group.js-create-merge-request-form-group
    .col-sm-offset-2.col-sm-10
      .checkbox
        - nonce = SecureRandom.hex
        = label_tag "create_merge_request-#{nonce}" do
          = check_box_tag 'create_merge_request', 1, true, class: 'js-create-merge-request', id: "create_merge_request-#{nonce}"
          Start a <strong>new merge request</strong> with this commit

  = hidden_field_tag 'original_branch', @ref, class: 'js-original-branch'