diff --git a/app.py b/app.py
index 201eb47..b1a34f6 100644
--- a/app.py
+++ b/app.py
@@ -29,8 +29,8 @@ def contacts():
if request.headers.get('HX-Trigger') == 'search':
return render_template("rows.html", contacts=contacts_set)
else:
- contacts_set = Contact.all()
- return render_template("index.html", contacts=contacts_set, archiver=Archiver.get())
+ contacts_set = Contact.all(page)
+ return render_template("index.html", contacts=contacts_set, page=page, archiver=Archiver.get())
@app.route("/contacts/archive", methods=["POST"])
@@ -130,7 +130,7 @@ def contacts_delete_all():
contact = Contact.find(contact_id)
contact.delete()
flash("Deleted Contacts!")
- contacts_set = Contact.all(1)
+ contacts_set = Contact.all()
return render_template("index.html", contacts=contacts_set)
diff --git a/templates/archive_ui.html b/templates/archive_ui.html
index 430d8c7..4461362 100644
--- a/templates/archive_ui.html
+++ b/templates/archive_ui.html
@@ -1,17 +1,22 @@
{% if archiver.status() == "Waiting" %}
-
+
{% elif archiver.status() == "Running" %}
-
\ No newline at end of file
diff --git a/templates/edit.html b/templates/edit.html
index fd7ac84..6e16d13 100644
--- a/templates/edit.html
+++ b/templates/edit.html
@@ -10,7 +10,7 @@
{{ contact.errors['email'] }}
@@ -37,10 +37,16 @@
diff --git a/templates/index.html b/templates/index.html
index e02c400..bccd15b 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -2,61 +2,74 @@
{% block content %}
- {% include 'archive_ui.html' %}
+{% include 'archive_ui.html' %}
-
+
-
-
- Add Contact
-
-
-
-
+
+
+
+
+ Add Contact
+
+
+
+
{% endblock %}
\ No newline at end of file
diff --git a/templates/layout.html b/templates/layout.html
index 7300176..b375102 100644
--- a/templates/layout.html
+++ b/templates/layout.html
@@ -8,6 +8,7 @@
+
@@ -22,5 +23,15 @@
{% endfor %}
{% block content %}{% endblock %}
+
+