1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-11-26 18:37:12 +00:00

Add docstring

This commit is contained in:
Yohann D'ANELLO 2020-03-25 14:54:26 +01:00
parent e5ab391236
commit bc3fdbe7a7

View File

@ -66,6 +66,9 @@ class HistoryTable(tables.Table):
return html.unescape(value)
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 += "<input type='text' class='form-control' id='invalidity_reason_" + str(record.id) \
+ "' value='" + (html.escape(record.invalidity_reason)