Deleting sandwiches works.
[~kgodey/maayanwich.git] / templates / editsandwich.html
index b90b5aa..ed649d4 100644 (file)
@@ -43,5 +43,6 @@ $(function()
        <p><label for="id_ing">Ingredients:</label> <input id="id_ing" type="text" name="ing"/></p>
        <input type="submit" value="Submit" />
        </form>
+       {% ifequal s.user request.user %}<p class="sandnotes"><a href="{% url del_sandwich slug=s.slug %}">Delete sandwich</a></p>{% endifequal %}
        </span>
 {% endblock %}
\ No newline at end of file