summaryrefslogtreecommitdiff
path: root/app/views/projects/protected_tags/shared/_create_protected_tag.html.haml
blob: cbf1938664cbbe24fcfdfe35e2668fc9905c3e86 (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
27
28
= form_for [@project.namespace.becomes(Namespace), @project, @protected_tag], html: { class: 'new-protected-tag js-new-protected-tag' } do |f|
  %input{ type: 'hidden', name: 'update_section', value: 'js-protected-tags-settings' }
  .card
    .card-header
      Protect a tag
    .card-body
      = form_errors(@protected_tag)
      .form-group.row
        = f.label :name, class: 'col-md-2 text-right' do
          Tag:
        .col-md-10.protected-tags-dropdown
          = render partial: "projects/protected_tags/shared/dropdown", locals: { f: f }
          .form-text.text-muted
            = link_to 'Wildcards', help_page_path('user/project/protected_tags', anchor: 'wildcard-protected-tags')
            such as
            %code v*
            or
            %code *-release
            are supported
      .form-group.row
        %label.col-md-2.text-right{ for: 'create_access_levels_attributes' }
          Allowed to create:
        .col-md-10
          .create_access_levels-container
            = yield :create_access_levels

    .card-footer
      = f.submit 'Protect', class: 'btn-success btn', disabled: true