summaryrefslogtreecommitdiff
path: root/app/views/projects/protected_tags/_update_protected_tag.haml
blob: cc80bd04dd0678afe490cee069cd9150d760c938 (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 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 }})