Sha256: 5914e230dca36f906c9255d68aeed19e27a5207a74bf05fe78868cb9f236a675

Contents?: true

Size: 1.14 KB

Versions: 5

Compression:

Stored size: 1.14 KB

Contents

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

<div class="span16">
  <% if @authorization.scopes %>
  <p>
    This application will be able to:
  </p>
  <ul>
    <% @authorization.scopes.each do |scope| %>
      <li><%= scope.description %></li>
    <% end %>
  </ul>
  <% end %>

  <div class="inline_block">
    <%= form_for @authorization, :as => :authorization, :url => authorization_path, :method => :post do |f| %>
      <%= f.hidden_field :client_id %>
      <%= f.hidden_field :redirect_uri %>
      <%= f.hidden_field :state %>
      <%= f.hidden_field :response_type %>
      <%= f.hidden_field :scope %>
      <%= f.submit "Authorize", :class => "btn success" %> or
    <% end %>
  </div>
  <div class="inline_block">
    <%= form_for @authorization, :as => :authorization, :url => authorization_path, :method => :delete do |f| %>
      <%= f.hidden_field :client_id %>
      <%= f.hidden_field :redirect_uri %>
      <%= f.hidden_field :state %>
      <%= f.hidden_field :response_type %>
      <%= f.hidden_field :scope %>
      <%= f.submit "Deny", :class => "btn" %>
    <% end %>
  </div>
</div>

Version data entries

5 entries across 4 versions & 1 rubygems

Version Path
doorkeeper-0.3.4 app/views/doorkeeper/authorizations/new.html.erb
doorkeeper-0.3.3 app/views/doorkeeper/authorizations/new.html.erb
doorkeeper-0.3.2 app/views/doorkeeper/authorizations/new.html.erb
doorkeeper-0.3.2 spec/generators/tmp/dummy/app/views/doorkeeper/authorizations/new.html.erb
doorkeeper-0.3.1 app/views/doorkeeper/authorizations/new.html.erb