.
This commit is contained in:
+4
-5
@@ -23,9 +23,7 @@ class CidUserTable(tables.Table):
|
|||||||
# edit = tables.LinkColumn(
|
# edit = tables.LinkColumn(
|
||||||
# "anatomy:anatomy_question_update", text="Edit", args=[A("pk")], orderable=False
|
# "anatomy:anatomy_question_update", text="Edit", args=[A("pk")], orderable=False
|
||||||
# )
|
# )
|
||||||
cid = tables.LinkColumn(
|
cid = tables.LinkColumn("CID", args=[A("cid"), A("passcode")], orderable=False)
|
||||||
"CID", args=[A("cid"), A("passcode")], orderable=False
|
|
||||||
)
|
|
||||||
# image = ImageColumn("image", orderable=False)
|
# image = ImageColumn("image", orderable=False)
|
||||||
# clone = tables.LinkColumn('anatomy:anatomy_question_clone',
|
# clone = tables.LinkColumn('anatomy:anatomy_question_clone',
|
||||||
# text='Clone',
|
# text='Clone',
|
||||||
@@ -43,14 +41,15 @@ class CidUserTable(tables.Table):
|
|||||||
model = CidUser
|
model = CidUser
|
||||||
template_name = "django_tables2/bootstrap4.html"
|
template_name = "django_tables2/bootstrap4.html"
|
||||||
fields = (
|
fields = (
|
||||||
#"cid",
|
# "cid",
|
||||||
"passcode",
|
"passcode",
|
||||||
"active",
|
"active",
|
||||||
"group",
|
"group",
|
||||||
"internal_candidate",
|
"internal_candidate",
|
||||||
"email",
|
"email",
|
||||||
)
|
)
|
||||||
sequence = ("view",)
|
sequence = ("cid",)
|
||||||
|
|
||||||
|
|
||||||
# def render_cid(self, value, record):
|
# def render_cid(self, value, record):
|
||||||
# return format_html("""<a href="#" onclick="return window.create_popup_window('/longs/series/{}', 'Series')" >Popup</a>""", record.pk)
|
# return format_html("""<a href="#" onclick="return window.create_popup_window('/longs/series/{}', 'Series')" >Popup</a>""", record.pk)
|
||||||
|
|||||||
Reference in New Issue
Block a user