.
This commit is contained in:
+25
-11
@@ -133,13 +133,10 @@ class SeriesTable(tables.Table):
|
||||
)
|
||||
|
||||
class ConditionTable(tables.Table):
|
||||
name = tables.Column(linkify=('atlas:condition_detail', {'pk': tables.A('pk')}))
|
||||
name = tables.Column(linkify=('atlas:condition_detail', {'pk': tables.A('pk')}), verbose_name="Condition")
|
||||
|
||||
#edit = tables.LinkColumn(
|
||||
# "atlas:condition_update", text="Edit", args=[A("pk")], orderable=False
|
||||
#)
|
||||
view = tables.LinkColumn(
|
||||
"atlas:condition_detail", text="View", args=[A("pk")], orderable=False
|
||||
edit = tables.LinkColumn(
|
||||
"atlas:condition_update", text="Edit", args=[A("pk")], orderable=False
|
||||
)
|
||||
delete = tables.LinkColumn(
|
||||
"atlas:condition_delete", text="Delete", args=[A("pk")], orderable=False
|
||||
@@ -157,12 +154,10 @@ class ConditionTable(tables.Table):
|
||||
|
||||
|
||||
class FindingTable(tables.Table):
|
||||
name = tables.Column(linkify=('atlas:finding_detail', {'pk': tables.A('pk')}), verbose_name="Finding")
|
||||
edit = tables.LinkColumn(
|
||||
"atlas:finding_update", text="Edit", args=[A("pk")], orderable=False
|
||||
)
|
||||
view = tables.LinkColumn(
|
||||
"atlas:finding_detail", text="View", args=[A("pk")], orderable=False
|
||||
)
|
||||
delete = tables.LinkColumn(
|
||||
"atlas:finding_delete", text="Delete", args=[A("pk")], orderable=False
|
||||
)
|
||||
@@ -174,5 +169,24 @@ class FindingTable(tables.Table):
|
||||
class Meta:
|
||||
model = Finding
|
||||
template_name = "django_tables2/bootstrap4.html"
|
||||
fields = ("name", "primary", "subspecialty")
|
||||
sequence = ()
|
||||
fields = ("name", "primary")
|
||||
sequence = ("name",)
|
||||
|
||||
class StructureTable(tables.Table):
|
||||
name = tables.Column(linkify=('atlas:structure_detail', {'pk': tables.A('pk')}), verbose_name="Structure")
|
||||
edit = tables.LinkColumn(
|
||||
"atlas:structure_update", text="Edit", args=[A("pk")], orderable=False
|
||||
)
|
||||
delete = tables.LinkColumn(
|
||||
"atlas:structure_delete", text="Delete", args=[A("pk")], orderable=False
|
||||
)
|
||||
selection = tables.CheckBoxColumn(accessor="pk", orderable=False)
|
||||
|
||||
synonym = tables.ManyToManyColumn(verbose_name="Synonyms")
|
||||
parent = tables.ManyToManyColumn(verbose_name="Parents")
|
||||
|
||||
class Meta:
|
||||
model = Structure
|
||||
template_name = "django_tables2/bootstrap4.html"
|
||||
fields = ("name", "primary")
|
||||
sequence = ("name",)
|
||||
Reference in New Issue
Block a user