Use built-in form submit translation keys for oauth client applications
This commit is contained in:
parent
085412f624
commit
1d09cfcb18
3 changed files with 6 additions and 5 deletions
|
@ -4,5 +4,5 @@
|
|||
|
||||
<%= form_for @client_application, :url => oauth_client_path(@client_application.user.display_name, @client_application), :html => { :method => :put } do |f| %>
|
||||
<%= render :partial => "form", :locals => { :f => f } %>
|
||||
<%= submit_tag t ".submit" %>
|
||||
<%= f.submit %>
|
||||
<% end %>
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
<% end %>
|
||||
|
||||
<div class='standard-form'>
|
||||
<%= form_for :client_application, :url => { :action => :create } do |f| %>
|
||||
<%= form_for @client_application, :url => { :action => :create } do |f| %>
|
||||
<%= render :partial => "form", :locals => { :f => f } %>
|
||||
<%= submit_tag t(".submit") %>
|
||||
<%= f.submit %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
|
|
@ -16,6 +16,9 @@ en:
|
|||
create: Add Comment
|
||||
message:
|
||||
create: Send
|
||||
client_application:
|
||||
create: Register
|
||||
update: Edit
|
||||
redaction:
|
||||
create: Create redaction
|
||||
update: Save redaction
|
||||
|
@ -1891,10 +1894,8 @@ en:
|
|||
oauth_clients:
|
||||
new:
|
||||
title: "Register a new application"
|
||||
submit: "Register"
|
||||
edit:
|
||||
title: "Edit your application"
|
||||
submit: "Edit"
|
||||
show:
|
||||
title: "OAuth details for %{app_name}"
|
||||
key: "Consumer Key:"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue