2022-06-21 17:19:12 +05:30
= gitlab_ui_form_for [:admin, @application], url: @url, html: {role: 'form'} do |f|
2022-10-11 01:57:18 +05:30
= form_errors(application)
2016-06-02 11:05:42 +05:30
2018-11-08 19:23:39 +05:30
= content_tag :div, class: 'form-group row' do
2023-06-20 00:43:36 +05:30
.col-12
2019-09-04 21:01:54 +05:30
= f.label :name
2023-06-20 00:43:36 +05:30
= f.text_field :name, class: 'form-control gl-form-input', data: { qa_selector: 'name_field' }
2015-04-26 12:48:37 +05:30
= 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
2023-06-20 00:43:36 +05:30
.col-12
2019-09-04 21:01:54 +05:30
= f.label :redirect_uri
2023-06-20 00:43:36 +05:30
= f.text_area :redirect_uri, class: 'form-control gl-form-input', data: { qa_selector: 'redirect_uri_field' }
2015-04-26 12:48:37 +05:30
= 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
2017-08-17 22:00:37 +05:30
2018-11-08 19:23:39 +05:30
= content_tag :div, class: 'form-group row' do
2023-06-20 00:43:36 +05:30
.col-12
2019-09-04 21:01:54 +05:30
= f.label :trusted
2023-06-20 00:43:36 +05:30
= 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.'), checkbox_options: { data: { qa_selector: 'trusted_checkbox' } }
2017-09-10 17:25:29 +05:30
2020-03-13 15:44:24 +05:30
= content_tag :div, class: 'form-group row' do
2023-06-20 00:43:36 +05:30
.col-12
2020-03-13 15:44:24 +05:30
= f.label :confidential
2022-07-16 23:28:13 +05:30
= 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.')
2021-11-11 11:23:49 +05:30
2018-11-08 19:23:39 +05:30
.form-group.row
2023-06-20 00:43:36 +05:30
.col-12
2019-09-04 21:01:54 +05:30
= f.label :scopes
2022-06-21 17:19:12 +05:30
= render 'shared/tokens/scopes_form', prefix: 'doorkeeper_application', token: application, scopes: @scopes, f: f
2017-08-17 22:00:37 +05:30
2023-06-20 00:43:36 +05:30
.gl-mt-5
= f.submit _('Save application'), pajamas_button: true, data: { qa_selector: 'save_application_button' }
2021-10-27 15:23:28 +05:30
= link_to _('Cancel'), admin_applications_path, class: "gl-button btn btn-default btn-cancel"