24 lines
881 B
HTML
24 lines
881 B
HTML
{% load i18n %}
|
|
{% block cell-content %}
|
|
<div class="wcs-tracking-code-input">
|
|
<h2>Votre code de suivi</h2>
|
|
<form data-wcs-url="{{ url }}" method="post" action="{{ site_base }}{% url 'wcs-tracking-code' %}">
|
|
<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 %}
|