summaryrefslogtreecommitdiff
path: root/app/views/projects/protected_tags/_update_protected_tag.haml
blob: 62823bee46e1fac736fa4de4e1c0fa0a22c04a11 (plain)
1
2
3
4
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 js-allowed-to-create-container',
                 data: { field_name: "allowed_to_create_#{protected_tag.id}", access_level_id: protected_tag.create_access_levels.first.id }})