Remove Submit layer link when on submit/edit pages

This avoids changes being accidentally lost when either editing or
submitting a layer.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
Paul Eggleton 2013-02-28 13:42:10 +00:00
parent f178ea3151
commit a8ae70a600
2 changed files with 5 additions and 5 deletions

View File

@ -14,6 +14,11 @@
{% block title %}OpenEmbedded metadata index - edit layer{% endblock %}
-->
{% block submitlink %}
<!-- Remove submit link added by base.html, otherwise clicking it may lose changes -->
{% endblock %}
{% block content %}
{% autoescape on %}

View File

@ -21,11 +21,6 @@
{% endblock %}
{% block submitlink %}
<!-- Disable submit link, otherwise clicking it will blank the form! -->
<li><a href="#">Submit layer</a></li>
{% endblock %}
{% block formtag %}
<form id="edit_layer_form" action="{% url submit_layer %}" method="post">
{% endblock %}