BigW Consortium Gitlab

_form.html.haml 685 Bytes
Newer Older
1
= form_for application, url: doorkeeper_submit_path(application), html: {role: 'form'} do |f|
2
  = form_errors(application)
3 4

  .form-group
5 6
    = f.label :name, class: 'label-light'
    = f.text_field :name, class: 'form-control', required: true
7 8

  .form-group
9 10
    = f.label :redirect_uri, class: 'label-light'
    = f.text_area :redirect_uri, class: 'form-control', required: true
11

12 13 14
    %span.help-block
      Use one line per URI
    - if Doorkeeper.configuration.native_redirect_uri
Valery Sizov committed
15
      %span.help-block
16 17 18
        Use
        %code= Doorkeeper.configuration.native_redirect_uri
        for local tests
19

20
  .prepend-top-default
21
    = f.submit 'Save application', class: "btn btn-create"