.
This commit is contained in:
+6
-3
@@ -26,7 +26,9 @@ class CidUserTable(tables.Table):
|
|||||||
cid = tables.LinkColumn(
|
cid = tables.LinkColumn(
|
||||||
"cid_scores", args=[A("cid"), A("passcode")], orderable=True
|
"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)
|
# image = ImageColumn("image", orderable=False)
|
||||||
# clone = tables.LinkColumn('anatomy:anatomy_question_clone',
|
# clone = tables.LinkColumn('anatomy:anatomy_question_clone',
|
||||||
# text='Clone',
|
# text='Clone',
|
||||||
@@ -51,13 +53,14 @@ class CidUserTable(tables.Table):
|
|||||||
"active",
|
"active",
|
||||||
"group",
|
"group",
|
||||||
"internal_candidate",
|
"internal_candidate",
|
||||||
"email",
|
# "email",
|
||||||
)
|
)
|
||||||
sequence = ("cid","passcode", "active", "internal_candidate", "emails")
|
sequence = ("cid", "passcode", "active", "internal_candidate", "emails")
|
||||||
|
|
||||||
def render_emails(self, value, record):
|
def render_emails(self, value, record):
|
||||||
print(self)
|
print(self)
|
||||||
return format_html("""{}\n[{}]""", record.email, record.supervisor_email)
|
return format_html("""{}\n[{}]""", record.email, record.supervisor_email)
|
||||||
|
|
||||||
|
|
||||||
# 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