2017-05-05 15:59:31 +00:00
|
|
|
= 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
|
2017-03-30 22:35:19 +00:00
|
|
|
= 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:
|
2017-05-03 15:22:28 +00:00
|
|
|
.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
|
2017-04-04 02:37:22 +00:00
|
|
|
%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
|
2017-04-04 02:37:22 +00:00
|
|
|
.create_access_levels-container
|
2017-03-20 13:10:28 +00:00
|
|
|
= dropdown_tag('Select',
|
2017-04-04 02:37:22 +00:00
|
|
|
options: { toggle_class: 'js-allowed-to-create wide',
|
2017-03-20 13:10:28 +00:00
|
|
|
dropdown_class: 'dropdown-menu-selectable',
|
2017-04-04 02:37:22 +00:00
|
|
|
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
|