Files
tryton/email_validation.html
T
Nicolas Évrard 462d735291 Set request parameters with input fields
Per the form submission specification of HTML5 the request parameters must be
specified with input fields because they are discarded from the URL when
submitting the form.

https://www.w3.org/TR/2011/WD-html5-20110525/association-of-controls-and-forms.html#form-submission-algorithm

issue6542
review41351002
2017-06-13 13:59:13 +02:00

36 lines
1.4 KiB
HTML

<!DOCTYPE html>
<html xmlns:py="http://genshi.edgewall.org/">
<head>
<title>Email Validation</title>
</head>
<body>
<py:for each="user in records">
<div style="display: block; text-align: center">
<div>
<h1>Just one more step..</h1>
<p>${user.email}</p>
<form action="${user.get_email_validation_url()}">
<py:for each="name, value in extract_params(user.get_email_validation_url())">
<input type="hidden" name="${name}" value="${value}"/>
</py:for>
<button type="submit"
style="cursor:pointer;
padding: 0.5em 1em; font-size:2em;
border: 1px solid #2E6DA4; border-radius: 4px;
color: #FFF; background-color: #337AB7;">
Validate
</button>
</form>
</div>
<hr style="margin-top: 20px;
border-style: solid none none; border-color: #EEE"></hr>
<div style="font-size: 80%; color: #777">
<p>Button is not working? Paste this into your browser:</p>
<p>${user.get_email_validation_url()}</p>
<p>If you received this email by mistake, just ignore it.</p>
</div>
</div>
</py:for>
</body>
</html>