Add default servings to profile + choose servings when scheduling
This commit is contained in:
parent
d8641d4db6
commit
ae6da1a5ae
13 changed files with 70 additions and 34 deletions
|
|
@ -2,8 +2,7 @@
|
|||
|
||||
{% block main_container %}
|
||||
|
||||
{% match user %}
|
||||
{% when Some with (user) %}
|
||||
{% if let Some(user) = user %}
|
||||
|
||||
<div class="content" id="user-edit">
|
||||
<h1>{{ tr.t(Sentence::ProfileTitle) }}</h1>
|
||||
|
|
@ -27,6 +26,14 @@
|
|||
|
||||
{{ message_email }}
|
||||
|
||||
<label for="input-servings">{{ tr.t(Sentence::ProfileDefaultServings) }}</label>
|
||||
<input
|
||||
id="input-servings"
|
||||
type="number"
|
||||
step="1" min="1" max="100"
|
||||
name="default_servings"
|
||||
value="{{ default_servings }}"/>
|
||||
|
||||
<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" />
|
||||
|
||||
|
|
@ -40,7 +47,6 @@
|
|||
{{ message }}
|
||||
</div>
|
||||
|
||||
{% when None %}
|
||||
{% endmatch %}
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue