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.
21 lines
685 B
Text
21 lines
685 B
Text
= form_for application, url: doorkeeper_submit_path(application), html: {role: 'form'} do |f|
|
|
= form_errors(application)
|
|
|
|
.form-group
|
|
= f.label :name, class: 'label-light'
|
|
= f.text_field :name, class: 'form-control', required: true
|
|
|
|
.form-group
|
|
= f.label :redirect_uri, class: 'label-light'
|
|
= f.text_area :redirect_uri, class: 'form-control', required: true
|
|
|
|
%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
|
|
|
|
.prepend-top-default
|
|
= f.submit 'Save application', class: "btn btn-create"
|