.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| = check_box_tag "scopes[]", scope, :selected => true = scope %br .modal-footer = button_tag "Close", :class => "modal-close" = submit_tag "Authenticate"