diff --git a/app/hr/forms.py b/app/hr/forms.py index 4ff0e17..8480344 100644 --- a/app/hr/forms.py +++ b/app/hr/forms.py @@ -96,6 +96,7 @@ class BlacklistUserForm(forms.Form): """ A form to capture the reasons for blacklisting a user and the related expiry date """ - reason = forms.CharField(required=True, widget=forms.widgets.Textarea()) - expiry_date = forms.DateTimeField(required=False, widget=SelectDateWidget()) - disable = forms.BooleanField(required=False) + level = forms.ChoiceField(label="Blacklist Level", required=True, choices=BLACKLIST_LEVEL_CHOICES, help_text="The level of entry to be added to the account") + reason = forms.CharField(label="Reason / Description", required=True, widget=forms.widgets.Textarea(), help_text="Brief description of why this account is being blacklisted") + expiry_date = forms.DateTimeField(label="Expiry Date", required=False, widget=SelectDateWidget(), help_text="The date on which the blacklist entry should expire") + disable = forms.BooleanField(label="Disable User?", required=False, help_text="Enabling this will disable the user's account once blacklisted") diff --git a/app/hr/templates/hr/blacklist/blacklist.html b/app/hr/templates/hr/blacklist/blacklist.html index 840765a..be2b42d 100644 --- a/app/hr/templates/hr/blacklist/blacklist.html +++ b/app/hr/templates/hr/blacklist/blacklist.html @@ -3,6 +3,8 @@ {% block title %}Blacklist User{% endblock %} {% block content %} +

Add Blacklist

+

This form will blacklist the listed user below. It'll process all entries for the user and blacklist the following: