gitlab-org--gitlab-foss/app/views/projects/protected_tags/_create_protected_tag.html....

33 lines
1.4 KiB
Plaintext
Raw Normal View History

= form_for [@project.namespace.becomes(Namespace), @project, @protected_tag], html: { class: 'new-protected-tag js-new-protected-tag' } do |f|
2017-03-20 13:10:28 +00:00
.panel.panel-default
.panel-heading
%h3.panel-title
Protect a tag
.panel-body
.form-horizontal
= form_errors(@protected_tag)
2017-03-20 13:10:28 +00:00
.form-group
= f.label :name, class: 'col-md-2 text-right' do
Tag:
.col-md-10.protected-tags-dropdown
2017-03-20 13:10:28 +00:00
= render partial: "projects/protected_tags/dropdown", locals: { f: f }
.help-block
2017-04-07 01:35:59 +00:00
= link_to 'Wildcards', help_page_path('user/project/protected_tags', anchor: 'wildcard-protected-tags')
2017-03-20 13:10:28 +00:00
such as
2017-04-07 01:35:59 +00:00
%code v*
2017-03-20 13:10:28 +00:00
or
2017-04-07 01:35:59 +00:00
%code *-release
2017-03-20 13:10:28 +00:00
are supported
.form-group
%label.col-md-2.text-right{ for: 'create_access_levels_attributes' }
Allowed to create:
2017-03-20 13:10:28 +00:00
.col-md-10
.create_access_levels-container
2017-03-20 13:10:28 +00:00
= dropdown_tag('Select',
options: { toggle_class: 'js-allowed-to-create wide',
2017-03-20 13:10:28 +00:00
dropdown_class: 'dropdown-menu-selectable',
data: { field_name: 'protected_tag[create_access_levels_attributes][0][access_level]', input_id: 'create_access_levels_attributes' }})
2017-03-20 13:10:28 +00:00
.panel-footer
= f.submit 'Protect', class: 'btn-create btn', disabled: true