|
|
|
@ -2,38 +2,39 @@
|
|
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
<h1>{% block title %} Welcome to grgr's library {% endblock %}</h1>
|
|
|
|
|
|
|
|
|
|
<div class="all-cards">
|
|
|
|
|
{% for category, cards in categories.items() %}
|
|
|
|
|
<div class="card" style="width: 18rem; margin-bottom: 50px;">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% for card in cards %}
|
|
|
|
|
<div class="card">
|
|
|
|
|
<div class="card-header">
|
|
|
|
|
<h3>{{ category }}</h3>
|
|
|
|
|
<h6>{{ category }}</h6>
|
|
|
|
|
</div>
|
|
|
|
|
<ul class="list-group list-group-flush">
|
|
|
|
|
|
|
|
|
|
{% for card in cards %}
|
|
|
|
|
<li class="list-group-card">{{ card['content'] }}</li>
|
|
|
|
|
<div class="list-group-card">{{ card['content'] }}</div>
|
|
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
|
|
|
|
<div class="col-12 col-md-3">
|
|
|
|
|
<a class="btn btn-warning btn-sm"
|
|
|
|
|
href="{{ url_for('edit', id=card['id']) }}">Edit</a>
|
|
|
|
|
<a class="btn btn-warning btn-sm" href="{{ url_for('edit', id=card['id']) }}">Edit</a>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="col-12 col-md-3">
|
|
|
|
|
<form action="{{ url_for('delete', id=card['id']) }}"
|
|
|
|
|
method="POST">
|
|
|
|
|
<input type="submit" value="Delete"
|
|
|
|
|
class="btn btn-danger btn-sm">
|
|
|
|
|
<form action="{{ url_for('delete', id=card['id']) }}" method="POST">
|
|
|
|
|
<input type="submit" value="Delete" class="btn btn-danger btn-sm">
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|
<!-- {#<!DOCTYPE html>
|
|
|
|
|
<html lang="en">
|
|
|
|
|