Ingen beskrivning

profile.html 2.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. {% extends "bootstrapheader.html" %}
  2. {% block body %}
  3. <body>
  4. <div class="container">
  5. <h2>Profile</h2>
  6. <form class="form-horizontal" role="form" action="/profile" method="post">
  7. <div class="form-group">
  8. <label class="control-label col-sm-2" for="email">Email:</label>
  9. <div class="col-sm-10">
  10. <input type="email" name="email" class="form-control" id="email" placeholder="Enter email" value={{email}} required>
  11. </div>
  12. </div>
  13. <div class="form-group">
  14. <label class="control-label col-sm-2" for="name">Name:</label>
  15. <div class="col-sm-10">
  16. <input type="text" name="name" class="form-control" id="name" placeholder="Enter Name" value={{name}} required>
  17. </div>
  18. </div>
  19. <div class="form-group">
  20. <label class="control-label col-sm-2" for="last">Last:</label>
  21. <div class="col-sm-10">
  22. <input type="text" name="last" class="form-control" id="last" placeholder="Enter Last" value={{last}} required>
  23. </div>
  24. </div>
  25. <div class="form-group">
  26. <div class="col-sm-offset-2 col-sm-10">
  27. <button type="submit" class="btn btn-primary">Submit</button>
  28. </div>
  29. </div>
  30. </form>
  31. </div>
  32. {% for m in msg %}
  33. <div class="alert alert-{{m["type"]}}">
  34. <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
  35. {{m["msg"]}}
  36. </div>
  37. {% endfor %}
  38. <hr>
  39. <div class=container>
  40. <h2>Change Password</h2>
  41. <form class="form-horizontal" role="form" action="/profile" method="post">
  42. <div class="form-group">
  43. <label class="control-label col-sm-2" for="pwd">Password:</label>
  44. <div class="col-sm-10">
  45. <input type="password" name="pwd" class="form-control" id="pwd" placeholder="Enter password" required>
  46. </div>
  47. </div>
  48. <div class="form-group">
  49. <label class="control-label col-sm-2" for="pwd2">Password:</label>
  50. <div class="col-sm-10">
  51. <input type="password" name="pwd2" class="form-control" id="pwd2" placeholder="Confirm password" required>
  52. </div>
  53. </div>
  54. <div class="form-group">
  55. <div class="col-sm-offset-2 col-sm-10">
  56. <button type="submit" class="btn btn-primary">Submit</button>
  57. </div>
  58. </div>
  59. </form>
  60. </div>
  61. {% for m in pmsg %}
  62. <div class="alert alert-{{m["type"]}}">
  63. <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
  64. {{m["msg"]}}
  65. </div>
  66. {% endfor %}
  67. </body>
  68. {% endblock %}