diff --git a/.gitignore b/.gitignore
index ba3512e..35eface 100644
--- a/.gitignore
+++ b/.gitignore
@@ -205,4 +205,5 @@ pyvenv.cfg
.venv
pip-selfcheck.json
.idea
-# End of https://www.toptal.com/developers/gitignore/api/venv,dotenv,intellij,pycharm
\ No newline at end of file
+# End of https://www.toptal.com/developers/gitignore/api/venv,dotenv,intellij,pycharm
+/_pycache_/
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
index 40a3832..f9b1f7e 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -1,4 +1,4 @@
-
+
\ No newline at end of file
diff --git a/.idea/serviceCRM.iml b/.idea/serviceCRM.iml
index f084a1b..9b25e49 100644
--- a/.idea/serviceCRM.iml
+++ b/.idea/serviceCRM.iml
@@ -16,7 +16,7 @@
-
+
diff --git a/serviceCRM/__pycache__/__init__.cpython-310.pyc b/serviceCRM/__pycache__/__init__.cpython-310.pyc
new file mode 100644
index 0000000..3a8f0d4
Binary files /dev/null and b/serviceCRM/__pycache__/__init__.cpython-310.pyc differ
diff --git a/serviceCRM/__pycache__/admin.cpython-310.pyc b/serviceCRM/__pycache__/admin.cpython-310.pyc
new file mode 100644
index 0000000..0fca52f
Binary files /dev/null and b/serviceCRM/__pycache__/admin.cpython-310.pyc differ
diff --git a/serviceCRM/__pycache__/apps.cpython-310.pyc b/serviceCRM/__pycache__/apps.cpython-310.pyc
new file mode 100644
index 0000000..666b0e2
Binary files /dev/null and b/serviceCRM/__pycache__/apps.cpython-310.pyc differ
diff --git a/serviceCRM/__pycache__/forms.cpython-310.pyc b/serviceCRM/__pycache__/forms.cpython-310.pyc
new file mode 100644
index 0000000..ef2e513
Binary files /dev/null and b/serviceCRM/__pycache__/forms.cpython-310.pyc differ
diff --git a/serviceCRM/__pycache__/models.cpython-310.pyc b/serviceCRM/__pycache__/models.cpython-310.pyc
new file mode 100644
index 0000000..96493db
Binary files /dev/null and b/serviceCRM/__pycache__/models.cpython-310.pyc differ
diff --git a/serviceCRM/__pycache__/settings.cpython-310.pyc b/serviceCRM/__pycache__/settings.cpython-310.pyc
new file mode 100644
index 0000000..e3e4b24
Binary files /dev/null and b/serviceCRM/__pycache__/settings.cpython-310.pyc differ
diff --git a/serviceCRM/__pycache__/tables.cpython-310.pyc b/serviceCRM/__pycache__/tables.cpython-310.pyc
new file mode 100644
index 0000000..54b4eb7
Binary files /dev/null and b/serviceCRM/__pycache__/tables.cpython-310.pyc differ
diff --git a/serviceCRM/__pycache__/urls.cpython-310.pyc b/serviceCRM/__pycache__/urls.cpython-310.pyc
new file mode 100644
index 0000000..6d3a26e
Binary files /dev/null and b/serviceCRM/__pycache__/urls.cpython-310.pyc differ
diff --git a/serviceCRM/__pycache__/views.cpython-310.pyc b/serviceCRM/__pycache__/views.cpython-310.pyc
new file mode 100644
index 0000000..2660aec
Binary files /dev/null and b/serviceCRM/__pycache__/views.cpython-310.pyc differ
diff --git a/serviceCRM/__pycache__/wsgi.cpython-310.pyc b/serviceCRM/__pycache__/wsgi.cpython-310.pyc
new file mode 100644
index 0000000..7e73bf1
Binary files /dev/null and b/serviceCRM/__pycache__/wsgi.cpython-310.pyc differ
diff --git a/serviceCRM/migrations/__pycache__/0001_initial.cpython-310.pyc b/serviceCRM/migrations/__pycache__/0001_initial.cpython-310.pyc
new file mode 100644
index 0000000..13a4cda
Binary files /dev/null and b/serviceCRM/migrations/__pycache__/0001_initial.cpython-310.pyc differ
diff --git a/serviceCRM/migrations/__pycache__/__init__.cpython-310.pyc b/serviceCRM/migrations/__pycache__/__init__.cpython-310.pyc
new file mode 100644
index 0000000..2534713
Binary files /dev/null and b/serviceCRM/migrations/__pycache__/__init__.cpython-310.pyc differ
diff --git a/serviceCRM/tables.py b/serviceCRM/tables.py
index 7a582bb..02aaa37 100644
--- a/serviceCRM/tables.py
+++ b/serviceCRM/tables.py
@@ -1,10 +1,13 @@
import django_tables2 as tables
from .models import Insert
+from django_tables2.utils import A
class InsertTable(tables.Table):
class Meta:
model = Insert
- template_name = "serviceCRM/list.html"
- edit = tables.TemplateColumn(template_name="serviceCRM/edit.html", verbose_name="edit", orderable=False)
-
+ template_name = "list.html"
+ sequence = ("name", "phone", "description","date","done" )
+ delete = tables.LinkColumn('main:delete_item', args=[A('pk')], attrs={
+ 'a': {'class': 'btn'}
+ })
diff --git a/serviceCRM/templates/base.html b/serviceCRM/templates/base.html
index 005a7d3..198f124 100644
--- a/serviceCRM/templates/base.html
+++ b/serviceCRM/templates/base.html
@@ -2,7 +2,6 @@
-
Service
diff --git a/serviceCRM/templates/list.html b/serviceCRM/templates/list.html
new file mode 100644
index 0000000..52a7f9f
--- /dev/null
+++ b/serviceCRM/templates/list.html
@@ -0,0 +1,8 @@
+{% extends 'base.html' %}
+{% block content %}
+ {% load render_table from django_tables2 %}
+
+
+ {% render_table table %}
+
+{% endblock%}
\ No newline at end of file
diff --git a/serviceCRM/templates/serviceCRM/list.html b/serviceCRM/templates/serviceCRM/list.html
index 8d930ee..52a7f9f 100644
--- a/serviceCRM/templates/serviceCRM/list.html
+++ b/serviceCRM/templates/serviceCRM/list.html
@@ -1,7 +1,8 @@
{% extends 'base.html' %}
-{% load render_table from django_tables2 %}
{% block content %}
+ {% load render_table from django_tables2 %}
- {% render_table object_list %}
+
+ {% render_table table %}
{% endblock%}
\ No newline at end of file