Projet

Général

Profil

0001-html-tracking-code-search-cells-add-block-for-custom.patch

Thomas Jund, 20 mars 2020 15:07

Télécharger (1,94 ko)

Voir les différences:

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

 combo/apps/search/templates/combo/search-cell.html          | 2 +-
 combo/apps/wcs/templates/combo/wcs/tracking_code_input.html | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
combo/apps/search/templates/combo/search-cell.html
4 4
{% block search-form %}
5 5
<form id="combo-search-form-{{ cell.pk }}" class="combo-search-form">
6 6
  <input type="search" name="q" autocomplete="off" id="combo-search-input-{{ cell.pk }}" class="combo-search-input" {% if cell.autofocus %}autofocus {% endif %}/>
7
  <button class="submit-button">{% trans "Search" %}</button>
7
  <button class="submit-button" aria-label="{% trans 'Search' %}">{% block submit-content %}{% trans 'Search' %}{% endblock %}</button>
8 8
</form>
9 9
{% endblock %}
10 10

  
combo/apps/wcs/templates/combo/wcs/tracking_code_input.html
24 24
    {% trans "The tracking code could not been found." %}
25 25
  </div>
26 26
  <input aria-label="{% trans "Tracking Code" %}" required id="tracking-code" name="code" placeholder="{% trans 'ex: CNPHNTFB' %}"/>
27
  <button>{% trans 'Submit' %}</button>
27
  <button aria-label="{% trans 'Submit' %}">{% block submit-content %}{% trans 'Submit' %}{% endblock %}</button>
28 28
  <script>
29 29
  $(function() {
30 30
    $('#_cell_url_{{ cell.id }}').val(window.location);
31
-