|
|
@ -14,6 +14,7 @@
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="cat">category/type</label>
|
|
|
|
<label for="cat">category/type</label>
|
|
|
|
<select class="form-control" name="cat">
|
|
|
|
<select class="form-control" name="cat">
|
|
|
|
|
|
|
|
<option value="New category" selected>New category</option>
|
|
|
|
{% for cat in categories %}
|
|
|
|
{% for cat in categories %}
|
|
|
|
{% if cat['title'] == request.form['cat'] %}
|
|
|
|
{% if cat['title'] == request.form['cat'] %}
|
|
|
|
<option value="{{ request.form['cat'] }}" selected>
|
|
|
|
<option value="{{ request.form['cat'] }}" selected>
|
|
|
@ -27,6 +28,12 @@
|
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
|
|
<label for="new_category">New Category</label>
|
|
|
|
|
|
|
|
<input type="text" name="new_category"
|
|
|
|
|
|
|
|
placeholder="New category name" class="form-control"
|
|
|
|
|
|
|
|
value="{{ request.form['new_category'] }}"></input>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="form-group">
|
|
|
|
<button type="submit" class="btn btn-primary">Submit</button>
|
|
|
|
<button type="submit" class="btn btn-primary">Submit</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|