Commit 6df8f874 authored by mh's avatar mh
Browse files

unify usage

parent caa27512
......@@ -15,10 +15,10 @@
<% else %>
<p>
<%= t :app_passwords_help %>
<%= t(:app_passwords_help) %>
</p>
<% if @passwords && !@passwords.empty? %>
<% if @passwords.present? %>
<br />
<hr />
......@@ -34,7 +34,7 @@
<%- end %>)
<%= hidden_field_tag(:delete, '', value: pw) %>
&nbsp;<%= submit_tag(t :delete) %>
&nbsp;<%= submit_tag t(:delete)) %>
<% end %>
</li>
<% end %>
......@@ -45,22 +45,22 @@
<br />
<p>
<b><%= t :new_app_passwords %>:</b>
<b><%= t(:new_app_passwords) %>:</b>
</p>
<%= form_tag(app_passwords_path, method: "post") do %>
<table>
<tr><td>
<%= label_tag(:app_name, (t :app_name)) %>
<%= label_tag(:app_name, t(:app_name)) %>
</td><td>
<%= text_field_tag(:app_name, '', value: t(:app_name), autocomplete: 'off') %>
</td></tr><tr><td>
<%= label_tag(:password, (t :your_main_pw)) %>
<%= label_tag(:password, t(:your_main_pw)) %>
</td><td>
<%= password_field_tag(:password, nil, placeholder: t(:enter_your_current_pw)) %>
</td></tr>
</table>
<p>
<%= submit_tag(t :generate) %>
<%= submit_tag t(:generate) %>
<%= link_to t(:back), root_path %>
</p>
<% end %>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment