1 <h1>Authorize access to your account</h1>
2 <p><%= t('oauth.client_application.request_access', :app_name => link_to(@token.client_application.name,@token.client_application.url)) %></p>
3 <% form_tag authorize_url do %>
4 <%= hidden_field_tag "oauth_token", @token.token %>
5 <%- if params[:oauth_callback] -%>
6 <%= hidden_field_tag "oauth_callback", params[:oauth_callback] %>
8 <p><%= t 'oauth.client_application.allow_to' %></p>
9 <ul style="list-style:none">
10 <% @token.client_application.permissions.each do |perm| %>
11 <li><%= check_box_tag perm.to_s, "yes", @token.read_attribute(perm) %><%= t "oauth.client_application.#{perm}" %></li>