]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/oauth_clients/edit.html.erb
When a user hasn't made any blocks or been blocked don't display a
[rails.git] / app / views / oauth_clients / edit.html.erb
index 3ff72fee3951158c7f12fc920b2f80bf68402b78..085ddef4ec5dbf9d1c24c4a625624005ed971da8 100644 (file)
@@ -1,5 +1,6 @@
-<h1>Edit your application</h1>
-<% form_for :client_application do |f| %>
-       <%= render :partial => "form", :locals => { :f => f } %>
-       <%= submit_tag "Edit" %>
-<% end %>
\ No newline at end of file
+<h1><%= t'oauth_clients.edit.title' %></h1>
+<% form_for :client_application, @client_application, :url => oauth_client_path(@client_application.user.display_name, @client_application), :html => { :method => :put } do |f| %>
+  <%= render :partial => "form", :locals => { :f => f } %>
+  <br/>
+  <%= submit_tag t'oauth_clients.edit.submit' %>
+<% end %>