This patch adds a javascript confirmation box when clicking "Mark as Ineligible" on Student Proposal. This is temporary until we make this action reversible.
Patch by: Tim Ansell
Reviewed by: Pawel Solyga
--- a/app/soc/templates/soc/student_proposal/review.html Sun Mar 29 07:43:04 2009 +0000
+++ b/app/soc/templates/soc/student_proposal/review.html Sun Mar 29 21:35:02 2009 +0000
@@ -98,7 +98,7 @@
{% if is_org_admin %}
<td>
<input style="font-weight: bold" type="button" value="Mark as Ineligible"
- onclick="location.href='?ineligible=1'"/>
+ onclick="if (confirm('Are you sure? This can not be undone!')) { location.href='?ineligible=1'; }"/>
</td>
{% endif %}
</tr>