- <label for="client_application_allow_read_prefs">Request permission to read the user preferences.</label><br/>
- <%= f.check_box :allow_read_prefs %>
-</div>
-<div class="field">
- <label for="client_application_allow_write_prefs">Request permission to write the user preferences.</label><br/>
- <%= f.check_box :allow_write_prefs %>
-</div>
-<div class="field">
- <label for="client_application_allow_write_diary">Request permission to create diary entries, comments and friends.</label><br/>
- <%= f.check_box :allow_write_diary %>
-</div>
-<div class="field">
- <label for="client_application_allow_write_api">Request permission to write the API on the user's behalf.</label><br/>
- <%= f.check_box :allow_write_api %>
-</div>
-<div class="field">
- <label for="client_application_allow_read_gpx">Request permission to read the user's private GPS traces.</label><br/>
- <%= f.check_box :allow_read_gpx %>
-</div>
-<div class="field">
- <label for="client_application_allow_write_gpx">Request permission to upload GPS traces as the user.</label><br/>
- <%= f.check_box :allow_write_gpx %>
+ <%= f.check_box perm %>
+ <label for="client_application_<%= perm.to_s %>"><%= t('oauth_clients.form.' + perm.to_s) %></label><br/>