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.
|
- {% extends 'base.html' %}
-
- {% block content %}
- <h1>{% block title %} Edit "{{ tool['name'] }}" {% endblock %}</h1>
-
- <form method="post">
- <div class="mb-3 mt-3">
- <label for="name">Name</label>
- <input type="text" name="name" placeholder="Tool name"
- class="form-control"
- value="{{ request.form['name'] or tool['name'] }}">
- </input>
- </div>
-
- <div class="mb-3 mt-3">
- <label for="description">Description</label>
- <textarea name="description" placeholder="Tool description"
- class="form-control">{{ request.form['description'] or tool['description'] }}</textarea>
- </div>
- <div class="mb-3 mt-3">
- <button type="submit" class="btn btn-primary">Submit</button>
- </div>
- </form>
- <hr>
-
- <form action="{{ url_for('tool.delete_tool', tool_id=tool['id']) }}" method="POST">
- <input type="submit" value="Delete Tool"
- class="btn btn-danger btn-sm"
- onclick="return confirm('Are you sure you want to delete this tool?')">
- </form>
- {% endblock %}
|