Skip to content
Snippets Groups Projects
Commit bc3fdbe7 authored by ynerant's avatar ynerant
Browse files

Add docstring

parent e5ab3912
No related branches found
No related tags found
1 merge request!67Motif de dévalidation
Pipeline #8030 passed with stages
in 4 minutes and 32 seconds
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment