diff --git a/app/network/forms.py b/app/network/forms.py index a3c4b17f76b3e7539e67cd08a425def1c9ad395e..0f91db30a36def96c3baf97231e07f575a2dd11d 100644 --- a/app/network/forms.py +++ b/app/network/forms.py @@ -165,7 +165,11 @@ class HostForm(CSEntryForm): ) description = TextAreaField("Description") device_type_id = SelectField("Device Type") - is_ioc = BooleanField("IOC", default=False) + is_ioc = BooleanField( + "IOC", + default=False, + description="This host will be used to run IOCs", + ) ansible_vars = YAMLField( "Ansible vars", description="Enter variables in YAML format. See https://docs.ansible.com/ansible/latest/reference_appendices/YAMLSyntax.html", diff --git a/app/templates/_helpers.html b/app/templates/_helpers.html index 90df01d4d801a612546d6a958d049ed628a0b85b..e796d991ecdfbd60b57ea60906fe4a4ba5a8a777 100644 --- a/app/templates/_helpers.html +++ b/app/templates/_helpers.html @@ -136,7 +136,12 @@ {{ field(class_="form-check-input", **kwargs) }} {{ field.label(class_="form-check-label") }} </div> - </div> + {% if field.description %} + <small class="form-text text-muted"> + {{ field.description|safe }} + </small> + {% endif %} +</div> {% else %} {{ field.label(class_="col-sm-" + label_size + " col-form-label") }} <div class="col-sm-{{ input_size }}"> @@ -277,4 +282,4 @@ </div> <div class="card-body item-comment">{{ comment.body }}</div> </div> -{%- endmacro %} \ No newline at end of file +{%- endmacro %}