Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

41 Zeilen
1.9KB

  1. {% extends "base.html" %}
  2. {% block content %}
  3. <h1>{% block title %} Add a New Tool, Example, or Practice {% endblock %}</h1>
  4. <form method="POST" action="/create" id="resource">
  5. <div class="mb-3 mt-3">
  6. <label for="type">Type</label>
  7. <select class="form-select" id="resource_type" name="resource_type" form="resource">
  8. <option selected="selected">Please choose</option>
  9. <option value="tool">Tool</option>
  10. <option value="example">Example</option>
  11. <option value="practice">Practice</option>
  12. </select>
  13. </div>
  14. <div id="resource_type_tool" class="resource_type_input" style="display: none;">
  15. <div class="mb-3 mt-3">
  16. <label for="name">Tool name</label>
  17. <input class="form-control" type="text" name="name" placeholder="Tool name" autofocus="">
  18. </div>
  19. <div class="mb-3 mt-3">
  20. <label for="description">Tool description</label>
  21. <textarea class="form-control" rows="4" type="text" name="description" placeholder="Tool description" autofocus=""></textarea>
  22. </div>
  23. </div>
  24. <div id="resource_type_example" class="resource_type_input" style="display: none;">
  25. <div class="mb-3 mt-3">
  26. <label for="name">Example name</label>
  27. <input class="form-control" type="text" name="name" placeholder="Example name" autofocus="">
  28. </div>
  29. <div class="mb-3 mt-3">
  30. <label for="description">Example description</label>
  31. <textarea class="form-control" rows="4" type="text" name="description" placeholder="Example description" autofocus=""></textarea>
  32. </div>
  33. </div>
  34. <button type="submit" class="btn btn-primary">Submit</button>
  35. </form>
  36. {% endblock %}