app/views/oauth/authorizations/new.html.erb
<% content_for :page_header do %>
<h2><%= t('.authorize_app?', name: @pre_auth.client.name) %></h2>
<% end %>
<div class="span9">
<% if @pre_auth.scopes %>
<p><b>
<%= t('.application_ability') %>
</b></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.uid %>
<%= 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 t(".authorize"), :class => "btn btn-success btn-primary" %>
<%= t('.or') %>
<% end %>
</div>
<div class="inline_block">
<%= form_tag oauth_authorization_path, :method => :delete do %>
<%= hidden_field_tag :client_id, @pre_auth.client.uid %>
<%= 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 t(".deny"), :class => "btn" %>
<% end %>
</div>
</div>