Sha256: 42b19419967b0b8aa2541b915d1a0bc0e70c1e62c61c28bcf478791a840c07bd

Contents?: true

Size: 1.33 KB

Versions: 1

Compression:

Stored size: 1.33 KB

Contents

<div class="span16">
  <h2>Authorize <%= @pre_auth.client.name %> to use your account?</h2>
</div>

<div class="span16">
  <% if @pre_auth.scopes %>
  <p>
    This application will be able to:
  </p>
  <ul>
    <% @pre_auth.scopes.each do |scope| %>
      <li><%= t scope, :scope => [:doorkeeper, :scopes]  %></li>
    <% end %>
  </ul>
  <% end %>

  <div class="inline_block">
    <%= form_tag oauth_authorization_path, :method => :post do %>
      <%= hidden_field_tag :client_id, @pre_auth.client.id %>
      <%= hidden_field_tag :redirect_uri, @pre_auth.redirect_uri %>
      <%= hidden_field_tag :state, @pre_auth.state %>
      <%= hidden_field_tag :response_type, @pre_auth.response_type %>
      <%= hidden_field_tag :scope, @pre_auth.scope %>
      <%= submit_tag "Authorize", :class => "btn success" %> or
    <% end %>
  </div>
  <div class="inline_block">
    <%= form_tag oauth_authorization_path, :method => :delete do %>
      <%= hidden_field_tag :client_id, @pre_auth.client.id %>
      <%= hidden_field_tag :redirect_uri, @pre_auth.redirect_uri %>
      <%= hidden_field_tag :state, @pre_auth.state %>
      <%= hidden_field_tag :response_type, @pre_auth.response_type %>
      <%= hidden_field_tag :scope, @pre_auth.scope %>
      <%= submit_tag "Deny", :class => "btn" %>
    <% end %>
  </div>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
couchkeeper-0.6.7 app/views/doorkeeper/authorizations/new.html.erb