This patch adds a javascript confirmation box when clicking "Mark as Ineligible" on Student Proposal. This is temporary until we make this action reversible.
authorPawel Solyga <Pawel.Solyga@gmail.com>
Sun, 29 Mar 2009 21:35:02 +0000
changeset 2028 df97cade97ac
parent 2027 199bcab679df
child 2029 1f276091b42a
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
app/soc/templates/soc/student_proposal/review.html
--- 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>