2016-08-16 06:30:19 +00:00
|
|
|
%td
|
|
|
|
= hidden_field_tag "allowed_to_merge_#{protected_branch.id}", protected_branch.merge_access_levels.first.access_level
|
|
|
|
= dropdown_tag( (protected_branch.merge_access_levels.first.humanize || 'Select') ,
|
2017-05-04 20:55:36 +00:00
|
|
|
options: { toggle_class: 'js-allowed-to-merge', dropdown_class: 'dropdown-menu-selectable js-allowed-to-merge-container capitalize-header',
|
2016-08-16 06:30:19 +00:00
|
|
|
data: { field_name: "allowed_to_merge_#{protected_branch.id}", access_level_id: protected_branch.merge_access_levels.first.id }})
|
|
|
|
%td
|
|
|
|
= hidden_field_tag "allowed_to_push_#{protected_branch.id}", protected_branch.push_access_levels.first.access_level
|
|
|
|
= dropdown_tag( (protected_branch.push_access_levels.first.humanize || 'Select') ,
|
2017-05-04 20:55:36 +00:00
|
|
|
options: { toggle_class: 'js-allowed-to-push', dropdown_class: 'dropdown-menu-selectable js-allowed-to-push-container capitalize-header',
|
2016-08-16 06:30:19 +00:00
|
|
|
data: { field_name: "allowed_to_push_#{protected_branch.id}", access_level_id: protected_branch.push_access_levels.first.id }})
|