]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/oauth/authorize.html.erb
Wrap the permission label with a <label> tag
[rails.git] / app / views / oauth / authorize.html.erb
index 3108c551af65054394244d0cb6d393d7917aea4d..efb7de7ec995065294fdf243db2f62a8a988e689 100644 (file)
@@ -12,7 +12,7 @@
   <p><%= t '.allow_to' %></p>
   <ul>
   <% @token.client_application.permissions.each do |perm| %>
   <p><%= t '.allow_to' %></p>
   <ul>
   <% @token.client_application.permissions.each do |perm| %>
-    <li><%= check_box_tag perm.to_s, "yes", @token.read_attribute(perm) %><%= t ".#{perm}" %></li>
+    <li><%= check_box_tag perm.to_s, "yes", @token.read_attribute(perm) %><%= label_tag perm.to_s, t(".#{perm}") %></li>
   <% end %>
   </ul>
   <p><%= submit_tag t(".grant_access") %></p>
   <% end %>
   </ul>
   <p><%= submit_tag t(".grant_access") %></p>