diff --git a/flaskinventory/main/model.py b/flaskinventory/main/model.py index 4a63a61f..1f99681f 100644 --- a/flaskinventory/main/model.py +++ b/flaskinventory/main/model.py @@ -886,8 +886,10 @@ class Tool(Entry): autoload_choices=True, relationship_constraint="FileFormat") - author_validated = Boolean(description="Do the authors of the tool report any validation?", - label="Yes, validation is reported") + author_validated = SingleChoice(description="Do the authors of the tool report any validation?", + choices={'na': 'NA / Unknown', + 'yes': 'Yes', + 'no': 'No, not reported'}) validation_corpus = ListRelationship(description="Which corpus was used to validate the tool?", autoload_choices=True, diff --git a/flaskinventory/templates/view/elements/tool/about.html b/flaskinventory/templates/view/elements/tool/about.html index 8312a25e..965ad584 100644 --- a/flaskinventory/templates/view/elements/tool/about.html +++ b/flaskinventory/templates/view/elements/tool/about.html @@ -72,14 +72,12 @@ {{ render_tags(entry.output_file_format) }} {% endif %} + {% if entry.author_validated %}