diff --git a/teamtemp/responses/forms.py b/teamtemp/responses/forms.py index bf3d5b28..9799b8a5 100644 --- a/teamtemp/responses/forms.py +++ b/teamtemp/responses/forms.py @@ -277,9 +277,8 @@ def clean_archive_schedule(self): def clean_next_archive_date(self): next_archive_date = self.cleaned_data['next_archive_date'] - if next_archive_date is not None: - if next_archive_date < timezone.now().date(): - raise forms.ValidationError('Next Archive Date must not be past') + if next_archive_date is not None and next_archive_date < timezone.now().date(): + raise forms.ValidationError('Next Archive Date must not be past') return next_archive_date def clean_survey_type(self): diff --git a/teamtemp/static/style.css b/teamtemp/static/style.css index 621b5184..53560115 100644 --- a/teamtemp/static/style.css +++ b/teamtemp/static/style.css @@ -93,3 +93,20 @@ ul { width: 167px; vertical-align: middle; } + +.centre { + text-align: center; +} + +.top { + vertical-align: top; +} + +.nowrap { + text-wrap: none; + white-space: nowrap; +} + +.filters>tbody>tr>td { + padding: 2px; +} diff --git a/teamtemp/templates/bvc.html b/teamtemp/templates/bvc.html index ea35afa8..36a6b8fe 100644 --- a/teamtemp/templates/bvc.html +++ b/teamtemp/templates/bvc.html @@ -96,7 +96,7 @@ {% block body %} -