You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.7 KiB
HTML
51 lines
1.7 KiB
HTML
{% extends 'base.html' %}
|
|
|
|
{% block content %}
|
|
<h1>{% block title %} Welcome to FlaskTodo {% endblock %}</h1>
|
|
{% for category, cards in categories.cards() %}
|
|
<div class="card" style="width: 18rem; margin-bottom: 50px;">
|
|
<div class="card-header">
|
|
<h3>{{ category }}</h3>
|
|
</div>
|
|
<ul class="list-group list-group-flush">
|
|
{% for card in cards %}
|
|
<li class="list-group-item">{{ cards['content'] }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
{% endfor %}
|
|
{% endblock %}
|
|
<!-- <!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<title>library</title>
|
|
<link rel="stylesheet" href="{{url_for('static', filename='style_default.css')}}">
|
|
<script src="{{url_for('static', filename='addnew_panel.js')}}"></script>
|
|
</head>
|
|
<body>
|
|
hello here a list of:
|
|
<button id="new" onclick="openPanel()">add new element</button>
|
|
<table>
|
|
{% for row in reading_list%}
|
|
<tr>
|
|
<td>{{row['author']| safe}}</td>
|
|
<td>{{row['title']|safe}}</td>
|
|
<td>{{row['description']|safe}}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
|
|
<div class="formPanel" id="formPanel">
|
|
<button onclick="closePanel()">X</button>
|
|
<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>
|
|
|
|
</body>
|
|
</html> -->
|