diff --git a/airlock/forms.py b/airlock/forms.py index 93f00fc1..6827cc62 100644 --- a/airlock/forms.py +++ b/airlock/forms.py @@ -1,5 +1,6 @@ from django import forms from django.forms.formsets import BaseFormSet, formset_factory +from django.utils.safestring import mark_safe from airlock.enums import RequestFileType, Visibility from airlock.models import FileGroup @@ -124,8 +125,36 @@ def clean(self): class GroupEditForm(forms.Form): - context = forms.CharField(required=False) - controls = forms.CharField(required=False) + context = forms.CharField( + required=False, + help_text=mark_safe( + """ +
+ Please describe the contents of these outputs to help reviewers. This includes: + +
+ """ + ), + ) + controls = forms.CharField( + required=False, + help_text=mark_safe( + """ +
+ Please describe the statistical disclosure controls you have applied to these outputs. This includes: + +
+ """ + ), + ) @classmethod def from_filegroup(cls, filegroup: FileGroup, *args, **kwargs): diff --git a/airlock/templates/file_browser/request/filegroup.html b/airlock/templates/file_browser/request/filegroup.html index b1fdbabd..ea50d8d6 100644 --- a/airlock/templates/file_browser/request/filegroup.html +++ b/airlock/templates/file_browser/request/filegroup.html @@ -6,6 +6,12 @@ .comments .comment_blinded { background-color: darkgrey; } + + .c2-help { + line-height: 1.6; + font-size: small; + } + {% #card title=group.title container=True class="group_modal" %}
@@ -13,10 +19,11 @@ {% csrf_token %}
- {% form_textarea field=group.c2_edit_form.context show_placeholder=True resize=True placeholder="Describe the data to be released in this group of files" class="w-full max-w-lg mx-auto" rows=6 disabled=group.c2_readonly readonly=group.c2_readonly %} + + {% form_textarea field=group.c2_edit_form.context resize=True hint_below=True show_placeholder=True placeholder="Describe the data to be released in this group of files" class="w-full max-w-lg mx-auto" rows=6 disabled=group.c2_readonly readonly=group.c2_readonly %}
- {% form_textarea field=group.c2_edit_form.controls resize=True show_placeholder=True placeholder="Describe the disclosure controls that have been applied to these files" class="w-full max-w-lg mx-auto" rows=6 disabled=group.c2_readonly readonly=group.c2_readonly %} + {% form_textarea field=group.c2_edit_form.controls resize=True hint_below=True show_placeholder=True placeholder="Describe the disclosure controls that have been applied to these files" class="w-full max-w-lg mx-auto" rows=6 disabled=group.c2_readonly readonly=group.c2_readonly %}
{% if not group.c2_readonly %}