2015-01-17 18:37:27 -05:00
|
|
|
= form_for [:admin, @application], url: @url, html: {class: 'form-horizontal', role: 'form'} do |f|
|
2016-04-04 21:25:38 -04:00
|
|
|
= form_errors(application)
|
|
|
|
|
2015-04-06 22:14:41 -04:00
|
|
|
= content_tag :div, class: 'form-group' do
|
2015-01-17 18:37:27 -05:00
|
|
|
= f.label :name, class: 'col-sm-2 control-label'
|
|
|
|
.col-sm-10
|
|
|
|
= f.text_field :name, class: 'form-control'
|
|
|
|
= doorkeeper_errors_for application, :name
|
2015-04-06 22:14:41 -04:00
|
|
|
= content_tag :div, class: 'form-group' do
|
2015-01-17 18:37:27 -05:00
|
|
|
= f.label :redirect_uri, class: 'col-sm-2 control-label'
|
|
|
|
.col-sm-10
|
|
|
|
= f.text_area :redirect_uri, class: 'form-control'
|
|
|
|
= doorkeeper_errors_for application, :redirect_uri
|
|
|
|
%span.help-block
|
|
|
|
Use one line per URI
|
|
|
|
- if Doorkeeper.configuration.native_redirect_uri
|
|
|
|
%span.help-block
|
|
|
|
Use
|
|
|
|
%code= Doorkeeper.configuration.native_redirect_uri
|
|
|
|
for local tests
|
|
|
|
.form-actions
|
2016-01-26 03:45:12 -05:00
|
|
|
= f.submit 'Submit', class: "btn btn-save wide"
|
2015-01-17 18:37:27 -05:00
|
|
|
= link_to "Cancel", admin_applications_path, class: "btn btn-default"
|