Skip to content

Commit

Permalink
changing t in translation (publiclab#7633)
Browse files Browse the repository at this point in the history
  • Loading branch information
Snouzy authored Mar 15, 2020
1 parent 6fb7ee1 commit 83dc794
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions app/views/users/reset.html.erb
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
<div class="col-lg-6">

<h2><%= t('users.reset.reset_password') %></h2>
<h2><%= translation('users.reset.reset_password') %></h2>

<hr />

<% if params[:key] && User.find_by(reset_key: params[:key]) %>

<p><%= t('users.reset.enter_username_and_password') %>:</p>
<p><%= translation('users.reset.enter_username_and_password') %>:</p>

<form class='form'>

<input class="form-control" name="key" type="hidden" value="<%= params[:key] %>" />
<input class="form-control" name="user[username]" placeholder="<%= t('users.reset.username_placeholder') %>" tabindex='2' type="text" /> <br />
<input class="form-control" name="user[password]" placeholder="<%= t('users.reset.password_placeholder') %>" tabindex='3' type="password" /> <br />
<input class="form-control" name="user[password_confirmation]" placeholder="<%= t('users.reset.retype_password_placeholder') %>" tabindex='4' type="password" /> <br />
<input class="form-control" name="user[username]" placeholder="<%= translation('users.reset.username_placeholder') %>" tabindex='2' type="text" /> <br />
<input class="form-control" name="user[password]" placeholder="<%= translation('users.reset.password_placeholder') %>" tabindex='3' type="password" /> <br />
<input class="form-control" name="user[password_confirmation]" placeholder="<%= translation('users.reset.retype_password_placeholder') %>" tabindex='4' type="password" /> <br />

<button class="btn btn-lg btn-primary" type="submit" tabindex="5"><%= t('users.reset.save') %></button>
<button class="btn btn-lg btn-primary" type="submit" tabindex="5"><%= translation('users.reset.save') %></button>

</form>

<% else %>
<p><%= t('users.reset.enter_email_reset_password') %>:</p>
<p><%= translation('users.reset.enter_email_reset_password') %>:</p>

<form action="/reset/" class='form'>

<div class="alert alert-danger" id="validPrint" style="display:none"> </div>

<input class="form-control" name="email" id='validEmail' placeholder="you@example.com" tabindex='2' type="text" /> <br />

<button class="btn btn-lg btn-primary" id="validBtn" type="submit" tabindex="3"><%= t('users.reset.reset') %></button>
<button class="btn btn-lg btn-primary" id="validBtn" type="submit" tabindex="3"><%= translation('users.reset.reset') %></button>

</form>

Expand Down

0 comments on commit 83dc794

Please sign in to comment.