BigW Consortium Gitlab

_form.html.haml 954 Bytes
Newer Older
1
= form_for [:admin, @application], url: @url, html: {class: 'form-horizontal', role: 'form'} do |f|
2 3
  = form_errors(application)

4
  = content_tag :div, class: 'form-group' do
5 6 7 8
    = f.label :name, class: 'col-sm-2 control-label'
    .col-sm-10
      = f.text_field :name, class: 'form-control'
      = doorkeeper_errors_for application, :name
9
  = content_tag :div, class: 'form-group' do
10 11 12 13 14 15 16 17 18 19 20 21
    = f.label :redirect_uri, class: 'col-sm-2 control-label'
    .col-sm-10
      = f.text_area :redirect_uri, class: 'form-control'
      = doorkeeper_errors_for application, :redirect_uri
      %span.help-block
        Use one line per URI
      - if Doorkeeper.configuration.native_redirect_uri
        %span.help-block
          Use
          %code= Doorkeeper.configuration.native_redirect_uri
          for local tests
  .form-actions
22
    = f.submit 'Submit', class: "btn btn-save wide"
23
    = link_to "Cancel", admin_applications_path, class: "btn btn-default"