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: 585576ec79916babe5a9306ab9bc8bce25a98d7c (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
36
37
= form_for [:admin, @application], url: @url, html: {role: 'form'} do |f|
  = form_errors(application)

  = content_tag :div, class: 'form-group row' do
    = f.label :name, class: 'col-sm-2 col-form-label'
    .col-sm-10
      = f.text_field :name, class: 'form-control'
      = doorkeeper_errors_for application, :name

  = content_tag :div, class: 'form-group row' do
    = f.label :redirect_uri, class: 'col-sm-2 col-form-label'
    .col-sm-10
      = f.text_area :redirect_uri, class: 'form-control'
      = doorkeeper_errors_for application, :redirect_uri
      %span.form-text.text-muted
        Use one line per URI
      - if Doorkeeper.configuration.native_redirect_uri
        %span.form-text.text-muted
          Use
          %code= Doorkeeper.configuration.native_redirect_uri
          for local tests

  = content_tag :div, class: 'form-group row' do
    = f.label :trusted, class: 'col-sm-2 col-form-label'
    .col-sm-10
      = f.check_box :trusted
      %span.form-text.text-muted
        Trusted applications are automatically authorized on GitLab OAuth flow.

  .form-group.row
    = f.label :scopes, class: 'col-sm-2 col-form-label'
    .col-sm-10
      = render 'shared/tokens/scopes_form', prefix: 'doorkeeper_application', token: application, scopes: @scopes

  .form-actions
    = f.submit 'Submit', class: "btn btn-success wide"
    = link_to "Cancel", admin_applications_path, class: "btn btn-cancel"