Projet

Général

Profil

0001-templates-change-custom-tracking-code-input-template.patch

Frédéric Péters, 29 février 2020 09:54

Télécharger (6,61 ko)

Voir les différences:

Subject: [PATCH 1/2] templates: change custom tracking code input templates to
 extend parent (#40282)

 .../combo/wcs/tracking_code_input.html        | 29 ++-------------
 .../combo/wcs/tracking_code_input.html        | 29 ++++-----------
 .../combo/wcs/tracking_code_input.html        | 31 ++++------------
 .../combo/wcs/tracking_code_input.html        | 37 ++++++-------------
 4 files changed, 30 insertions(+), 96 deletions(-)
templates/variants/grandlyon-sau/combo/wcs/tracking_code_input.html
1
{% load i18n %}
2
{% block cell-content %}
3
<div class="wcs-tracking-code-input">
4
  <h2>Code de suivi</h2>
5
 <form data-wcs-url="{{ url }}" method="post" action="{{ site_base }}{% url 'wcs-tracking-code' %}">
6
   <p>
7
     Pour suivre votre demande, indiquez le code de suivi qui vous a été transmis.
8
   </p>
9
  <input id="_cell_url_{{ cell.id }}" name="url" value="" type="hidden"/>
10
  <input name="cell" value="{{ cell.id }}" type="hidden"/>
11
  <div id="_cell_error_{{ cell.id }}" class="errornotice" style="display: none">
12
    {% trans "The tracking code could not been found." %}
13
  </div>
14
  <input required id="tracking-code" name="code" placeholder="{% trans 'ex: CNPHNTFB' %}"/>
15
  <button>Valider</button>
16
  <script>
17
  $(function() {
18
    $('#_cell_url_{{ cell.id }}').val(window.location);
19
    if (window.location.search.indexOf('unknown-tracking-code') != -1) {
20
      $('#_cell_error_{{ cell.id }}').show();
21
    }
22
  });
23
  </script>
24
 </form>
25
</div>
1
{% extends "combo/wcs/tracking_code_input.html" %}
2

  
3
{% block intro-text %}
4
<p>Pour suivre votre demande, indiquez le code de suivi qui vous a été transmis.</p>
26 5
{% endblock %}
templates/variants/haute-garonne-cd31/combo/wcs/tracking_code_input.html
1
{% load i18n %}
2
{% block cell-content %}
3
<div class="wcs-tracking-code-input">
4
 <h2>Votre code de suivi</h2>
5
 <form data-wcs-url="{{ url }}" method="post" action="{{ site_base }}{% url 'wcs-tracking-code' %}">
6
  <input id="_cell_url_{{ cell.id }}" name="url" value="" type="hidden"/>
7
  <input name="cell" value="{{ cell.id }}" type="hidden"/>
8
  <div id="_cell_error_{{ cell.id }}" class="errornotice" style="display: none">
9
    {% trans "The tracking code could not been found." %}
10
  </div>
11
  <input required id="tracking-code" name="code" placeholder="{% trans 'ex: CNPHNTFB' %}"/>
12
  <button>{% trans 'Submit' %}</button>
13
  <script>
14
  $(function() {
15
    $('#_cell_url_{{ cell.id }}').val(window.location);
16
    if (window.location.search.indexOf('unknown-tracking-code') != -1) {
17
      $('#_cell_error_{{ cell.id }}').show();
18
    }
19
  });
20
  </script>
21
 </form>
22
</div>
1
{% extends "combo/wcs/tracking_code_input.html" %}
2

  
3
{% block title %}
4
<h2>Votre code de suivi</h2>
5
{% endblock %}
6

  
7
{% block intro-text %}
23 8
{% endblock %}
templates/variants/pre-saint-gervais/combo/wcs/tracking_code_input.html
1
{% load i18n %}
2
{% block cell-content %}
3
<div class="wcs-tracking-code-input">
4
 <h2>Votre code de suivi</h2>
5
 <p>Retrouvez votre demande grâce à son code de suivi…</p>
6
 <form data-wcs-url="{{ url }}" method="post" action="{{ site_base }}{% url 'wcs-tracking-code' %}">
7
  <input id="_cell_url_{{ cell.id }}" name="url" value="" type="hidden"/>
8
  <input name="cell" value="{{ cell.id }}" type="hidden"/>
9
  <div id="_cell_error_{{ cell.id }}" class="errornotice" style="display: none">
10
    {% trans "The tracking code could not been found." %}
11
  </div>
12
  <input required id="tracking-code" name="code" placeholder="{% trans 'ex: CNPHNTFB' %}"/>
13
  <button>{% trans 'Submit' %}</button>
14
  <script>
15
  $(function() {
16
    $('#_cell_url_{{ cell.id }}').val(window.location);
17
    if (window.location.search.indexOf('unknown-tracking-code') != -1) {
18
      $('#_cell_error_{{ cell.id }}').show();
19
    }
20
  });
21
  </script>
22
 </form>
23
</div>
1
{% extends "combo/wcs/tracking_code_input.html" %}
2

  
3
{% block title %}
4
<h2>Votre code de suivi</h2>
5
{% endblock %}
6

  
7
{% block intro-text %}
8
<p>Retrouvez votre demande grâce à son code de suivi…</p>
24 9
{% endblock %}
templates/variants/quimper/combo/wcs/tracking_code_input.html
1
{% load i18n %}
2
{% block cell-content %}
3
<div class="wcs-tracking-code-input">
4
 <h2>J'ai un code de suivi</h2>
5
  <p>
6
    Indiquez le code de suivi Quimper+ qui vous a été attribué afin de suivre
7
    l’avancement du traitement de votre demande.
8
  </p>
9
 <form data-wcs-url="{{ url }}" method="post" action="{{ site_base }}{% url 'wcs-tracking-code' %}">
10
  <input id="_cell_url_{{ cell.id }}" name="url" value="" type="hidden"/>
11
  <input name="cell" value="{{ cell.id }}" type="hidden"/>
12
  <div id="_cell_error_{{ cell.id }}" class="errornotice" style="display: none">
13
    {% trans "The tracking code could not been found." %}
14
  </div>
15
  <input required id="tracking-code" name="code" placeholder="{% trans 'ex: CNPHNTFB' %}"/>
16
  <button>{% trans 'Submit' %}</button>
17
  <script>
18
  $(function() {
19
    $('#_cell_url_{{ cell.id }}').val(window.location);
20
    if (window.location.search.indexOf('unknown-tracking-code') != -1) {
21
      $('#_cell_error_{{ cell.id }}').show();
22
    }
23
  });
24
  </script>
25
 </form>
26
</div>
1
{% extends "combo/wcs/tracking_code_input.html" %}
2

  
3
{% block title %}
4
<h2>J’ai un code de suivi</h2>
5
<p>
6
  Indiquez le code de suivi Quimper+ qui vous a été attribué afin de suivre
7
  l’avancement du traitement de votre demande.
8
</p>
9
{% endblock %}
10

  
11
{% block intro-text %}
27 12
{% endblock %}
28
-