2017-11-07 03:33:58 -05:00
|
|
|
= form_for application, url: doorkeeper_submit_path(application), html: { role: 'form', class: 'doorkeeper-app-form' } do |f|
|
2016-04-04 21:25:38 -04:00
|
|
|
= form_errors(application)
|
2015-06-14 11:37:58 -04:00
|
|
|
|
|
|
|
.form-group
|
2018-07-19 18:11:31 -04:00
|
|
|
= f.label :name, class: 'label-bold'
|
2016-02-29 09:47:21 -05:00
|
|
|
= f.text_field :name, class: 'form-control', required: true
|
2015-06-14 11:37:58 -04:00
|
|
|
|
|
|
|
.form-group
|
2018-07-19 18:11:31 -04:00
|
|
|
= f.label :redirect_uri, class: 'label-bold'
|
2016-02-29 09:47:21 -05:00
|
|
|
= f.text_area :redirect_uri, class: 'form-control', required: true
|
2015-06-14 11:37:58 -04:00
|
|
|
|
2018-04-11 14:26:37 -04:00
|
|
|
%span.form-text.text-muted
|
2018-06-12 05:47:43 -04:00
|
|
|
= _('Use one line per URI')
|
2016-02-29 09:47:21 -05:00
|
|
|
- if Doorkeeper.configuration.native_redirect_uri
|
2018-04-11 14:26:37 -04:00
|
|
|
%span.form-text.text-muted
|
2018-06-12 05:47:43 -04:00
|
|
|
= _('Use <code>%{native_redirect_uri}</code> for local tests').html_safe % { native_redirect_uri: Doorkeeper.configuration.native_redirect_uri }
|
2015-06-14 11:38:27 -04:00
|
|
|
|
2016-11-22 03:57:31 -05:00
|
|
|
.form-group
|
2018-07-19 18:11:31 -04:00
|
|
|
= f.label :scopes, class: 'label-bold'
|
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
|
2018-09-18 05:58:22 -04:00
|
|
|
= f.submit _('Save application'), class: "btn btn-success"
|