mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 12:49:01 +02:00
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:
parent
f178ea3151
commit
a8ae70a600
|
@ -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 %}
|
||||
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue
Block a user