debian-mirror-gitlab/app/views/shared/_personal_access_tokens_form.html.haml

30 lines
975 B
Text
Raw Normal View History

2017-08-17 22:00:37 +05:30
- type = impersonation ? "impersonation" : "personal access"
%h5.prepend-top-0
2018-03-17 18:26:18 +05:30
Add a #{type} token
2017-08-17 22:00:37 +05:30
%p.profile-settings-content
2018-03-17 18:26:18 +05:30
Pick a name for the application, and we'll give you a unique #{type} token.
2017-08-17 22:00:37 +05:30
= form_for token, url: path, method: :post, html: { class: 'js-requires-input' } do |f|
= form_errors(token)
2018-11-08 19:23:39 +05:30
.row
.form-group.col-md-6
2018-11-18 11:00:15 +05:30
= f.label :name, class: 'label-bold'
2018-11-08 19:23:39 +05:30
= f.text_field :name, class: "form-control", required: true
2017-08-17 22:00:37 +05:30
2018-11-08 19:23:39 +05:30
.row
.form-group.col-md-6
2018-11-18 11:00:15 +05:30
= f.label :expires_at, class: 'label-bold'
2018-11-08 19:23:39 +05:30
.input-icon-wrapper
= f.text_field :expires_at, class: "datepicker form-control", placeholder: 'YYYY-MM-DD'
= icon('calendar', { class: 'input-icon-right' })
2017-08-17 22:00:37 +05:30
.form-group
2018-11-18 11:00:15 +05:30
= f.label :scopes, class: 'label-bold'
2017-08-17 22:00:37 +05:30
= render 'shared/tokens/scopes_form', prefix: 'personal_access_token', token: token, scopes: scopes
.prepend-top-default
2018-12-05 23:21:45 +05:30
= f.submit "Create #{type} token", class: "btn btn-success"