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