La version 5 de Planète Casio. Regroupe le forum, les programmes, les tutoriel, les sprites et tous les autres outils développés par nos soins.
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

98 wiersze
2.8KB

  1. {% extends "base/base.html" %}
  2. {% block title %}
  3. <a href="{{ url_for('adm') }}">Panneau d'administration</a> » <h1>Édition du compte de '{{ user.name }}'</h1>
  4. {% endblock %}
  5. {% block content %}
  6. <section class="form">
  7. <form action="{{ url_for('adm_edit_account', user_id=user.id) }}" method="post" enctype="multipart/form-data">
  8. {{ form.hidden_tag() }}
  9. <h2>Général</h2>
  10. <div>
  11. {{ form.avatar.label }}
  12. <div>
  13. <img class="avatar" src="{{ url_for('static', filename=user.avatar) }}" meta="{{ user.avatar }}" />
  14. {{ form.avatar }}
  15. </div>
  16. </div>
  17. <div>
  18. {{ form.username.label }}
  19. {{ form.username(placeholder=user.name) }}
  20. {% for error in form.username.errors %}
  21. <span class="msgerror">{{ error }}</span>
  22. {% endfor %}
  23. </div>
  24. <div>
  25. {{ form.email.label }}
  26. {{ form.email(placeholder=user.email) }}
  27. {% for error in form.email.errors %}
  28. <span class="msgerror">{{ error }}</span>
  29. {% endfor %}
  30. </div>
  31. <div>
  32. {{ form.password.label }}
  33. {{ form.password(placeholder='************') }}
  34. {% for error in form.password.errors %}
  35. <span class="msgerror">{{ error }}</span>
  36. {% endfor %}
  37. </div>
  38. <h2>Participation</h2>
  39. <div>
  40. {{ form.xp.label }}
  41. {{ form.xp(placeholder=user.xp) }}
  42. {% for error in form.xp.errors %}
  43. <span class="msgerror">{{ error }}</span>
  44. {% endfor %}
  45. </div>
  46. <div>
  47. {{ form.innovation.label }}
  48. {{ form.innovation(placeholder=user.innovation) }}
  49. {% for error in form.innovation.errors %}
  50. <span class="msgerror">{{ error }}</span>
  51. {% endfor %}
  52. </div>
  53. <h2>À propos</h2>
  54. <div>
  55. {{ form.birthday.label }}
  56. {{ form.birthday(value=user.birthday) }}
  57. {% for error in form.birthday.errors %}
  58. <span class="msgerror">{{ error }}</span>
  59. {% endfor %}
  60. </div>
  61. <div>
  62. {{ form.signature.label }}
  63. <textarea id="{{ form.signature.name }}" name="{{ form.signature.name }}">{{ user.signature }}</textarea>
  64. {% for error in form.signature.errors %}
  65. <span class="msgerror">{{ error }}</span>
  66. {% endfor %}
  67. </div>
  68. <div>
  69. {{ form.biography.label }}
  70. <textarea id="{{ form.biography.name }}" name="{{ form.biography.name }}">{{ user.bio }}</textarea>
  71. {% for error in form.biography.errors %}
  72. <span class="msgerror">{{ error }}</span>
  73. {% endfor %}
  74. </div>
  75. <h2>Préférences</h2>
  76. <div>
  77. {{ form.newsletter.label }}
  78. {{ form.newsletter(checked=user.newsletter) }}
  79. <div style="font-size:80%;color:rgba(0,0,0,.5)">{{ form.newsletter.description }}</div>
  80. {% for error in form.newsletter.errors %}
  81. <span class="msgerror">{{ error }}</span>
  82. {% endfor %}
  83. </div>
  84. <div>{{ form.submit(class_="bg-green") }}</div>
  85. </form>
  86. <h2 style="margin-top:30px;">Supprimer le compte</h2>
  87. <a href="{{ url_for('adm_delete_account', user_id=user.id) }}" class="button bg-red">Supprimer le compte</a>
  88. </section>
  89. {% endblock %}