Няма описание

createUser.html 3.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. {% extends 'baseTemplate.html' %}
  2. {% block title %}Changement du mot de passe{% endblock %}
  3. {% block content %}
  4. {% load i18n %}
  5. <div class="container">
  6. <div class="row">
  7. <div class="text-center">
  8. <h1><a class="counter-link" href="{% url 'home' %}">SeumBook™</a></h1>
  9. </div>
  10. </div>
  11. <div class="row">
  12. <div class="panel panel-primary">
  13. <div class="panel-heading">
  14. <h2 class="panel-title">{% trans "Create your seum counter!" %}</h2>
  15. </div>
  16. <div class=" panel-body">
  17. <form method="POST">
  18. {% csrf_token %}
  19. <p>{% trans "The email address will be used for password reinitialisation. Your login on this website will be the first part of this address (before the @)." %}</p>
  20. <div class="form-group">
  21. <label for="id_email">{% trans "Email address" %}</label>
  22. <input id="id_email" type="email" class="form-control" name="email" required />
  23. </div>
  24. <p>{% trans "If you check the box below, you will receive an email from <tt>seum@merigoux.ovh</tt> each time someone get the seum on the site. Spamming but so enjoyable, can be deactivated and reactivated later." %}
  25. <div class="form-check">
  26. <input type="checkbox" class="form-check-input" name="email_notifications">
  27. <label class="form-check-label">
  28. {% trans "Email notifications" %}
  29. </label>
  30. </div>
  31. <p>{% trans "Other users will see your nickname and your trigram only, it will be your seum identity!" %}</p>
  32. <div class="form-group">
  33. <label for="id_trigramme">{% trans "Trigram" %}</label>
  34. <input id="id_trigramme" maxlength="3" type="text" class="form-control text-uppercase" name="trigramme" onkeyup="this.value=this.value.toUpperCase();" required />
  35. </div>
  36. <div class="form-group">
  37. <label for="id_nick">{% trans "Nick" %}</label>
  38. <input id="id_nick" type="text" class="form-control" name="nick" required />
  39. </div>
  40. <p>{% trans "I could have required 10 characters with one digit, an emoji, three uppercase letters and two lowercase ones to throw you the seum, but actually you can choose whatever you want." %}</p>
  41. <div class="form-group">
  42. <label for="id_password1">{% trans "Password" %}</label>
  43. <input id="id_password1" type="password" class="form-control" name="password1" required />
  44. </div>
  45. <div class="form-group">
  46. <label for="id_password2">{% trans "Confirm password" %}</label>
  47. <input id="id_password2" type="password" class="form-control" name="password2" required />
  48. </div>
  49. <p>{% trans "If this form has given you the seum, do not forget to reset your counter once you are logged in!" %}</p>
  50. <div class="text-center">
  51. <button type="submit" class="btn btn-default btn-success">{% trans "Create the counter" %}</button>
  52. </div>
  53. </form>
  54. </div>
  55. </div>
  56. </div>
  57. {% if error %}
  58. <div class="row">
  59. <div class="panel panel-danger">
  60. <div class="panel-heading">
  61. <h2 class="panel-title">{% trans "Error" %}</h2>
  62. </div>
  63. <div class=" panel-body">
  64. <p>{{error}}</p>
  65. </div>
  66. </div>
  67. </div>
  68. {% endif %}
  69. </div>
  70. {% endblock %}