Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_form.html.haml « applications « admin « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a8d5a45041d792a5eb6bee6a0d7731ec6bf83c95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
= gitlab_ui_form_for [:admin, @application], url: @url, html: {role: 'form'} do |f|
  = form_errors(application)

  = content_tag :div, class: 'form-group row' do
    .col-12
      = f.label :name
      = f.text_field :name, class: 'form-control gl-form-input', data: { qa_selector: 'name_field' }
      = doorkeeper_errors_for application, :name

  = content_tag :div, class: 'form-group row' do
    .col-12
      = f.label :redirect_uri
      = f.text_area :redirect_uri, class: 'form-control gl-form-input', data: { qa_selector: 'redirect_uri_field' }
      = doorkeeper_errors_for application, :redirect_uri
      %span.form-text.text-muted
        Use one line per URI

  = content_tag :div, class: 'form-group row' do
    .col-12
      = f.label :trusted
      = 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' } }

  = content_tag :div, class: 'form-group row' do
    .col-12
      = f.label :confidential
      = 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-12
      = f.label :scopes
      = render 'shared/tokens/scopes_form', prefix: 'doorkeeper_application', token: application, scopes: @scopes, f: f

  .gl-mt-5
    = f.submit _('Save application'), pajamas_button: true, data: { qa_selector: 'save_application_button' }
    = link_to _('Cancel'), admin_applications_path, class: "gl-button btn btn-default btn-cancel"