Add docstring
This commit is contained in:
parent
e5ab391236
commit
bc3fdbe7a7
1 changed files with 3 additions and 0 deletions
|
|
@ -66,6 +66,9 @@ class HistoryTable(tables.Table):
|
||||||
return html.unescape(value)
|
return html.unescape(value)
|
||||||
|
|
||||||
def render_valid(self, value, record):
|
def render_valid(self, value, record):
|
||||||
|
"""
|
||||||
|
When the validation status is hovered, an input field is displayed to let the user specify an invalidity reason
|
||||||
|
"""
|
||||||
val = "✔" if value else "✖"
|
val = "✔" if value else "✖"
|
||||||
val += "<input type='text' class='form-control' id='invalidity_reason_" + str(record.id) \
|
val += "<input type='text' class='form-control' id='invalidity_reason_" + str(record.id) \
|
||||||
+ "' value='" + (html.escape(record.invalidity_reason)
|
+ "' value='" + (html.escape(record.invalidity_reason)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue