-<div class="field">
- <label for="client_application_name">Name*</label><br/>
- <%= f.text_field :name %>
-</div>
-<div class="field">
- <label for="client_application_url">Main Application URL*</label><br/>
- <%= f.text_field :url %>
-</div>
-<div class="field">
- <label for="client_application_callback_url">Callback URL*</label><br/>
- <%= f.text_field :callback_url %>
-</div>
-<div class="field">
- <label for="client_application_support_url">Support URL</label><br/>
- <%= f.text_field :support_url %>
-</div>
-<div class="field">
- <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 %>
-</div>
+<%= f.text_field :name %>
+<%= f.text_field :url %>
+<%= f.text_field :callback_url %>
+<%= f.text_field :support_url %>
+<div class='mb-3'>
+ <p><%= t ".requests" %></p>
+ <% ClientApplication.all_permissions.each do |perm| %>
+ <%= f.check_box perm %>
+ <% end %>
+</div>
+<%= f.primary %>