]> git.openstreetmap.org Git - rails.git/blob - app/views/oauth_clients/_form.html.erb
Send meta information with error pages
[rails.git] / app / views / oauth_clients / _form.html.erb
1 <div class='standard-form'>
2   <fieldset>
3     <div class="standard-form-row">
4       <label class='standard-label' for="client_application_name"><%= t ".name" %> (<%= t ".required" %>)</label>
5       <%= f.text_field :name %>
6     </div>
7     <div class="standard-form-row">
8       <label class='standard-label' for="client_application_url"><%= t ".url" %> (<%= t ".required" %>)</label>
9       <%= f.text_field :url %>
10     </div>
11     <div class="standard-form-row">
12       <label class='standard-label' for="client_application_callback_url"><%= t ".callback_url" %></label>
13       <%= f.text_field :callback_url %>
14     </div>
15     <div class="standard-form-row">
16       <label class='standard-label' for="client_application_support_url"><%= t ".support_url" %></label>
17       <%= f.text_field :support_url %>
18     </div>
19   </fieldset>
20   <fieldset class='form-divider'>
21       <p><%= t ".requests" %></p>
22       <% ClientApplication.all_permissions.each do |perm| %>
23         <div class="standard-form-row">
24           <%= f.check_box perm %>
25           <label class='standard-label' for="client_application_<%= perm.to_s %>"><%= t("." + perm.to_s) %></label>
26         </div>
27       <% end %>
28   </fieldset>
29 </div>