create route function +create.html
parent
4da31e0699
commit
2b632ff905
Binary file not shown.
@ -1,16 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<title>library</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<!-- <form method="POST" enctype="multipart/form-data">
|
|
||||||
<input type="text" name="author" placeholder="Author"/>
|
|
||||||
<input type="text" name="title" placeholder="Title"/>
|
|
||||||
<textarea name="description" cols="30" rows="10" placeholder="description"></textarea>
|
|
||||||
<input type="submit" value="Add" />
|
|
||||||
</form> -->
|
|
||||||
<div id="panel-container"></div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -0,0 +1,23 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<title>library</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<select class="form-control" name="cat">
|
||||||
|
{% for cat in categories %}
|
||||||
|
{% if cat['title'] == request.form['cat'] %}
|
||||||
|
<option value="{{ request.form['cat'] }}" selected>
|
||||||
|
{{ request.form['cat'] }}
|
||||||
|
</option>
|
||||||
|
{% else %}
|
||||||
|
<option value="{{ cat['title'] }}">
|
||||||
|
{{ cat['title'] }}
|
||||||
|
</option>
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
</select>
|
||||||
|
<div id="panel-container"></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Reference in New Issue