BigW Consortium Gitlab

_personal_access_tokens_form.html.haml 820 Bytes
Newer Older
1
- type = impersonation ? "impersonation" : "personal access"
2

3 4 5 6
%h5.prepend-top-0
  Add a #{type} Token
%p.profile-settings-content
  Pick a name for the application, and we'll give you a unique #{type} Token.
7

8 9 10
= form_for token, url: path, method: :post, html: { class: 'js-requires-input' } do |f|

  = form_errors(token)
11 12 13 14 15 16 17

  .form-group
    = f.label :name, class: 'label-light'
    = f.text_field :name, class: "form-control", required: true

  .form-group
    = f.label :expires_at, class: 'label-light'
18
    = f.text_field :expires_at, class: "datepicker form-control"
19 20 21

  .form-group
    = f.label :scopes, class: 'label-light'
22
    = render 'shared/tokens/scopes_form', prefix: 'personal_access_token', token: token, scopes: scopes
23 24

  .prepend-top-default
25
    = f.submit "Create #{type} token", class: "btn btn-create"