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')
2015-09-11 14:41:01 +05:30
2020-03-13 15:44:24 +05:30
.form-group.form-check
= f.check_box :confidential, class: 'form-check-input'
= f.label :confidential, class: 'label-bold form-check-label'
%span.form-text.text-muted
= _('The application will be used where the client secret can be kept confidential. Native mobile apps and Single Page Apps are considered non-confidential.')
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
2020-07-28 23:09:34 +05:30
.gl-mt-3
2018-12-05 23:21:45 +05:30
= f.submit _('Save application'), class: "btn btn-success"