html: tracking-code & search cells: add block for custom submit content (#40861)
This commit is contained in:
parent
fdb0ff0f36
commit
8d80c2650e
|
@ -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 %}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue