profile.html 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {% extends "base.html" %}
  2. {% block content %}
  3. <h1> Your Profile</h1>
  4. {% if user.profile_image %}
  5. <img src="static/uploads/{{ user.profile_image }}" witdh="100" height="100">
  6. {% else %}
  7. <img src="static/uploads/default.png" width="100" height="100">
  8. {% endif %}
  9. <form method="POST" action="" enctype="multipart/form-data">
  10. <input type="file" id="profilepic_upload" name="profilepic_upload" accept="image/png, image/jpeg">
  11. <button type="submit" class="btn btn-primary">Upload</button>
  12. </form>
  13. <p>{{ user.firstname }}</p>
  14. <p>{{ user.lastname }}</p>
  15. <p>{{ user.gender }} , {{ user.age }}</p>
  16. <form method="POST">
  17. <textarea id="description_area" name="description_area" placeholder="{{ user.description }}"></textarea>
  18. <button type="submit" class="btn btn-primary">Edit</button>
  19. </form>
  20. <form method="POST">
  21. <label for="passwd_1"></label>
  22. <input
  23. type="password"
  24. class="form-control"
  25. id="passwd_1"
  26. name="passwd_1"
  27. placeholder="Edit Password"
  28. />
  29. <label for="passwd_2"></label>
  30. <input
  31. type="password"
  32. class="form-control"
  33. id="passwd_2"
  34. name="passwd_2"
  35. placeholder="Confirm Password"
  36. />
  37. <button type="submit" class="btn btn-primary">Update Password</button>
  38. </form>
  39. {% endblock %}