wcs: add customisation blocks to tracking code input cell (#40649)

This commit is contained in:
Frédéric Péters 2020-03-11 14:16:06 +01:00
parent c5c2a66a60
commit 00131e4868
1 changed files with 7 additions and 0 deletions

View File

@ -4,7 +4,10 @@
{% block title %}
<h2>{% trans 'Tracking Code' %}</h2>
{% endblock %}
<div>
{% block form-pre %}{% endblock %}
<form data-wcs-url="{{ url }}" method="post" action="{{ site_base }}{% url 'wcs-tracking-code' %}">
{% block form-top %}
{% block intro-text %}
<p>
{% blocktrans %}
@ -14,6 +17,7 @@
{% endblocktrans %}
</p>
{% endblock %}
{% endblock %}
<input id="_cell_url_{{ cell.id }}" name="url" value="" type="hidden"/>
<input name="cell" value="{{ cell.id }}" type="hidden"/>
<div id="_cell_error_{{ cell.id }}" class="errornotice" style="display: none">
@ -29,6 +33,9 @@
}
});
</script>
{% block form-bottom %}{% endblock %}
</form>
{% block form-post %}{% endblock %}
</div>
</div>
{% endblock %}