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