mirror of
https://github.com/ferdzo/serviceCRM.git
synced 2026-04-05 13:16:24 +00:00
tset
This commit is contained in:
BIN
serviceCRM/__pycache__/__init__.cpython-310.pyc
Normal file
BIN
serviceCRM/__pycache__/__init__.cpython-310.pyc
Normal file
Binary file not shown.
BIN
serviceCRM/__pycache__/admin.cpython-310.pyc
Normal file
BIN
serviceCRM/__pycache__/admin.cpython-310.pyc
Normal file
Binary file not shown.
BIN
serviceCRM/__pycache__/apps.cpython-310.pyc
Normal file
BIN
serviceCRM/__pycache__/apps.cpython-310.pyc
Normal file
Binary file not shown.
BIN
serviceCRM/__pycache__/forms.cpython-310.pyc
Normal file
BIN
serviceCRM/__pycache__/forms.cpython-310.pyc
Normal file
Binary file not shown.
BIN
serviceCRM/__pycache__/models.cpython-310.pyc
Normal file
BIN
serviceCRM/__pycache__/models.cpython-310.pyc
Normal file
Binary file not shown.
BIN
serviceCRM/__pycache__/settings.cpython-310.pyc
Normal file
BIN
serviceCRM/__pycache__/settings.cpython-310.pyc
Normal file
Binary file not shown.
BIN
serviceCRM/__pycache__/tables.cpython-310.pyc
Normal file
BIN
serviceCRM/__pycache__/tables.cpython-310.pyc
Normal file
Binary file not shown.
BIN
serviceCRM/__pycache__/urls.cpython-310.pyc
Normal file
BIN
serviceCRM/__pycache__/urls.cpython-310.pyc
Normal file
Binary file not shown.
BIN
serviceCRM/__pycache__/views.cpython-310.pyc
Normal file
BIN
serviceCRM/__pycache__/views.cpython-310.pyc
Normal file
Binary file not shown.
BIN
serviceCRM/__pycache__/wsgi.cpython-310.pyc
Normal file
BIN
serviceCRM/__pycache__/wsgi.cpython-310.pyc
Normal file
Binary file not shown.
BIN
serviceCRM/migrations/__pycache__/0001_initial.cpython-310.pyc
Normal file
BIN
serviceCRM/migrations/__pycache__/0001_initial.cpython-310.pyc
Normal file
Binary file not shown.
BIN
serviceCRM/migrations/__pycache__/__init__.cpython-310.pyc
Normal file
BIN
serviceCRM/migrations/__pycache__/__init__.cpython-310.pyc
Normal file
Binary file not shown.
@@ -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'}
|
||||
})
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css"/>
|
||||
<title>Service </title>
|
||||
|
||||
8
serviceCRM/templates/list.html
Normal file
8
serviceCRM/templates/list.html
Normal file
@@ -0,0 +1,8 @@
|
||||
{% extends 'base.html' %}
|
||||
{% block content %}
|
||||
{% load render_table from django_tables2 %}
|
||||
|
||||
|
||||
{% render_table table %}
|
||||
|
||||
{% endblock%}
|
||||
@@ -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%}
|
||||
Reference in New Issue
Block a user