adjust email value to external-email #1

Merged
stillbeben merged 5 commits from adjust_mail into main 2022-01-03 12:49:54 +00:00
3 changed files with 5 additions and 5 deletions
Showing only changes of commit d05d01933d - Show all commits

View file

@ -103,7 +103,7 @@ def selfservice(ldap):
request.form["givenName"],
request.form["sn"],
),
"mail": request.form["mail"],
"external-mail": request.form["external-mail"],
},
)
flash(gettext("user data was updated"))

View file

@ -37,9 +37,9 @@
</div>
<div class="row mb-3">
<label for="mail" class="form-label col-sm-2">{% trans email %}e-mail address{% endtrans %}</label>
<label for="external-mail" class="form-label col-sm-2">{% trans email %}e-mail address{% endtrans %}</label>
stillbeben marked this conversation as resolved Outdated
Outdated
Review

Please also adjust the value inside the trans tags accordingly. See README.md on how to update translations, then.

Please also adjust the value inside the `trans` tags accordingly. See `README.md` on how to update translations, then.

Thanks! Adjusted the tag and extracted the messages files.

Thanks! Adjusted the tag and extracted the messages files.
<div class="col-sm-10">
<input type="email" name="mail" id="mail" value="{{ CURRENT_USER["mail"]|e }}" required class="form-control">
<input type="email" name="external-mail" id="external-mail" value="{{ CURRENT_USER["external-mail"]|e }}" required class="form-control">
</div>
</div>

View file

@ -109,8 +109,8 @@ msgid "given name"
msgstr "Vorname"
#: templates/selfservice.html:40
msgid "e-mail address"
msgstr "E-Mail-Adresse"
msgid "external e-mail address"
msgstr "Externe E-Mail-Adresse"
#: templates/selfservice.html:46
msgid "Update"