diff options
Diffstat (limited to 'app/views/projects/deploy_tokens/_form.html.haml')
-rw-r--r-- | app/views/projects/deploy_tokens/_form.html.haml | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/app/views/projects/deploy_tokens/_form.html.haml b/app/views/projects/deploy_tokens/_form.html.haml index 001afcf1944..3e83a2aae46 100644 --- a/app/views/projects/deploy_tokens/_form.html.haml +++ b/app/views/projects/deploy_tokens/_form.html.haml @@ -14,8 +14,15 @@ .form-group = f.label :scopes, class: 'label-light' - - presenter.available_scopes.each do |scope| - = render 'projects/deploy_tokens/scope_form', token: token, scope: scope, presenter: presenter + %fieldset + = f.check_box :read_repository + = label_tag ("deploy_token_read_repository"), 'read_repository' + %span= s_('DeployTokens|Allows read-only access to the repository') + + %fieldset + = f.check_box :read_registry + = label_tag ("deploy_token_read_registry"), 'read_registry' + %span= s_('DeployTokens|Allows read-only access to the registry images') .prepend-top-default = f.submit s_('DeployTokens|Create deploy token'), class: 'btn btn-success' |