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

31 lines
935 B
Text
Raw Normal View History

2015-04-26 12:48:37 +05:30
= form_for application, url: doorkeeper_submit_path(application), html: {class: 'form-horizontal', role: 'form'} do |f|
- if application.errors.any?
2015-09-11 14:41:01 +05:30
.alert.alert-danger
%ul
- application.errors.full_messages.each do |msg|
%li= msg
.form-group
= f.label :name, class: 'control-label'
2015-04-26 12:48:37 +05:30
.col-sm-10
2015-09-11 14:41:01 +05:30
= f.text_field :name, class: 'form-control', required: true
.form-group
= f.label :redirect_uri, class: 'control-label'
2015-04-26 12:48:37 +05:30
.col-sm-10
2015-09-11 14:41:01 +05:30
= f.text_area :redirect_uri, class: 'form-control', required: true
2015-04-26 12:48:37 +05:30
%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
2015-09-11 14:41:01 +05:30
2015-04-26 12:48:37 +05:30
.form-actions
2015-09-11 14:41:01 +05:30
= f.submit 'Submit', class: "btn btn-create"
= link_to "Cancel", applications_profile_path, class: "btn btn-cancel"