summaryrefslogtreecommitdiff
path: root/app/views/projects/protected_tags/_update_protected_tag.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects/protected_tags/_update_protected_tag.haml')
-rw-r--r--app/views/projects/protected_tags/_update_protected_tag.haml5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/views/projects/protected_tags/_update_protected_tag.haml b/app/views/projects/protected_tags/_update_protected_tag.haml
new file mode 100644
index 00000000000..cc80bd04dd0
--- /dev/null
+++ b/app/views/projects/protected_tags/_update_protected_tag.haml
@@ -0,0 +1,5 @@
+%td
+ = hidden_field_tag "allowed_to_create_#{protected_tag.id}", protected_tag.create_access_levels.first.access_level
+ = dropdown_tag( (protected_tag.create_access_levels.first.humanize || 'Select') ,
+ options: { toggle_class: 'js-allowed-to-create', dropdown_class: 'dropdown-menu-selectable capitalize-header js-allowed-to-create-container',
+ data: { field_name: "allowed_to_create_#{protected_tag.id}", access_level_id: protected_tag.create_access_levels.first.id }})