From a0de6650a466552695d31edba0cb45a31a57e668 Mon Sep 17 00:00:00 2001 From: ferdzo Date: Wed, 19 Apr 2023 19:44:48 +0200 Subject: [PATCH] Made changes to base.html and edit.html, plus a try to add a button --- serviceCRM/tables.py | 3 +- serviceCRM/templates/base.html | 34 +++++++++++------------ serviceCRM/templates/serviceCRM/edit.html | 2 +- 3 files changed, 19 insertions(+), 20 deletions(-) diff --git a/serviceCRM/tables.py b/serviceCRM/tables.py index af58b00..3ad7d56 100644 --- a/serviceCRM/tables.py +++ b/serviceCRM/tables.py @@ -8,6 +8,5 @@ class InsertTable(tables.Table): template_name = "serviceCRM/list.html" attrs = {'class':'table table-sm'} fields = ['id', 'name', 'phone', 'description', 'date', 'done', 'edit'] - edit = tables.TemplateColumn(template_name='serviceCRM/edit.html') - + edit = tables.TemplateColumn(template_name="serviceCRM/edit.html", verbose_name=("edit"), orderable=False) diff --git a/serviceCRM/templates/base.html b/serviceCRM/templates/base.html index db05a7b..005a7d3 100644 --- a/serviceCRM/templates/base.html +++ b/serviceCRM/templates/base.html @@ -15,24 +15,24 @@ -
- +
+ {% comment %}

Service CRM


{% endcomment %} diff --git a/serviceCRM/templates/serviceCRM/edit.html b/serviceCRM/templates/serviceCRM/edit.html index 3064ea1..0f5d396 100644 --- a/serviceCRM/templates/serviceCRM/edit.html +++ b/serviceCRM/templates/serviceCRM/edit.html @@ -1 +1 @@ -Open +Edit