diff options
author | Jonas Kohl | 2024-12-10 17:15:10 +0100 |
---|---|---|
committer | Jonas Kohl | 2024-12-10 17:15:10 +0100 |
commit | 7d685c5e64149e20c7dc8977f645e050be53ddfd (patch) | |
tree | 44a931c23979aaa2e22b079f8af9232f490eb4d3 /src/application/templates/old/register.twig | |
parent | 7c9f91333da983da37d3dc837fa61ef0bff64549 (diff) |
Add classic theme
Diffstat (limited to 'src/application/templates/old/register.twig')
-rw-r--r-- | src/application/templates/old/register.twig | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/src/application/templates/old/register.twig b/src/application/templates/old/register.twig new file mode 100644 index 0000000..02e2bd0 --- /dev/null +++ b/src/application/templates/old/register.twig @@ -0,0 +1,77 @@ +{% set title = __("Register") %} +{% set formId = "register" %} +{% set formError = getAndClearFormError(formId) %} + +{% extends "base.twig" %} + +{% block content %} + +<hr color="silver" noshade> + <h1>{{ __("Register") }}</h1> + + + {% if formError %} + {% include "components/alert_error.twig" with { message: formError } %} + {% endif %} + <form action="{{ g.server.REQUEST_URI }}" method="post"> + <input type="hidden" name="form_id" value="{{ formId }}"> + + <label for="i_df82a9bc21">{{ __("Username:") }}</label><br> + <input class="form-control" id="i_df82a9bc21" type="text" name="df82a9bc21" value="{{ lastFormField(formId, "df82a9bc21") }}" required><br> + <br> + <label for="i_display_name">{{ __("Display name:") }}</label><br> + <input class="form-control" id="i_display_name" type="text" name="display_name" value="{{ lastFormField(formId, "display_name") }}" required><br> + <br> + <label for="i_password">{{ __("Choose password:") }}</label><br> + <input class="form-control" id="i_password" type="password" name="password" required><br> + <br> + <label for="i_password_retype">{{ __("Repeat password:") }}</label><br> + <input class="form-control" id="i_password_retype" type="password" name="password_retype" required><br> + <br> + <label for="i_email">{{ __("Email address:") }}</label><br> + <input class="form-control" id="i_email" type="email" name="email" value="{{ lastFormField(formId, "email") }}" required><br> + <br> + <label for="i_captcha">{{ __("CAPTCHA:") }}</label><br> + <img src="?_action=captcha&t={{ "now"|date("Uv") }}" alt="CAPTCHA" width="192" height="48" id="captcha-img" border="1"> + <table cellspacing="0" cellpadding="0"><tr> + <td> + <input type="text" name="captcha" id="i_captcha" class="form-control" required> + </td> + <td> + <button class="seamless" type="button" id="btn-refresh-captcha"><img src="/ui/theme-files/old/refresh.gif" width="16" height="16" border="0" draggable="false" alt="{{ __("New CAPTCHA") }}"></button> + </td> + </tr></table> + <br> + + <button type="submit">{{ __("Register now") }}</button> + + <br><br> + <table border="1" bordercolor="green" cellspacing="0" cellpadding="4"> + <tr> + <td> + {{ __("Already have an account? %link%Sign in now%/link%", { + "link": '<a href="?_action=auth">', + "/link": '</a>', + }) }} + </td> + </tr> + </table> + </form> +{% endblock %} + +{% block scripts %} +{{ parent() }} +<script type="text/javascript"> +$(function() { + $("#btn-refresh-captcha").click(function() { + $("#captcha-img").attr("src", "?_action=captcha&t=" + new Date().getTime().toString()); + }); +}); +</script> +<script type="text/javascript"> +$(function() { + $("#i_df82a9bc21").focus(); +}); +</script> +{% endblock %} + |