2016-02-29 09:47:21 -05:00
|
|
|
= form_for application, url: doorkeeper_submit_path(application), html: {role: 'form'} do |f|
|
2016-04-04 21:25:38 -04:00
|
|
|
= form_errors(application)
|
2015-06-14 11:37:58 -04:00
|
|
|
|
|
|
|
.form-group
|
2016-02-29 09:47:21 -05:00
|
|
|
= f.label :name, class: 'label-light'
|
|
|
|
= f.text_field :name, class: 'form-control', required: true
|
2015-06-14 11:37:58 -04:00
|
|
|
|
|
|
|
.form-group
|
2016-02-29 09:47:21 -05:00
|
|
|
= f.label :redirect_uri, class: 'label-light'
|
|
|
|
= f.text_area :redirect_uri, class: 'form-control', required: true
|
2015-06-14 11:37:58 -04:00
|
|
|
|
2016-02-29 09:47:21 -05:00
|
|
|
%span.help-block
|
|
|
|
Use one line per URI
|
|
|
|
- if Doorkeeper.configuration.native_redirect_uri
|
2014-12-19 09:15:29 -05:00
|
|
|
%span.help-block
|
2016-02-29 09:47:21 -05:00
|
|
|
Use
|
|
|
|
%code= Doorkeeper.configuration.native_redirect_uri
|
|
|
|
for local tests
|
2015-06-14 11:38:27 -04:00
|
|
|
|
2016-11-22 03:57:31 -05:00
|
|
|
.form-group
|
|
|
|
= f.label :scopes, class: 'label-light'
|
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
|
|
|
|
2016-02-29 09:47:21 -05:00
|
|
|
.prepend-top-default
|
2016-03-01 09:37:49 -05:00
|
|
|
= f.submit 'Save application', class: "btn btn-create"
|