From fecdc8f9a2ebab7b771f6afddef72f474347d3e7 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 31 Dec 2014 12:04:42 +0100 Subject: Add a deadline field for files --- archaeological_files_pdl/forms.py | 2 ++ .../templates/ishtar/wizard/wizard_instruction.html | 11 +++++++++-- .../templates/ishtar/wizard/wizard_preventiveplanning.html | 4 ++++ 3 files changed, 15 insertions(+), 2 deletions(-) (limited to 'archaeological_files_pdl') diff --git a/archaeological_files_pdl/forms.py b/archaeological_files_pdl/forms.py index be1754347..21ed4238a 100644 --- a/archaeological_files_pdl/forms.py +++ b/archaeological_files_pdl/forms.py @@ -194,6 +194,8 @@ class FileFormInstruction(forms.Form): validators=[valid_id(models.File)]) comment = forms.CharField(label=_(u"Comment"), widget=forms.Textarea, required=False) + instruction_deadline = forms.DateField(widget=widgets.JQueryDate, + required=False) year = forms.IntegerField(label=_("Year"), validators=[validators.MinValueValidator(1900), validators.MaxValueValidator(2100)]) diff --git a/archaeological_files_pdl/templates/ishtar/wizard/wizard_instruction.html b/archaeological_files_pdl/templates/ishtar/wizard/wizard_instruction.html index b47de2cce..c2c4fc4d7 100644 --- a/archaeological_files_pdl/templates/ishtar/wizard/wizard_instruction.html +++ b/archaeological_files_pdl/templates/ishtar/wizard/wizard_instruction.html @@ -12,7 +12,7 @@ - {{wizard.form.in_charge|safe}} + {{wizard.form.in_charge.errors}}{{wizard.form.in_charge|safe}} @@ -39,11 +39,18 @@ : {{wizard.form.end_date|safe}} + + + + + {{wizard.form.instruction_deadline.errors}}{{wizard.form.instruction_deadline|safe}} + + - SRA {{wizard.form.year|safe}} - {{wizard.form.numeric_reference|safe}} + {{wizard.form.numeric_reference.errors}}SRA {{wizard.form.year|safe}} - {{wizard.form.numeric_reference|safe}} diff --git a/archaeological_files_pdl/templates/ishtar/wizard/wizard_preventiveplanning.html b/archaeological_files_pdl/templates/ishtar/wizard/wizard_preventiveplanning.html index 41527629d..5b3228cfb 100644 --- a/archaeological_files_pdl/templates/ishtar/wizard/wizard_preventiveplanning.html +++ b/archaeological_files_pdl/templates/ishtar/wizard/wizard_preventiveplanning.html @@ -20,6 +20,10 @@

Localisation

+{% if wizard.form.main_town.errors %} + +{% endif %} + -- cgit v1.2.3
{{wizard.form.main_town.errors}}
{{wizard.form.main_town|safe}}