diff --git a/ietf/templates/registration/base.html b/ietf/templates/registration/base.html new file mode 100644 index 000000000..8c06ed64e --- /dev/null +++ b/ietf/templates/registration/base.html @@ -0,0 +1,6 @@ +{% extends "base.html" %} + +{% block morecss %} +table.register-form ul.errorlist{ list-style-type: none; color: red; padding: 0px; margin: 0px; } +table.register-form p { margin-top: 0px; } +{% endblock %} diff --git a/ietf/templates/registration/change_password.html b/ietf/templates/registration/change_password.html new file mode 100644 index 000000000..ac792645a --- /dev/null +++ b/ietf/templates/registration/change_password.html @@ -0,0 +1,23 @@ +{% extends "registration/base.html" %} + +{% block title %}Change password{% endblock %} + +{% block content %} +
+

Change password

+{% if success %} +

Your password has been updated.

+

Now you can sign in

+{% else %} +

Hello, you can select a new password below for your user {{ username }}.

+
+ + {{ form }} +
+
+ +
+
+{% endif %} +
+{% endblock %} diff --git a/ietf/templates/registration/confirm.html b/ietf/templates/registration/confirm.html new file mode 100644 index 000000000..cf014ac39 --- /dev/null +++ b/ietf/templates/registration/confirm.html @@ -0,0 +1,23 @@ +{% extends "registration/base.html" %} + +{% block title %}Confirm account creation{% endblock %} + +{% block content %} +
+

Confirm account creation

+{% if success %} +

Your account with login name '{{ email }}' has been created, using the password you have select.

+

Now you can sign in

+{% else %} +

In order to complete the setup of your account with login name '{{ email }}', please set a password:

+
+ + {{ form }} +
+
+ +
+
+{% endif %} +
+{% endblock %} diff --git a/ietf/templates/registration/create.html b/ietf/templates/registration/create.html new file mode 100644 index 000000000..d871a7ead --- /dev/null +++ b/ietf/templates/registration/create.html @@ -0,0 +1,65 @@ +{% extends "registration/base.html" %} + +{% block title %}Account Creation{% endblock %} + +{% block scripts %} + {{ block.super }} + +(function($) { + var checkUsername = function() { + var field = $(this); + var url = $("#check_user_name_url").val(); + var error = field.next('.username-error'); + + $.ajax({ + url: url, + data: {username: field.val()}, + dataType: 'json', + success: function(response) { + if (response.error) { + error.text(response.error); + error.show(); + } else { + error.hide(); + } + } + }); + } + + $(document).ready(function(){ + $('#id_email').after(' '); + $('#id_email').keyup(checkUsername).blur(checkUsername); + }); +})(jQuery); +{% endblock %} + +{% block content %} +
+

Account Creation

+{% if success %} +

Your account creation request has been received successfully.
+ We have sent you an email with instructions on how to complete the process.

+

Best regards, +
+
+

+ The datatracker login manager service
+ (for the IETF Secretariat) + +{% else %} +
+

Please enter your email address in order to create a new account.

+ + {{ form }} +
+
+ + +
+
+

+I'm already registered but I forgot my password. Please, help me reset my password. +

+{% endif %} +
+{% endblock %} diff --git a/ietf/templates/registration/creation_email.txt b/ietf/templates/registration/creation_email.txt new file mode 100644 index 000000000..e95dd2c28 --- /dev/null +++ b/ietf/templates/registration/creation_email.txt @@ -0,0 +1,17 @@ +{% autoescape off %} +Hello, + +We have received an account creation request for {{ username }} +at {{ domain }}. In order to set a new password for the +{{ username }} account, please go to the following link and +follow the instructions there: + + http://{{ domain }}{% url confirm_account username today realm auth %} + +This link will expire in {{ expire }} days. + +Best regards, + + The datatracker login manager service + (for the IETF Secretariat) +{% endautoescape %} \ No newline at end of file diff --git a/ietf/templates/registration/index.html b/ietf/templates/registration/index.html new file mode 100644 index 000000000..f3e8e6344 --- /dev/null +++ b/ietf/templates/registration/index.html @@ -0,0 +1,23 @@ +{% extends "registration/base.html" %} + +{% block title %}Account Management{% endblock %} + +{% block content %} +
+

Account Management

+ +

+ You can: +

+

+ +
+{% endblock %} diff --git a/ietf/templates/registration/password_reset.html b/ietf/templates/registration/password_reset.html new file mode 100644 index 000000000..e7dcadbc8 --- /dev/null +++ b/ietf/templates/registration/password_reset.html @@ -0,0 +1,30 @@ +{% extends "registration/base.html" %} + +{% block title %}Password Reset Request{% endblock %} + +{% block content %} +
+

Password Reset Request

+{% if success %} +

Your password reset request has been successfully received.
+ We have sent you an email with instructions on how to set a new password.

+

Best regards, +
+
+

+ The datatracker login manager service
+ (for the IETF Secretariat) +
+

+{% else %} +
+ + {{ form }} +
+
+ +
+
+{% endif %} +
+{% endblock %} diff --git a/ietf/templates/registration/password_reset_email.txt b/ietf/templates/registration/password_reset_email.txt new file mode 100644 index 000000000..3216393b5 --- /dev/null +++ b/ietf/templates/registration/password_reset_email.txt @@ -0,0 +1,20 @@ +{% autoescape off %} +Hello, + +We have received a password reset request for {{ username }} +at {{ domain }}. In order to set a new password for the +{{ username }} account, please go to the following link and +follow the instructions there: + + http://{{ domain }}{% url confirm_password_reset username today realm auth %} + +This link will expire in {{ expire }} days. + +If you have not requested a password reset you can ignore this email, your +credentials have been left untouched. + +Best regards, + + The datatracker login manager service + (for the IETF Secretariat) +{% endautoescape %} \ No newline at end of file