debian-mirror-gitlab/app/views/projects/deploy_tokens/_form.html.haml

35 lines
1.8 KiB
Text
Raw Normal View History

2018-05-09 12:01:36 +05:30
%p.profile-settings-content
= s_("DeployTokens|Pick a name for the application, and we'll give you a unique deploy token.")
2018-11-20 20:47:30 +05:30
= form_for token, url: create_deploy_token_namespace_project_settings_repository_path(project.namespace, project, anchor: 'js-deploy-tokens'), method: :post do |f|
2018-05-09 12:01:36 +05:30
= form_errors(token)
.form-group
2018-11-18 11:00:15 +05:30
= f.label :name, class: 'label-bold'
2018-12-13 13:39:08 +05:30
= f.text_field :name, class: 'form-control qa-deploy-token-name', required: true
2018-05-09 12:01:36 +05:30
.form-group
2018-11-18 11:00:15 +05:30
= f.label :expires_at, class: 'label-bold'
2018-12-13 13:39:08 +05:30
= f.text_field :expires_at, class: 'datepicker form-control qa-deploy-token-expires-at', value: f.object.expires_at
2018-05-09 12:01:36 +05:30
2019-09-30 21:07:59 +05:30
.form-group
= f.label :username, class: 'label-bold'
= f.text_field :username, class: 'form-control qa-deploy-token-username'
.text-secondary= s_('DeployTokens|Default format is "gitlab+deploy-token-{n}". Enter custom username if you want to change it.')
2018-05-09 12:01:36 +05:30
.form-group
2018-11-18 11:00:15 +05:30
= f.label :scopes, class: 'label-bold'
%fieldset.form-group.form-check
2018-12-13 13:39:08 +05:30
= f.check_box :read_repository, class: 'form-check-input qa-deploy-token-read-repository'
2018-11-18 11:00:15 +05:30
= label_tag ("deploy_token_read_repository"), 'read_repository', class: 'label-bold form-check-label'
.text-secondary= s_('DeployTokens|Allows read-only access to the repository')
2018-05-09 12:01:36 +05:30
- if container_registry_enabled?(project)
2018-11-18 11:00:15 +05:30
%fieldset.form-group.form-check
2018-12-13 13:39:08 +05:30
= f.check_box :read_registry, class: 'form-check-input qa-deploy-token-read-registry'
2018-11-18 11:00:15 +05:30
= label_tag ("deploy_token_read_registry"), 'read_registry', class: 'label-bold form-check-label'
.text-secondary= s_('DeployTokens|Allows read-only access to the registry images')
2018-05-09 12:01:36 +05:30
.prepend-top-default
2018-12-13 13:39:08 +05:30
= f.submit s_('DeployTokens|Create deploy token'), class: 'btn btn-success qa-create-deploy-token'