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

38 lines
1.4 KiB
Text
Raw Normal View History

2018-11-08 19:23:39 +05:30
= form_for [:admin, @application], url: @url, html: {role: 'form'} do |f|
2016-06-02 11:05:42 +05:30
= form_errors(application)
2018-11-08 19:23:39 +05:30
= content_tag :div, class: 'form-group row' do
= f.label :name, class: 'col-sm-2 col-form-label'
2015-04-26 12:48:37 +05:30
.col-sm-10
= f.text_field :name, class: 'form-control'
= doorkeeper_errors_for application, :name
2017-09-10 17:25:29 +05:30
2018-11-08 19:23:39 +05:30
= content_tag :div, class: 'form-group row' do
= f.label :redirect_uri, class: 'col-sm-2 col-form-label'
2015-04-26 12:48:37 +05:30
.col-sm-10
= f.text_area :redirect_uri, class: 'form-control'
= doorkeeper_errors_for application, :redirect_uri
2018-11-08 19:23:39 +05:30
%span.form-text.text-muted
2015-04-26 12:48:37 +05:30
Use one line per URI
- if Doorkeeper.configuration.native_redirect_uri
2018-11-08 19:23:39 +05:30
%span.form-text.text-muted
2015-04-26 12:48:37 +05:30
Use
%code= Doorkeeper.configuration.native_redirect_uri
for local tests
2017-08-17 22:00:37 +05:30
2018-11-08 19:23:39 +05:30
= content_tag :div, class: 'form-group row' do
= f.label :trusted, class: 'col-sm-2 col-form-label'
2017-09-10 17:25:29 +05:30
.col-sm-10
= f.check_box :trusted
2018-11-08 19:23:39 +05:30
%span.form-text.text-muted
2017-09-10 17:25:29 +05:30
Trusted applications are automatically authorized on GitLab OAuth flow.
2018-11-08 19:23:39 +05:30
.form-group.row
= f.label :scopes, class: 'col-sm-2 col-form-label'
2017-08-17 22:00:37 +05:30
.col-sm-10
= render 'shared/tokens/scopes_form', prefix: 'doorkeeper_application', token: application, scopes: @scopes
2015-04-26 12:48:37 +05:30
.form-actions
2016-04-02 18:10:28 +05:30
= f.submit 'Submit', class: "btn btn-save wide"
2017-08-17 22:00:37 +05:30
= link_to "Cancel", admin_applications_path, class: "btn btn-cancel"