35 lines
1.2 KiB
HTML
35 lines
1.2 KiB
HTML
{% load i18n %}
|
|
{% block cell-content %}
|
|
<div class="wcs-tracking-code-input">
|
|
{% block title %}
|
|
<h2>{% trans 'Tracking Code' %}</h2>
|
|
{% endblock %}
|
|
<form data-wcs-url="{{ url }}" method="post" action="{{ site_base }}{% url 'wcs-tracking-code' %}">
|
|
{% block intro-text %}
|
|
<p>
|
|
{% blocktrans %}
|
|
A tracking code is attached to all your forms, it is there to help you in
|
|
dealing with the administration. To find the details of a form linked to
|
|
a tracking code, you can enter the code in the entry below:
|
|
{% endblocktrans %}
|
|
</p>
|
|
{% 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">
|
|
{% trans "The tracking code could not been found." %}
|
|
</div>
|
|
<input required id="tracking-code" name="code" placeholder="{% trans 'ex: CNPHNTFB' %}"/>
|
|
<button>{% trans 'Submit' %}</button>
|
|
<script>
|
|
$(function() {
|
|
$('#_cell_url_{{ cell.id }}').val(window.location);
|
|
if (window.location.search.indexOf('unknown-tracking-code') != -1) {
|
|
$('#_cell_error_{{ cell.id }}').show();
|
|
}
|
|
});
|
|
</script>
|
|
</form>
|
|
</div>
|
|
{% endblock %}
|