gitlab-org--gitlab-foss/app/views/admin/applications/_form.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
1.7 KiB
Plaintext
Raw Normal View History

= gitlab_ui_form_for [:admin, @application], url: @url, html: {role: 'form'} do |f|
= form_errors(application)
2018-05-31 19:07:32 +00:00
= content_tag :div, class: 'form-group row' do
.col-sm-2.col-form-label
= f.label :name
2015-01-17 23:37:27 +00:00
.col-sm-10
= f.text_field :name, class: 'form-control gl-form-input'
2015-01-17 23:37:27 +00:00
= doorkeeper_errors_for application, :name
2017-07-24 20:45:12 +00:00
2018-05-31 19:07:32 +00:00
= content_tag :div, class: 'form-group row' do
.col-sm-2.col-form-label
= f.label :redirect_uri
2015-01-17 23:37:27 +00:00
.col-sm-10
= f.text_area :redirect_uri, class: 'form-control gl-form-input'
2015-01-17 23:37:27 +00:00
= doorkeeper_errors_for application, :redirect_uri
%span.form-text.text-muted
2015-01-17 23:37:27 +00:00
Use one line per URI
2018-05-31 19:07:32 +00:00
= content_tag :div, class: 'form-group row' do
.col-sm-2.col-form-label.pt-0
= f.label :trusted
2017-07-24 20:45:12 +00:00
.col-sm-10
= f.gitlab_ui_checkbox_component :trusted, _('Trusted applications are automatically authorized on GitLab OAuth flow. It\'s highly recommended for the security of users that trusted applications have the confidential setting set to true.')
2017-07-24 20:45:12 +00:00
= content_tag :div, class: 'form-group row' do
.col-sm-2.col-form-label.pt-0
= f.label :confidential
.col-sm-10
= f.gitlab_ui_checkbox_component :confidential, _('The application will be used where the client secret can be kept confidential. Native mobile apps and Single Page Apps are considered non-confidential.')
.form-group.row
.col-sm-2.col-form-label.pt-0
= f.label :scopes
.col-sm-10
= render 'shared/tokens/scopes_form', prefix: 'doorkeeper_application', token: application, scopes: @scopes, f: f
2015-01-17 23:37:27 +00:00
.form-actions
= f.submit _('Save application'), class: "gl-button btn btn-confirm wide"
= link_to _('Cancel'), admin_applications_path, class: "gl-button btn btn-default btn-cancel"