7a2370f740
- Some views had a "Close" button. We've removed this, because we don't want users accidentally hiding the validation errors and not knowing what needs to be fixed. - Some views used `li`, some used `p`, some used `span`. We've standardized on `li`. - Some views only showed the first error. We've standardized on showing all of them. - Some views added an `#error_explanation` div, which we've made standard.
23 lines
954 B
Text
23 lines
954 B
Text
= form_for [:admin, @application], url: @url, html: {class: 'form-horizontal', role: 'form'} do |f|
|
|
= form_errors(application)
|
|
|
|
= content_tag :div, class: 'form-group' do
|
|
= f.label :name, class: 'col-sm-2 control-label'
|
|
.col-sm-10
|
|
= f.text_field :name, class: 'form-control'
|
|
= doorkeeper_errors_for application, :name
|
|
= content_tag :div, class: 'form-group' do
|
|
= 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
|
|
= f.submit 'Submit', class: "btn btn-save wide"
|
|
= link_to "Cancel", admin_applications_path, class: "btn btn-default"
|