2018-03-19 12:11:12 -04:00
|
|
|
%p.profile-settings-content
|
2018-04-02 11:57:44 -04:00
|
|
|
= s_("DeployTokens|Pick a name for the application, and we'll give you a unique deploy token.")
|
2018-03-19 12:11:12 -04:00
|
|
|
|
2018-08-08 02:17:43 -04:00
|
|
|
= form_for token, url: create_deploy_token_namespace_project_settings_repository_path(project.namespace, project, anchor: 'js-deploy-tokens'), method: :post do |f|
|
2018-03-19 12:11:12 -04:00
|
|
|
= form_errors(token)
|
|
|
|
|
|
|
|
.form-group
|
2018-07-19 18:11:31 -04:00
|
|
|
= f.label :name, class: 'label-bold'
|
2018-04-02 10:45:37 -04:00
|
|
|
= f.text_field :name, class: 'form-control', required: true
|
2018-03-19 12:11:12 -04:00
|
|
|
|
|
|
|
.form-group
|
2018-07-19 18:11:31 -04:00
|
|
|
= f.label :expires_at, class: 'label-bold'
|
2018-04-06 15:48:17 -04:00
|
|
|
= f.text_field :expires_at, class: 'datepicker form-control', value: f.object.expires_at
|
2018-03-19 12:11:12 -04:00
|
|
|
|
|
|
|
.form-group
|
2018-07-19 18:11:31 -04:00
|
|
|
= f.label :scopes, class: 'label-bold'
|
2018-07-18 09:05:30 -04:00
|
|
|
%fieldset.form-group.form-check
|
|
|
|
= f.check_box :read_repository, class: 'form-check-input'
|
2018-07-19 18:11:31 -04:00
|
|
|
= label_tag ("deploy_token_read_repository"), 'read_repository', class: 'label-bold form-check-label'
|
2018-07-18 09:05:30 -04:00
|
|
|
.text-secondary= s_('DeployTokens|Allows read-only access to the repository')
|
2018-04-06 10:30:21 -04:00
|
|
|
|
|
|
|
- if container_registry_enabled?(project)
|
2018-07-18 09:05:30 -04:00
|
|
|
%fieldset.form-group.form-check
|
|
|
|
= f.check_box :read_registry, class: 'form-check-input'
|
2018-07-19 18:11:31 -04:00
|
|
|
= label_tag ("deploy_token_read_registry"), 'read_registry', class: 'label-bold form-check-label'
|
2018-07-18 09:05:30 -04:00
|
|
|
.text-secondary= s_('DeployTokens|Allows read-only access to the registry images')
|
2018-03-19 12:11:12 -04:00
|
|
|
|
|
|
|
.prepend-top-default
|
2018-04-02 11:57:44 -04:00
|
|
|
= f.submit s_('DeployTokens|Create deploy token'), class: 'btn btn-success'
|