flask app for plurals to publicly share member lists

groups.html 917B

123456789101112131415161718192021222324252627282930
  1. {% extends 'base.html' %}
  2. {% block header %}
  3. <div class="title">{% block title %}Manage groups{% endblock %}</div>
  4. {% endblock %}
  5. {% block content %}
  6. <div class="heading">Create new group</div>
  7. <form method="post">
  8. <label for="name">Name</label>
  9. <input name="name" id="name" required><br>
  10. <label for="desc">Description</label>
  11. <textarea name="desc" id="desc"></textarea><br>
  12. <input type="submit" value="Submit">
  13. </form>
  14. <div class="heading big">Edit Groups</div>
  15. {% for group in groups %}
  16. <form method="post" action="{{url_for('manage.group_edit', gid=group[0])}}">
  17. <label for="name">Name</label>
  18. <input name="name" id="name" value="{{group[1]}}" required><br>
  19. <label for="desc">Description</label>
  20. <textarea name="desc" id="desc">{{group[2]}}</textarea><br>
  21. <input type="submit" value="Submit">
  22. </form>
  23. <hr>
  24. {% endfor %}
  25. {% endblock %}