diff --git a/src/UNL/UCARE/Reminder.php b/src/UNL/UCARE/Reminder.php index 60b6011d8c4d09199854ed0caa8caaefbda81786..45aab7e8dbfe72329881e6a03adc83b78d1124af 100644 --- a/src/UNL/UCARE/Reminder.php +++ b/src/UNL/UCARE/Reminder.php @@ -20,6 +20,10 @@ class UNL_UCARE_Reminder if (!$this->application) { throw new Exception('Could not find that application!'); } - $this->application->emailSponsor(); + if (isset($options['confirmation'])) { + $this->application->emailApplicant(); + } else { + $this->application->emailSponsor(); + } } } \ No newline at end of file diff --git a/www/templates/Admin/ApplicantTable.tpl.php b/www/templates/Admin/ApplicantTable.tpl.php index ce6b143a182d8774bf644fb834c46639b8fde492..b74ebb22ea4f44ec1e09a9756f792065e0ed85e7 100644 --- a/www/templates/Admin/ApplicantTable.tpl.php +++ b/www/templates/Admin/ApplicantTable.tpl.php @@ -13,14 +13,19 @@ ?> <tr> <td><?php echo $id; ?> - <td><?php echo $app->first_name.' '.$app->last_name; ?></td> + <td> + <?php echo $app->first_name.' '.$app->last_name; ?><br /> + <a style="font-size:smaller" href="?view=reminder&year=<?php echo $year; ?>&id=<?php echo $app->id; ?>&confirmation=1">Send Confirmation</a> + </td> <td><?php echo $app->title; ?></td> <td><?php echo date('Y-m-d', strtotime($app->datesubmitted)); ?></td> - <td><a href="http://peoplefinder.unl.edu/?uid=<?php echo $app->sponsor_uid; ?>"><?php echo $app->sponsor_uid; ?></a></td> + <td><a href="http://directory.unl.edu/?uid=<?php echo $app->sponsor_uid; ?>"><?php echo $app->sponsor_uid; ?></a></td> <?php if ($app->getEndorsement()) : ?> <td class="complete">Endorsement complete</td> <?php else : ?> - <td><a href="?view=reminder&year=<?php echo $year; ?>&id=<?php echo $app->id; ?>">Send Reminder</a></td> + <td> + <a href="?view=reminder&year=<?php echo $year; ?>&id=<?php echo $app->id; ?>">Send Reminder</a> + </td> <?php endif; ?> <td><a href="?view=admin&delete<?php echo $year; ?>=<?php echo $app->id; ?>" onclick="return confirm('Are you sure?');">Delete</a></td> </tr>