html: tracking-code & search cells: add block for custom submit content (#40861)

This commit is contained in:
Thomas JUND 2020-03-20 15:04:42 +01:00
parent fdb0ff0f36
commit 8d80c2650e
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
{% block search-form %}
<form id="combo-search-form-{{ cell.pk }}" class="combo-search-form">
<input type="search" name="q" autocomplete="off" id="combo-search-input-{{ cell.pk }}" class="combo-search-input" {% if cell.autofocus %}autofocus {% endif %}/>
<button class="submit-button">{% trans "Search" %}</button>
<button class="submit-button" aria-label="{% trans 'Search' %}">{% block submit-content %}{% trans 'Search' %}{% endblock %}</button>
</form>
{% endblock %}

View File

@ -24,7 +24,7 @@
{% 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>{% trans 'Submit' %}</button>
<button aria-label="{% trans 'Submit' %}">{% block submit-content %}{% trans 'Submit' %}{% endblock %}</button>
<script>
$(function() {
$('#_cell_url_{{ cell.id }}').val(window.location);