2018-04-12 16:11:22 -04:00
|
|
|
= form_for [:admin, @application], url: @url, html: {role: 'form'} do |f|
|
2016-04-04 21:25:38 -04:00
|
|
|
= form_errors(application)
|
|
|
|
|
2018-05-31 15:07:32 -04:00
|
|
|
= content_tag :div, class: 'form-group row' do
|
2019-02-03 09:29:34 -05:00
|
|
|
.col-sm-2.col-form-label
|
|
|
|
= f.label :name
|
2015-01-17 18:37:27 -05:00
|
|
|
.col-sm-10
|
|
|
|
= f.text_field :name, class: 'form-control'
|
|
|
|
= doorkeeper_errors_for application, :name
|
2017-07-24 16:45:12 -04:00
|
|
|
|
2018-05-31 15:07:32 -04:00
|
|
|
= content_tag :div, class: 'form-group row' do
|
2019-02-03 09:29:34 -05:00
|
|
|
.col-sm-2.col-form-label
|
|
|
|
= f.label :redirect_uri
|
2015-01-17 18:37:27 -05:00
|
|
|
.col-sm-10
|
|
|
|
= f.text_area :redirect_uri, class: 'form-control'
|
|
|
|
= doorkeeper_errors_for application, :redirect_uri
|
2018-04-11 14:26:37 -04:00
|
|
|
%span.form-text.text-muted
|
2015-01-17 18:37:27 -05:00
|
|
|
Use one line per URI
|
|
|
|
- if Doorkeeper.configuration.native_redirect_uri
|
2018-04-11 14:26:37 -04:00
|
|
|
%span.form-text.text-muted
|
2015-01-17 18:37:27 -05:00
|
|
|
Use
|
|
|
|
%code= Doorkeeper.configuration.native_redirect_uri
|
|
|
|
for local tests
|
2016-11-22 03:57:31 -05:00
|
|
|
|
2018-05-31 15:07:32 -04:00
|
|
|
= content_tag :div, class: 'form-group row' do
|
2019-02-03 09:29:34 -05:00
|
|
|
.col-sm-2.col-form-label.pt-0
|
|
|
|
= f.label :trusted
|
2017-07-24 16:45:12 -04:00
|
|
|
.col-sm-10
|
|
|
|
= f.check_box :trusted
|
2018-04-11 14:26:37 -04:00
|
|
|
%span.form-text.text-muted
|
2017-07-24 16:45:12 -04:00
|
|
|
Trusted applications are automatically authorized on GitLab OAuth flow.
|
|
|
|
|
2018-04-12 16:11:22 -04:00
|
|
|
.form-group.row
|
2019-02-03 09:29:34 -05:00
|
|
|
.col-sm-2.col-form-label.pt-0
|
|
|
|
= f.label :scopes
|
2016-11-22 03:57:31 -05:00
|
|
|
.col-sm-10
|
2016-12-04 23:19:51 -05:00
|
|
|
= render 'shared/tokens/scopes_form', prefix: 'doorkeeper_application', token: application, scopes: @scopes
|
2016-11-22 03:57:31 -05:00
|
|
|
|
2015-01-17 18:37:27 -05:00
|
|
|
.form-actions
|
2018-09-18 05:58:22 -04:00
|
|
|
= f.submit 'Submit', class: "btn btn-success wide"
|
2017-03-14 08:23:44 -04:00
|
|
|
= link_to "Cancel", admin_applications_path, class: "btn btn-cancel"
|