Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

97 lines
4.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">Short description</label>
  21. <textarea class="form-control" rows="4" type="text" name="description" placeholder="Tool description" autofocus=""></textarea>
  22. </div>
  23. <div class="mb-3 mt-3">
  24. <label for="project_url">Project URL</label>
  25. <input class="form-control" type="text" name="project_url" placeholder="Project URL" autofocus="">
  26. </div>
  27. <div class="mb-3 mt-3">
  28. <label for="repository_url">Repository URL</label>
  29. <input class="form-control" type="text" name="repository_url" placeholder="Repository URL" autofocus="">
  30. </div>
  31. <div class="mb-3 mt-3">
  32. <label for="platform_status">Stand-alone or platform?</label>
  33. <input class="form-control" type="text" name="platform_status" placeholder="Stand-alone or platform?" autofocus="">
  34. </div>
  35. <div class="mb-3 mt-3">
  36. <label for="expertise">Expertise required</label>
  37. <input class="form-control" type="text" name="expertise" placeholder="Expertise required" autofocus="">
  38. </div>
  39. <div class="mb-3 mt-3">
  40. <label for="self_host_expertise">Expertise required to self-host</label>
  41. <input class="form-control" type="text" name="self_host_expertise" placeholder="Expertise required to self-host" autofocus="">
  42. </div>
  43. <div class="mb-3 mt-3">
  44. <label for="ingest">Import / ingest</label>
  45. <input class="form-control" type="text" name="ingest" placeholder="Import / ingest" autofocus="">
  46. </div>
  47. <div class="mb-3 mt-3">
  48. <label for="output">Output formats</label>
  49. <input class="form-control" type="text" name="output" placeholder="Output formats" autofocus="">
  50. </div>
  51. <div class="mb-3 mt-3">
  52. <label for="saas">SAAS?</label>
  53. <input class="form-control" type="text" name="saas" placeholder="SAAS?" autofocus="">
  54. </div>
  55. <div class="mb-3 mt-3">
  56. <label for="dependencies">Technical dependencies</label>
  57. <input class="form-control" type="text" name="dependencies" placeholder="Technical dependencies" autofocus="">
  58. </div>
  59. </div>
  60. <div id="resource_type_example" class="resource_type_input" style="display: none;">
  61. <div class="mb-3 mt-3">
  62. <label for="name">Example name</label>
  63. <input class="form-control" type="text" name="name" placeholder="Example name" autofocus="">
  64. </div>
  65. <div class="mb-3 mt-3">
  66. <label for="description">Example description</label>
  67. <textarea class="form-control" rows="4" type="text" name="description" placeholder="Example description" autofocus=""></textarea>
  68. </div>
  69. </div>
  70. <div id="resource_type_practice" class="resource_type_input" style="display: none;">
  71. <div class="mb-3 mt-3">
  72. <label for="name">Practice name</label>
  73. <input class="form-control" type="text" name="name" placeholder="Practice name" autofocus="">
  74. </div>
  75. <div class="mb-3 mt-3">
  76. <label for="description">Practice description</label>
  77. <textarea class="form-control" rows="4" type="text" name="description" placeholder="Practice description" autofocus=""></textarea>
  78. </div>
  79. </div>
  80. <button type="submit" class="btn btn-primary mb-3">Submit</button>
  81. </form>
  82. {% endblock %}