contribute.html 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. {% extends "layout.html" %}
  2. {% block content %}
  3. <h2>Mitgestalten</h2>
  4. <form action="/mitgestalten" method="post" >
  5. <div class="mb-3">
  6. <label for="fullname" class="form-label mb-1">Name</label>
  7. <input type="text" class="form-control" id="fullname" name="fullname">
  8. </div>
  9. <div class="mb-3">
  10. <label for="email" class="form-label mb-1">Email-Adresse</label>
  11. <input type="email" class="form-control" id="email" name="email">
  12. </div>
  13. <div class="mb-3">
  14. <label for="message" class="form-label mb-1">Deine Wünsche, Ideen und Anregungen für <em>Nach & Nach</em>:</label>
  15. <textarea class="form-control" id="message" name="message" rows="3"></textarea>
  16. </div>
  17. <button type="submit" class="btn btn-success mb-3">Senden</button>
  18. </form>
  19. {% with messages = get_flashed_messages(with_categories=true) %}
  20. {% if messages %}
  21. {% for category, message in messages %}
  22. <div class="alert alert-{{ category }} alert-dismissible" role="alert">
  23. {{ message }}
  24. <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
  25. </div>
  26. {% endfor %}
  27. {% endif %}
  28. {% endwith %}
  29. {% endblock %}