app/soc/templates/soc/site/sponsor/profile/edit.html
changeset 412 5acee4621c3d
parent 392 76f130cc16b0
--- a/app/soc/templates/soc/site/sponsor/profile/edit.html	Thu Oct 23 09:08:02 2008 +0000
+++ b/app/soc/templates/soc/site/sponsor/profile/edit.html	Thu Oct 23 09:47:38 2008 +0000
@@ -14,11 +14,15 @@
 {% endcomment %}
 {% block submit_buttons %}
 {{ block.super }}
+{% if entity %}
 <td>
  <input type="button" onclick="location.href='/site/{{ entity_type_short|lower }}/profile/delete/{{ entity.link_name }}'" value="Delete"/>
 </td>
+{% endif %}
 {% endblock %}
 {% block body %}
 {{ block.super }}
+{% if entity %}
 <p><a href="/{{ entity_type_short|lower }}/profile/{{ entity.link_name }}">View Sponsor Public Profile</a></p>
+{% endif %}
 {% endblock %}
\ No newline at end of file