debian-mirror-gitlab/app/views/doorkeeper/applications/_form.html.haml

26 lines
856 B
Text
Raw Normal View History

2016-06-02 11:05:42 +05:30
= form_for application, url: doorkeeper_submit_path(application), html: {role: 'form'} do |f|
= form_errors(application)
2015-09-11 14:41:01 +05:30
.form-group
2016-06-02 11:05:42 +05:30
= f.label :name, class: 'label-light'
= f.text_field :name, class: 'form-control', required: true
2015-09-11 14:41:01 +05:30
.form-group
2016-06-02 11:05:42 +05:30
= f.label :redirect_uri, class: 'label-light'
= f.text_area :redirect_uri, class: 'form-control', required: true
2015-09-11 14:41:01 +05:30
2016-06-02 11:05:42 +05:30
%span.help-block
Use one line per URI
- if Doorkeeper.configuration.native_redirect_uri
2015-04-26 12:48:37 +05:30
%span.help-block
2016-06-02 11:05:42 +05:30
Use
%code= Doorkeeper.configuration.native_redirect_uri
for local tests
2015-09-11 14:41:01 +05:30
2017-08-17 22:00:37 +05:30
.form-group
= f.label :scopes, class: 'label-light'
= render 'shared/tokens/scopes_form', prefix: 'doorkeeper_application', token: application, scopes: @scopes
2016-06-02 11:05:42 +05:30
.prepend-top-default
= f.submit 'Save application', class: "btn btn-create"