Nevar pievienot vairāk kā 25 tēmas
Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
|
- {% 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 %}
|