You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.6 KiB

  1. {% extends "base.html" %}
  2. {% block content %}
  3. <h1>Edit Account Profile</h1>
  4. <table>
  5. <tr>
  6. <td>Id</td>
  7. <td>{{user.id}}</td>
  8. </tr>
  9. <tr>
  10. <td>Username</td>
  11. <td>{{user.username}}</td>
  12. </tr>
  13. <tr>
  14. <td>Admin</td>
  15. <td>{% if user.admin %} Yes {% else %} False {% endif %}</td>
  16. </tr>
  17. </table>
  18. <form method="post">
  19. <label for="name">Name:</label>
  20. <input id="name" name="name" type="text" required="required"
  21. value="{{user.name | safe}}">
  22. <br>
  23. <label for="email">Email:</label>
  24. <input id="email" name="email" type="text" required="required"
  25. value="{{user.email | safe}}">
  26. <br>
  27. <label for="institution">Institution:</label>
  28. <input id="institution" name="institution" type="text"
  29. required="required"
  30. value="{{user.institution |
  31. safe}}">
  32. <br>
  33. <label for="position">Position:</label>
  34. <input id="position" name="position" type="text" required="required"
  35. value="{{user.position
  36. | safe}}">
  37. <br>
  38. <br>
  39. <input type="submit" value="Submit" id="submit">
  40. </form>
  41. {% if success %}
  42. <p style="color:darkgreen">Edits Successful!</p>
  43. {% elif fail %}
  44. <p style="color:darkred">Edits Failed. Please try again. {{fail}}</p>
  45. {% endif %}
  46. {% endblock %}