Nelze vybrat více než 25 témat
Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
|
- {% extends 'base.html' %}
-
- {% block content %}
- <h1>{% block title %} Edit "{{ tool['name'] }}" {% endblock %}</h1>
-
- <form method="post">
- <div class="form-group">
- <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="form-group">
- <label for="description">Description</label>
- <textarea name="description" placeholder="Tool description"
- class="form-control">{{ request.form['description'] or tool['description'] }}</textarea>
- </div>
- <div class="form-group">
- <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 %}
|