You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

пре 3 година
12345678910111213141516171819202122232425262728293031
  1. {% extends 'base.html' %}
  2. {% block content %}
  3. <h1>{% block title %} Edit "{{ tool['name'] }}" {% endblock %}</h1>
  4. <form method="post">
  5. <div class="form-group">
  6. <label for="name">Name</label>
  7. <input type="text" name="name" placeholder="Tool name"
  8. class="form-control"
  9. value="{{ request.form['name'] or tool['name'] }}">
  10. </input>
  11. </div>
  12. <div class="form-group">
  13. <label for="description">Description</label>
  14. <textarea name="description" placeholder="Tool description"
  15. class="form-control">{{ request.form['description'] or tool['description'] }}</textarea>
  16. </div>
  17. <div class="form-group">
  18. <button type="submit" class="btn btn-primary">Submit</button>
  19. </div>
  20. </form>
  21. <hr>
  22. <form action="{{ url_for('tool.delete_tool', tool_id=tool['id']) }}" method="POST">
  23. <input type="submit" value="Delete Tool"
  24. class="btn btn-danger btn-sm"
  25. onclick="return confirm('Are you sure you want to delete this tool?')">
  26. </form>
  27. {% endblock %}