Read about our upcoming Code of Conduct on this issue

_form.html.haml 1.01 KB
Newer Older
1
%p.profile-settings-content
Mayra Cabrera's avatar
Mayra Cabrera committed
2
  = s_("DeployTokens|Pick a name for the application, and we'll give you a unique deploy token.")
3
4
5
6
7
8

= form_for token, url: project_deploy_tokens_path(project), method: :post do |f|
  = form_errors(token)

  .form-group
    = f.label :name, class: 'label-light'
Mayra Cabrera's avatar
Mayra Cabrera committed
9
    = f.text_field :name, class: 'form-control', required: true
10
11
12

  .form-group
    = f.label :expires_at, class: 'label-light'
Mayra Cabrera's avatar
Mayra Cabrera committed
13
    = f.text_field :expires_at, class: 'datepicker form-control'
14
15
16

  .form-group
    = f.label :scopes, class: 'label-light'
Mayra Cabrera's avatar
Mayra Cabrera committed
17
18
19
20
21
22
23
24
25
    %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')
26
27

  .prepend-top-default
Mayra Cabrera's avatar
Mayra Cabrera committed
28
    = f.submit s_('DeployTokens|Create deploy token'), class: 'btn btn-success'