2018-03-19 16:11:12 +00:00
|
|
|
%p.profile-settings-content
|
2018-04-02 15:57:44 +00:00
|
|
|
= s_("DeployTokens|Pick a name for the application, and we'll give you a unique deploy token.")
|
2018-03-19 16:11:12 +00:00
|
|
|
|
2018-04-05 22:07:36 +00:00
|
|
|
= form_for token, url: create_deploy_token_namespace_project_settings_repository_path(project.namespace, project), method: :post do |f|
|
2018-03-19 16:11:12 +00:00
|
|
|
= form_errors(token)
|
|
|
|
|
|
|
|
.form-group
|
|
|
|
= f.label :name, class: 'label-light'
|
2018-04-02 14:45:37 +00:00
|
|
|
= f.text_field :name, class: 'form-control', required: true
|
2018-03-19 16:11:12 +00:00
|
|
|
|
|
|
|
.form-group
|
|
|
|
= f.label :expires_at, class: 'label-light'
|
2018-04-06 19:48:17 +00:00
|
|
|
= f.text_field :expires_at, class: 'datepicker form-control', value: f.object.expires_at
|
2018-03-19 16:11:12 +00:00
|
|
|
|
|
|
|
.form-group
|
|
|
|
= f.label :scopes, class: 'label-light'
|
2018-04-05 17:22:34 +00:00
|
|
|
%fieldset
|
|
|
|
= f.check_box :read_repository
|
|
|
|
= label_tag ("deploy_token_read_repository"), 'read_repository'
|
|
|
|
%span= s_('DeployTokens|Allows read-only access to the repository')
|
2018-04-06 14:30:21 +00:00
|
|
|
|
|
|
|
- if container_registry_enabled?(project)
|
2018-04-06 03:02:13 +00:00
|
|
|
%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')
|
2018-03-19 16:11:12 +00:00
|
|
|
|
|
|
|
.prepend-top-default
|
2018-04-02 15:57:44 +00:00
|
|
|
= f.submit s_('DeployTokens|Create deploy token'), class: 'btn btn-success'
|