This commit is contained in:
Ross
2022-01-06 11:22:33 +00:00
parent 0b2b3f8e1f
commit 96c890cf84
+6 -3
View File
@@ -26,7 +26,9 @@ class CidUserTable(tables.Table):
cid = tables.LinkColumn(
"cid_scores", args=[A("cid"), A("passcode")], orderable=True
)
edit = tables.LinkColumn("generic:update_cid", text="Edit", args=[A("pk")], orderable=True)
edit = tables.LinkColumn(
"generic:update_cid", text="Edit", args=[A("pk")], orderable=True
)
# image = ImageColumn("image", orderable=False)
# clone = tables.LinkColumn('anatomy:anatomy_question_clone',
# text='Clone',
@@ -51,13 +53,14 @@ class CidUserTable(tables.Table):
"active",
"group",
"internal_candidate",
"email",
# "email",
)
sequence = ("cid","passcode", "active", "internal_candidate", "emails")
sequence = ("cid", "passcode", "active", "internal_candidate", "emails")
def render_emails(self, value, record):
print(self)
return format_html("""{}\n[{}]""", record.email, record.supervisor_email)
# def render_cid(self, value, record):
# return format_html("""<a href="#" onclick="return window.create_popup_window('/longs/series/{}', 'Series')" >Popup</a>""", record.pk)