2018-03-17 18:26:18 +05:30
|
|
|
= form_for application, url: doorkeeper_submit_path(application), html: { role: 'form', class: 'doorkeeper-app-form' } do |f|
|
2016-06-02 11:05:42 +05:30
|
|
|
= form_errors(application)
|
2015-09-11 14:41:01 +05:30
|
|
|
|
|
|
|
.form-group
|
2018-11-18 11:00:15 +05:30
|
|
|
= f.label :name, class: 'label-bold'
|
2016-06-02 11:05:42 +05:30
|
|
|
= f.text_field :name, class: 'form-control', required: true
|
2015-09-11 14:41:01 +05:30
|
|
|
|
|
|
|
.form-group
|
2018-11-18 11:00:15 +05:30
|
|
|
= f.label :redirect_uri, class: 'label-bold'
|
2016-06-02 11:05:42 +05:30
|
|
|
= f.text_area :redirect_uri, class: 'form-control', required: true
|
2015-09-11 14:41:01 +05:30
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
%span.form-text.text-muted
|
2018-11-18 11:00:15 +05:30
|
|
|
= _('Use one line per URI')
|
2016-06-02 11:05:42 +05:30
|
|
|
- if Doorkeeper.configuration.native_redirect_uri
|
2018-11-08 19:23:39 +05:30
|
|
|
%span.form-text.text-muted
|
2018-11-18 11:00:15 +05:30
|
|
|
= _('Use <code>%{native_redirect_uri}</code> for local tests').html_safe % { native_redirect_uri: Doorkeeper.configuration.native_redirect_uri }
|
2015-09-11 14:41:01 +05:30
|
|
|
|
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: 'doorkeeper_application', token: application, scopes: @scopes
|
|
|
|
|
2016-06-02 11:05:42 +05:30
|
|
|
.prepend-top-default
|
2018-11-18 11:00:15 +05:30
|
|
|
= f.submit _('Save application'), class: "btn btn-create"
|