diff --git a/class/command/EditNomination.php b/class/command/EditNomination.php index 3d291d4..913e743 100644 --- a/class/command/EditNomination.php +++ b/class/command/EditNomination.php @@ -176,7 +176,7 @@ public function execute(Context $context) // If anything was missing, redirect back to the form // TODO: Fix this so that it shows a useful error notification if the user gets the CAPTCHA wrong - if(!empty($missing) || !Captcha::verify()){ + if(!empty($missing)){ // Notify the user that they must reselect their file diff --git a/class/view/ReferenceForm.php b/class/view/ReferenceForm.php index 658866a..7e48c4a 100644 --- a/class/view/ReferenceForm.php +++ b/class/view/ReferenceForm.php @@ -7,6 +7,7 @@ use \nomination\NominationFactory; use \nomination\ReferenceFactory; use \nomination\ViewFactory; +use \nomination\DocumentFactory; /** * ReferenceForm @@ -60,6 +61,16 @@ public function display(Context $context) $form->addHidden('unique_id', $context['unique_id']); $tpl = array(); + + $doc = new DocumentFactory(); + $docID = $ref->getDocId(); + + if($docID) + { + $doc = $doc->getDocumentById($ref->getDocId()); + $tpl['DOWNLOAD'] = $doc->getDownloadLink($ref->getDocId(), 'Download Statement'); + } + $tpl['RECOMMENDATION'] = NominationDocument::getFileWidget(null, 'recommendation', $form); $tpl['STUDENT'] = $nom->getFullName(); diff --git a/templates/reference_form.tpl b/templates/reference_form.tpl index 9ae65d4..7626282 100644 --- a/templates/reference_form.tpl +++ b/templates/reference_form.tpl @@ -13,7 +13,13 @@ Please upload a letter of recommendation for {STUDENT}.

After uploading your letter click submit to save your recommendation.

- + +
+

+If you need to reupload a new statement, please use the choose file button above and resubmit the form. +Otherwise the link below will allow you to see the document you've already uploaded.

+{DOWNLOAD} +