1 <% content_for :heading do %>
2 <h1><%= t ".title" %></h1>
5 <p><%= t(".request_access_html", :app_name => link_to(@token.client_application.name, @token.client_application.url), :user => link_to(current_user.display_name, current_user)) %></p>
7 <%= bootstrap_form_tag do |f| %>
8 <%= f.hidden_field :oauth_token, :value => @token.token %>
9 <% if params[:oauth_callback] -%>
10 <%= f.hidden_field :oauth_callback, :value => params[:oauth_callback] %>
12 <%= f.form_group :permissions, :label => { :text => t(".allow_to") } do %>
13 <% @token.client_application.permissions.each do |perm| -%>
14 <%= f.check_box perm, :value => "yes", :checked => @token.read_attribute(perm), :label => t(".#{perm}") %>
17 <%= f.primary t(".grant_access") %>