]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/oauth_clients/_form.html.erb
Check the oauth token and then use the capabilities directly
[rails.git] / app / views / oauth_clients / _form.html.erb
index f8fd4347e7a65d12879533ae308d115dafb15b69..bb0506671cbdf917d109215e5dce64fc7cc6297a 100644 (file)
@@ -1,23 +1,29 @@
-<div class="field">
-       <label for="client_application_name"><%= t'oauth.client_application.form.name' %> (<%= t'oauth.client_application.form.required' %>)</label><br/>
-       <%= f.text_field :name %>
+<div class='standard-form'>
+  <fieldset>
+    <div class="form-row">
+      <label class='standard-label' for="client_application_name"><%= t '.name' %> (<%= t '.required' %>)</label>
+      <%= f.text_field :name %>
+    </div>
+    <div class="form-row">
+      <label class='standard-label' for="client_application_url"><%= t '.url' %> (<%= t '.required' %>)</label>
+      <%= f.text_field :url %>
+    </div>
+    <div class="form-row">
+      <label class='standard-label' for="client_application_callback_url"><%= t '.callback_url' %></label>
+      <%= f.text_field :callback_url %>
+    </div>
+    <div class="form-row">
+      <label class='standard-label' for="client_application_support_url"><%= t '.support_url' %></label>
+      <%= f.text_field :support_url %>
+    </div>
+  </fieldset>
+  <fieldset class='form-divider'>
+      <p><%= t '.requests' %></p>
+      <% ClientApplication.all_permissions.each do |perm| %>
+        <div class="form-row">
+          <%= f.check_box perm %>
+          <label class='standard-label' for="client_application_<%= perm.to_s %>"><%= t('.' + perm.to_s) %></label>
+        </div>
+      <% end %>
+  </fieldset>
 </div>
 </div>
-<div class="field">
-       <label for="client_application_url"><%= t'oauth.client_application.form.url' %> (<%= t'oauth.client_application.form.required' %>)</label><br/>
-       <%= f.text_field :url %>
-</div>
-<div class="field">
-       <label for="client_application_callback_url"><%= t'oauth.client_application.form.callback_url' %></label><br/>
-       <%= f.text_field :callback_url %>
-</div>
-<div class="field">
-       <label for="client_application_support_url"><%= t'oauth.client_application.form.support_url' %></label><br/>
-       <%= f.text_field :support_url %>
-</div>
-<p><%= t'oauth.client_application.form.requests' %></p>
-<% ClientApplication.all_permissions.each do |perm| %>
-<div class="field">
-  <%= f.check_box perm %>
-  <label for="client_application_<%= perm.to_s %>"><%= t('oauth.client_application.form.' + perm.to_s) %></label><br/>
-</div>
-<% end %>