Sha256: 4e9ebbc95b1d036722855afc36d09fcc6cc96be8ca2a6cef0c48da3b646fc33d

Contents?: true

Size: 1.75 KB

Versions: 16

Compression:

Stored size: 1.75 KB

Contents

.section.console
  %h1 Console

  = form_tag nil, class: "console form-horizontal" do
    = hidden_field_tag :base, @base_url

    .form-group
      = label_tag :access_token, "Access Token", class: "col-lg-2 control-label"
      .col-lg-10
        .input-group
          = text_field_tag :access_token, session[:access_token], class: "form-control"
          %span.input-group-btn
            = button_tag "Get token", type: "button", class: "get-oauth-token btn btn-primary"

    .form-group
      = label_tag :location, "URL", class: "col-lg-2 control-label"
      .col-lg-2
        = select_tag :method, options_from_collection_for_select(["GET", "POST", "PUT", "DELETE"], :to_s, :to_s, params[:method]), class: "form-control"
      .col-lg-8
        .input-group
          = text_field_tag :location, params[:location], class: "form-control"
          %span.input-group-btn
            = button_tag "Send", type: "submit", class: "send-request btn btn-primary"

  .response
    %h4 Response headers
    %pre#api-headers

    %h4 Response body
    %pre#api-response

#oauth-dialog
  .modal-header
    %h3 Permissions
  = form_tag authenticate_resources_path, :method => :post, :id => "oauth-authenticate" do
    = hidden_field_tag :authenticity_token, form_authenticity_token
    = hidden_field_tag :return_to, request.fullpath
    .modal-body
      - Garage::TokenScope.revealed_scopes.each do |scope|
        %label
          = check_box_tag "scopes[]", scope, { :selected => true }, :class => 'token-scope-checkbox'
          = scope
        %br
    .modal-footer
      %label
        = check_box_tag nil, nil, { :selected => true }, :class => 'token-scope-check-all'
        Check all
      %br
      = button_tag "Close", :class => "modal-close"
      = submit_tag "Authenticate"

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
the_garage-2.8.2 app/views/garage/docs/resources/console.html.haml
the_garage-2.8.1 app/views/garage/docs/resources/console.html.haml
the_garage-2.8.0 app/views/garage/docs/resources/console.html.haml
the_garage-2.7.0 app/views/garage/docs/resources/console.html.haml
the_garage-2.6.1 app/views/garage/docs/resources/console.html.haml
the_garage-2.6.0 app/views/garage/docs/resources/console.html.haml
the_garage-2.5.0 app/views/garage/docs/resources/console.html.haml
the_garage-2.4.4 app/views/garage/docs/resources/console.html.haml
the_garage-2.4.3 app/views/garage/docs/resources/console.html.haml
the_garage-2.4.2 app/views/garage/docs/resources/console.html.haml
the_garage-2.4.1 app/views/garage/docs/resources/console.html.haml
the_garage-2.4.0 app/views/garage/docs/resources/console.html.haml
the_garage-2.3.3 app/views/garage/docs/resources/console.html.haml
the_garage-2.3.2 app/views/garage/docs/resources/console.html.haml
the_garage-2.3.1 app/views/garage/docs/resources/console.html.haml
the_garage-2.3.0 app/views/garage/docs/resources/console.html.haml