Too many changes :(
This commit is contained in:
@@ -183,6 +183,8 @@ class CaseTable(tables.Table):
|
||||
)
|
||||
sequence = ("view", )
|
||||
order_by = "-created_date"
|
||||
attrs = {"class": "table row-selector"}
|
||||
|
||||
|
||||
|
||||
class PopupLinkColumn(tables.Column):
|
||||
@@ -231,6 +233,8 @@ class SeriesTable(tables.Table):
|
||||
)
|
||||
sequence = ("view", "popup", "images", "case")
|
||||
order_by = "-created_date"
|
||||
attrs = {"class": "table row-selector"}
|
||||
|
||||
|
||||
def __init__(self, data=None, *args, **kwargs):
|
||||
super().__init__(
|
||||
@@ -271,6 +275,8 @@ class ConditionTable(tables.Table):
|
||||
template_name = "django_tables2/bootstrap4.html"
|
||||
fields = ("primary", "subspecialty", "rcr_curriculum_map", "rcr_curriculum")
|
||||
sequence = ("name",)
|
||||
attrs = {"class": "table row-selector"}
|
||||
|
||||
|
||||
def __init__(self, data=None, *args, **kwargs):
|
||||
super().__init__(
|
||||
@@ -307,6 +313,8 @@ class FindingTable(tables.Table):
|
||||
template_name = "django_tables2/bootstrap4.html"
|
||||
fields = ("name", "primary")
|
||||
sequence = ("name",)
|
||||
attrs = {"class": "table row-selector"}
|
||||
|
||||
|
||||
def render_synonym(self, value, record):
|
||||
return format_html(record.get_synonym_link())
|
||||
@@ -334,6 +342,8 @@ class StructureTable(tables.Table):
|
||||
template_name = "django_tables2/bootstrap4.html"
|
||||
fields = ("name", "primary")
|
||||
sequence = ("name",)
|
||||
attrs = {"class": "table row-selector"}
|
||||
|
||||
|
||||
def render_synonym(self, value, record):
|
||||
return format_html(record.get_synonym_link())
|
||||
@@ -360,6 +370,8 @@ class PresentationTable(tables.Table):
|
||||
template_name = "django_tables2/bootstrap4.html"
|
||||
fields = ("name",)
|
||||
sequence = ("name",)
|
||||
attrs = {"class": "table row-selector"}
|
||||
|
||||
|
||||
|
||||
class PathologicalProcessTable(tables.Table):
|
||||
@@ -381,6 +393,8 @@ class PathologicalProcessTable(tables.Table):
|
||||
template_name = "django_tables2/bootstrap4.html"
|
||||
fields = ("name",)
|
||||
sequence = ("name",)
|
||||
attrs = {"class": "table row-selector"}
|
||||
|
||||
|
||||
|
||||
class SubspecialtyTable(tables.Table):
|
||||
@@ -402,6 +416,8 @@ class SubspecialtyTable(tables.Table):
|
||||
template_name = "django_tables2/bootstrap4.html"
|
||||
fields = ()
|
||||
sequence = ("name",)
|
||||
attrs = {"class": "table row-selector"}
|
||||
|
||||
|
||||
def render_synonym(self, value, record):
|
||||
return format_html(record.get_synonym_link())
|
||||
@@ -436,6 +452,8 @@ class CaseCollectionTable(tables.Table):
|
||||
"author",
|
||||
)
|
||||
sequence = ("view", )#, "series")
|
||||
attrs = {"class": "table row-selector"}
|
||||
|
||||
|
||||
def __init__(self, data=None, *args, **kwargs):
|
||||
super().__init__(
|
||||
@@ -463,6 +481,8 @@ class QuestionSchemaTable(tables.Table):
|
||||
model = QuestionSchema
|
||||
template_name = "django_tables2/bootstrap4.html"
|
||||
fields = ("name", "description", "schema")
|
||||
attrs = {"class": "table row-selector"}
|
||||
|
||||
|
||||
def render_schema(self, value, record):
|
||||
return format_html("<details><summary>Schema</summary>{}</details>", value)
|
||||
Reference in New Issue
Block a user