]> git.openstreetmap.org Git - rails.git/blob - app/views/oauth/authorize.html.erb
Merge remote-tracking branch 'upstream/pull/4717'
[rails.git] / app / views / oauth / authorize.html.erb
1 <% content_for :heading do %>
2   <h1><%= t ".title" %></h1>
3 <% end %>
4
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>
6
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] %>
11   <% end -%>
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}") %>
15     <% end -%>
16   <% end -%>
17   <%= f.primary t(".grant_access") %>
18 <% end %>