demo : add custom text for trackink code input cell
This commit is contained in:
parent
f7716d44df
commit
ec2d40e794
|
@ -0,0 +1,27 @@
|
|||
{% load i18n %}
|
||||
<div class="wcs-tracking-code-input">
|
||||
<h2>Suivez chaque démarche à la trace</h2>
|
||||
<div>
|
||||
<form data-wcs-url="{{ url }}" method="post" action="{{ site_base }}{% url 'wcs-tracking-code' %}">
|
||||
<p>
|
||||
Un code suivi accompagne chaque démarche. Il est communiqué au citoyen et vos agents
|
||||
peuvent ainsi facilement retrouver la demande citoyenne et les informations qui l'accompagne.
|
||||
</p>
|
||||
<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 aria-label="{% trans "Tracking Code" %}" required id="tracking-code" name="code" placeholder="{% trans 'ex: CNPHNTFB' %}"/>
|
||||
<button aria-label="{% trans 'Submit' %}">{% block submit-content %}{% trans 'Submit' %}{% endblock %}</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>
|
||||
</div>
|
Loading…
Reference in New Issue