Translation support + french.
This commit is contained in:
parent
e9873c1943
commit
f059d3c61f
16 changed files with 380 additions and 169 deletions
|
|
@ -2,13 +2,15 @@
|
|||
|
||||
{% block main_container %}
|
||||
<div class="content">
|
||||
<h1></h1>
|
||||
<h1>{{ tr.t(Sentence::LostPassword) }}</h1>
|
||||
<form action="/ask_reset_password" method="post">
|
||||
<label for="email_field">Your email address</label>
|
||||
<input id="email_field" type="email" name="email" value="{{ email }}" autocapitalize="none" autocomplete="email" autofocus="autofocus" />
|
||||
<label for="email_field">{{ tr.t(Sentence::EmailAddress) }}</label>
|
||||
<input id="email_field" type="email"
|
||||
name="email" value="{{ email }}"
|
||||
autocapitalize="none" autocomplete="email" autofocus="autofocus" />
|
||||
{{ message_email }}
|
||||
|
||||
<input type="submit" name="commit" value="Ask reset" />
|
||||
<input type="submit" name="commit" value="{{ tr.t(Sentence::AskResetButton) }}" />
|
||||
</form>
|
||||
{{ message }}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -13,15 +13,26 @@
|
|||
{% else %}
|
||||
{{ user.name }}
|
||||
{% endif %}
|
||||
</a> / <a href="/signout" />Sign out</a></span>
|
||||
</a> / <a href="/signout" />{{ tr.t(Sentence::SignOut) }}</a></span>
|
||||
{% when None %}
|
||||
<span>
|
||||
<a href="/signin" >{{ tr.t(Sentence::SignInMenu) }}</a>/<a href="/signup">{{ tr.t(Sentence::SignUpMenu) }}</a>/<a href="/ask_reset_password">{{ tr.t(Sentence::LostPassword) }}</a>
|
||||
</span>
|
||||
{% endmatch %}
|
||||
|
||||
<select id="select-website-language">
|
||||
{% for lang in Tr::available_languages() %}
|
||||
<option value="{{ lang.0 }}"
|
||||
{%+ if tr.current_lang_code() == lang.0 %}
|
||||
selected
|
||||
{% endif %}
|
||||
>{{ lang.1 }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="main-container">
|
||||
{% block main_container %}{% endblock %}
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
<form action="/user/edit" method="post">
|
||||
|
||||
<label for="input-name">Name</label>
|
||||
<label for="input-name">{{ tr.t(Sentence::Name) }}</label>
|
||||
<input
|
||||
id="input-name"
|
||||
type="text"
|
||||
|
|
@ -20,22 +20,22 @@
|
|||
autocomplete="title"
|
||||
autofocus="autofocus" />
|
||||
|
||||
<label for="input-email">Email (need to be revalidated if changed)</label>
|
||||
<label for="input-email">{{ tr.t(Sentence::ProfileEmail) }}</label>
|
||||
<input id="input-email" type="email"
|
||||
name="email" value="{{ email }}"
|
||||
autocapitalize="none" autocomplete="email" autofocus="autofocus" />
|
||||
|
||||
{{ message_email }}
|
||||
|
||||
<label for="input-password-1">New password (minimum 8 characters)</label>
|
||||
<label for="input-password-1">{{ tr.tp(Sentence::ProfileNewPassword, [Box::new(common::consts::MIN_PASSWORD_SIZE)]) }}</label>
|
||||
<input id="input-password-1" type="password" name="password_1" autocomplete="new-password" />
|
||||
|
||||
<label for="input-password-2">Re-enter password</label>
|
||||
<label for="input-password-2">{{ tr.t(Sentence::ReEnterPassword) }}</label>
|
||||
<input id="input-password-2" type="password" name="password_2" autocomplete="new-password" />
|
||||
|
||||
{{ message_password }}
|
||||
|
||||
<input type="submit" name="commit" value="Save" />
|
||||
<input type="submit" name="commit" value="{{ tr.t(Sentence::Save) }}" />
|
||||
</form>
|
||||
{{ message }}
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue