This commit is contained in:
Ross
2021-12-05 15:13:13 +00:00
parent cba0e75b8b
commit b4860c8ae1
7 changed files with 84 additions and 3 deletions
+20
View File
@@ -131,3 +131,23 @@ class SeriesTable(tables.Table):
"""<a href="#" onclick="return window.create_popup_window('/atlas/series/{}', 'Series')" >Popup</a>""",
record.pk,
)
class CoditionTable(tables.Table):
edit = tables.LinkColumn(
"atlas:series_update", text="Edit", args=[A("pk")], orderable=False
)
view = tables.LinkColumn(
"atlas:series_detail", text="View", args=[A("pk")], orderable=False
)
delete = tables.LinkColumn(
"atlas:series_delete", text="Delete", args=[A("pk")], orderable=False
)
selection = tables.CheckBoxColumn(accessor="pk", orderable=False)
synonym = tables.ManyToManyColumn(verbose_name="Synonyms")
class Meta:
model = Series
template_name = "django_tables2/bootstrap4.html"
fields = ("name", "primary", "subspecialty")
sequence = ()