Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

29 lines
1.1KB

  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="cars">Type</label>
  7. <select class="form-select" id="type" name="type" form="resource">
  8. <option value="tool">Tool</option>
  9. <option value="example">Example</option>
  10. <option value="practice">Practice</option>
  11. </select>
  12. </div>
  13. <div class="mb-3 mt-3">
  14. <label for="name">Name</label>
  15. <input class="form-control" type="text" name="name" placeholder="Name" autofocus="">
  16. </div>
  17. <div class="mb-3 mt-3">
  18. <label for="description">Description</label>
  19. <textarea class="form-control" rows="4" type="text" name="description" placeholder="Description" autofocus=""></textarea>
  20. </div>
  21. <button type="submit" class="btn btn-primary">Submit</button>
  22. </form>
  23. </div>
  24. </div>
  25. {% endblock %}