BigW Consortium Gitlab

_context.html.haml 1.06 KB
Newer Older
1
= form_for [@project, @merge_request], remote: true, html: {class: 'edit-merge_request inline-update'} do |f|
2
  .row
3
    .col-sm-6
4 5
      %strong.append-right-10
        Assignee:
6

7
      - if can?(current_user, :modify_merge_request, @merge_request)
8
        = project_users_select_tag('merge_request[assignee_id]', placeholder: 'Select assignee', class: 'custom-form-control js-select2 js-assignee', selected: @merge_request.assignee_id)
9 10 11 12
      - elsif merge_request.assignee
        = link_to_member(@project, @merge_request.assignee)
      - else
        None
13

14
    .col-sm-6.text-right
15 16 17
      %strong.append-right-10
        Milestone:
      - if can?(current_user, :modify_merge_request, @merge_request)
18
        = f.select(:milestone_id, milestone_options(@merge_request), { include_blank: "Select milestone" }, {class: 'select2 select2-compact js-select2 js-milestone'})
19 20 21 22 23 24
        = hidden_field_tag :merge_request_context
        = f.submit class: 'btn'
      - elsif merge_request.milestone
        = link_to merge_request.milestone.title, project_milestone_path
      - else
        None