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

_commit_modal.html.haml « commit « projects « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a82d77fdc9193e03d3ad958ffa905b5154a080a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
.modal{ id: "modal-#{type}-commit", tabindex: -1 }
  .modal-dialog
    .modal-content
      .modal-header
        %h3.page-title= title
        %button.close{ type: "button", "data-dismiss": "modal", "aria-label" => _('Close') }
          %span{ "aria-hidden": true } ×
      .modal-body
        - if description
          %p= description
        = form_tag [type.underscore, @project, commit], method: :post, remote: false, class: "js-#{type}-form js-requires-input" do
          .form-group.branch
            = label_tag 'start_branch', branch_label, class: 'label-bold'

            = hidden_field_tag :start_branch, @project.default_branch, id: 'start_branch'
            = dropdown_tag(@project.default_branch, options: { title: s_("BranchSwitcherTitle|Switch branch"), filter: true, placeholder: s_("BranchSwitcherPlaceholder|Search branches"), toggle_class: 'js-project-refs-dropdown dynamic', dropdown_class: 'dropdown-menu-selectable', data: { field_name: "start_branch", selected: @project.default_branch, start_branch: @project.default_branch, refs_url: project_branches_path(@project), submit_form_on_click: false } })

            - if can?(current_user, :push_code, @project)
              = render 'shared/new_merge_request_checkbox'
            - else
              = hidden_field_tag 'create_merge_request', 1, id: nil
          .form-actions
            = submit_tag label, class: 'gl-button btn btn-success'
            = link_to _("Cancel"), '#', class: "gl-button btn btn-cancel", "data-dismiss" => "modal"

            = render 'shared/projects/edit_information'