diff options
author | James Edwards-Jones <jedwardsjones@gitlab.com> | 2017-03-30 23:35:19 +0100 |
---|---|---|
committer | James Edwards-Jones <jedwardsjones@gitlab.com> | 2017-03-31 19:37:16 +0100 |
commit | 18b445ade4280c03e73ccbf2ca4d175e97a887c8 (patch) | |
tree | cc0b8d257069f958aaf7090ce0b16ef8d1f91383 /app/views/projects/protected_tags/_update_protected_tag.haml | |
parent | f51eac1df967856299467f65ac6fb81e2d610ff5 (diff) | |
download | gitlab-ce-18b445ade4280c03e73ccbf2ca4d175e97a887c8.tar.gz |
Protected tags can be added/listed via UI
Diffstat (limited to 'app/views/projects/protected_tags/_update_protected_tag.haml')
-rw-r--r-- | app/views/projects/protected_tags/_update_protected_tag.haml | 5 |
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..729a784a559 --- /dev/null +++ b/app/views/projects/protected_tags/_update_protected_tag.haml @@ -0,0 +1,5 @@ +%td + = hidden_field_tag "allowed_to_push_#{protected_tag.id}", protected_tag.push_access_levels.first.access_level + / = dropdown_tag( (protected_tag.push_access_levels.first.humanize || 'Select') , + / options: { toggle_class: 'js-allowed-to-push', dropdown_class: 'dropdown-menu-selectable js-allowed-to-push-container', + / data: { field_name: "allowed_to_push_#{protected_tag.id}", access_level_id: protected_tag.push_access_levels.first.id }}) |