mirror of
https://github.com/iv-org/invidious.git
synced 2026-05-08 00:17:55 +00:00
It encapsulates all related code from translation into it's own module. Required for the migration to the crystal stdlib logger: https://github.com/iv-org/invidious/pull/5426
33 lines
1.7 KiB
Plaintext
33 lines
1.7 KiB
Plaintext
<% content_for "header" do %>
|
|
<title><%= I18n.translate(locale, "Change password") %> - Invidious</title>
|
|
<% end %>
|
|
|
|
<div class="pure-g">
|
|
<div class="pure-u-1 pure-u-lg-1-5"></div>
|
|
<div class="pure-u-1 pure-u-lg-3-5">
|
|
<div class="h-box">
|
|
<form class="pure-form pure-form-aligned" action="/change_password?referer=<%= URI.encode_www_form(referer) %>" method="post">
|
|
<legend><%= I18n.translate(locale, "Change password") %></legend>
|
|
|
|
<fieldset>
|
|
<label for="password"><%= I18n.translate(locale, "Password") %> :</label>
|
|
<input required class="pure-input-1" name="password" type="password" placeholder="<%= I18n.translate(locale, "Password") %>">
|
|
|
|
<label for="new_password[0]"><%= I18n.translate(locale, "New password") %> :</label>
|
|
<input required class="pure-input-1" name="new_password[0]" type="password" placeholder="<%= I18n.translate(locale, "New password") %>">
|
|
|
|
<label for="new_password[1]"><%= I18n.translate(locale, "New password") %> :</label>
|
|
<input required class="pure-input-1" name="new_password[1]" type="password" placeholder="<%= I18n.translate(locale, "New password") %>">
|
|
|
|
<button type="submit" name="action" value="change_password" class="pure-button pure-button-primary">
|
|
<%= I18n.translate(locale, "Change password") %>
|
|
</button>
|
|
|
|
<input type="hidden" name="csrf_token" value="<%= HTML.escape(csrf_token) %>">
|
|
</fieldset>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<div class="pure-u-1 pure-u-lg-1-5"></div>
|
|
</div>
|