Projet

Général

Profil

0001-general-mark-cells-as-a-block-so-they-can-be-extende.patch

Frédéric Péters, 29 juin 2018 10:36

Télécharger (18 ko)

Voir les différences:

Subject: [PATCH] general: mark cells as a block so they can be extended
 (#24773)

 .../calendar/templates/calendar/booking_calendar_cell.html     | 2 ++
 combo/apps/dashboard/templates/combo/dashboardcell.html        | 2 ++
 combo/apps/dataviz/templates/combo/gauge-cell.html             | 2 ++
 combo/apps/family/templates/family/infos.html                  | 2 ++
 .../fargo/templates/combo/fargo/recent-documents-cell.html     | 2 ++
 combo/apps/lingo/templates/lingo/combo/basket.html             | 2 ++
 combo/apps/lingo/templates/lingo/combo/basket_link.html        | 2 ++
 combo/apps/lingo/templates/lingo/combo/items.html              | 2 ++
 .../apps/lingo/templates/lingo/combo/recent_transactions.html  | 2 ++
 .../templates/lingo/combo/self-declared-invoice-payment.html   | 2 ++
 combo/apps/maps/templates/maps/map_cell.html                   | 2 ++
 .../apps/notifications/templates/combo/notificationscell.html  | 2 ++
 combo/apps/search/templates/combo/search-cell.html             | 2 ++
 combo/apps/wcs/templates/combo/wcs/category.html               | 2 ++
 combo/apps/wcs/templates/combo/wcs/current_drafts.html         | 2 ++
 combo/apps/wcs/templates/combo/wcs/current_forms.html          | 2 ++
 combo/apps/wcs/templates/combo/wcs/form.html                   | 2 ++
 combo/apps/wcs/templates/combo/wcs/form_categories.html        | 2 ++
 combo/apps/wcs/templates/combo/wcs/forms_of_category.html      | 2 ++
 combo/apps/wcs/templates/combo/wcs/list_of_forms.html          | 3 ++-
 combo/apps/wcs/templates/combo/wcs/tracking_code_input.html    | 2 ++
 combo/apps/wcs/templates/combo/wcs/user_all_forms.html         | 2 ++
 combo/apps/wcs/templates/combo/wcs/user_done_forms.html        | 2 ++
 combo/public/templates/combo/deferred-cell.html                | 2 ++
 combo/public/templates/combo/feed-cell.html                    | 2 ++
 combo/public/templates/combo/json-cell.html                    | 2 ++
 combo/public/templates/combo/json-error-cell.html              | 2 ++
 combo/public/templates/combo/json-list-cell.html               | 2 ++
 combo/public/templates/combo/link-cell.html                    | 2 ++
 combo/public/templates/combo/menu-cell.html                    | 2 ++
 combo/public/templates/combo/parameters-cell.html              | 2 ++
 combo/public/templates/combo/text-cell.html                    | 2 ++
 32 files changed, 64 insertions(+), 1 deletion(-)
combo/apps/calendar/templates/calendar/booking_calendar_cell.html
1 1
{% load i18n calendar %}
2
{% block cell-content %}
2 3

  
3 4
{% if cell.title %}
4 5
<h2>
......
23 24

  
24 25

  
25 26
<style>.calinfo { font-style: italic; font-size: 80%; }</style>
27
{% endblock %}
combo/apps/dashboard/templates/combo/dashboardcell.html
1 1
{% load combo i18n %}
2
{% block cell-content %}
2 3
{% for tile in tiles %}
3 4
{% with cell=tile.cell %}
4 5
<div class="cell {{ cell.css_class_names }} {% if cell.slug %}{{cell.slug}}{% endif %}"
......
9 10
     {% endif %}><div>{% render_cell cell %}</div></div>
10 11
{% endwith %}
11 12
{% endfor %}
13
{% endblock %}
combo/apps/dataviz/templates/combo/gauge-cell.html
1
{% block cell-content %}
1 2
<div
2 3
     data-combo-gauge="true"
3 4
     {% if jsonp %}
......
12 13
    {% if url %}<a href="{{url}}">{% endif %}{{title}}{% if url %}</a>{% endif %}
13 14
  {% endif %}
14 15
</div>
16
{% endblock %}
combo/apps/family/templates/family/infos.html
1 1
{% load i18n combo %}
2
{% block cell-content %}
2 3
<h2>{% trans "Informations related to your family" %}</h2>
3 4

  
4 5
{% trans "Top content for unlinked users" as top_content %}
......
62 63
  {% endwith %}
63 64
  {% endif %}
64 65
</div>
66
{% endblock %}
combo/apps/fargo/templates/combo/fargo/recent-documents-cell.html
1 1
{% load i18n %}
2
{% block cell-content %}
2 3
<div class="recent-documents links-list">
3 4
<h2>{% trans 'Recent Documents' %}</h2>
4 5
{% if results %}
......
11 12
<p>{% trans "You don't have any recent document." %}</p>
12 13
{% endif %}
13 14
</div>
15
{% endblock %}
combo/apps/lingo/templates/lingo/combo/basket.html
1 1
{% load i18n %}
2
{% block cell-content %}
2 3
{% if regies %}
3 4
<h2>{% trans "Basket" %}</h2>
4 5
{% for regie_info in regies %}
......
21 22
</form>
22 23
{% endfor %}
23 24
{% endif %}
25
{% endblock %}
combo/apps/lingo/templates/lingo/combo/basket_link.html
1 1
{% load i18n %}
2
{% block cell-content %}
2 3
{% if total %}
3 4
<p><a href="{{site_base}}{{basket_url}}">{% trans 'Basket:' %}
4 5
  {% blocktrans count counter=items|length %}
......
9 10
  ({{ total }} €)</a></p>
10 11
</form>
11 12
{% endif %}
13
{% endblock %}
combo/apps/lingo/templates/lingo/combo/items.html
1 1
{% load i18n %}
2
{% block cell-content %}
2 3
{% if title %}<h2>{{ title|safe }}</h2>{% endif %}
3 4
<div>
4 5
{% if text %}{{ text|safe }}{% endif %}
......
44 45
{% trans "No items yet" %}
45 46
{% endif %}
46 47
</div>
48
{% endblock %}
combo/apps/lingo/templates/lingo/combo/recent_transactions.html
1 1
{% load i18n %}
2
{% block cell-content %}
2 3
<h2>{% trans "Recent Transactions" %}</h2>
3 4
{% csrf_token %}
4 5
<ul>
......
17 18
  </li>
18 19
  {% endfor %}
19 20
</ul>
21
{% endblock %}
combo/apps/lingo/templates/lingo/combo/self-declared-invoice-payment.html
1 1
{% load i18n %}
2
{% block cell-content %}
2 3
{% if title %}<h2>{{ title }}</h2>{% endif %}
3 4
<div>
4 5
{% if text %}<p>{{ text|safe }}</p>{% endif %}
......
27 28
  </div>
28 29
</form>
29 30
</div>
31
{% endblock %}
combo/apps/maps/templates/maps/map_cell.html
1 1
{% load l10n %}
2
{% block cell-content %}
2 3
{% if title %}<h2>{{ title }}</h2>{% endif %}
3 4
{% localize off %}
4 5
<div class="combo-cell-map" data-init-state="{{ initial_state }}"
......
17 18
      >
18 19
{% endlocalize %}
19 20
</div>
21
{% endblock %}
combo/apps/notifications/templates/combo/notificationscell.html
1 1
{% load i18n %}
2
{% block cell-content %}
2 3
<h2>{% trans "Notifications" %}</h2>
3 4
{% if notifications %}
4 5
<ul>
......
17 18
{% else %}
18 19
<p>{% trans 'No notifications.' %}</p>
19 20
{% endif %}
21
{% endblock %}
combo/apps/search/templates/combo/search-cell.html
1 1
{% load i18n %}
2
{% block cell-content %}
2 3

  
3 4
<form id="combo-search-form-{{ cell.pk }}" class="combo-search-form">
4 5
  <input type="text" name="q" autocomplete="off" id="combo-search-input-{{ cell.pk }}" class="combo-search-input"
......
47 48
  {% endif %}
48 49
});
49 50
</script>
51
{% endblock %}
combo/apps/wcs/templates/combo/wcs/category.html
1
{% block cell-content %}
1 2
<div class="wcs-category-{{slug}}">
2 3
<h2><a href="{{ url }}">{{ title }}</a></h2>
3 4
{{ description|safe }}
4 5
</div>
6
{% endblock %}
combo/apps/wcs/templates/combo/wcs/current_drafts.html
1 1
{% load i18n combo %}
2
{% block cell-content %}
2 3
<h2>{% trans 'Current Drafts' %}</h2>
3 4
{% for slug, forms in current_drafts.iteritems %}
4 5
<div class="current-drafts-{{ slug }} current-drafts list-of-forms">
......
16 17
  {% endif %}
17 18
</div>
18 19
{% endfor %}
20
{% endblock %}
combo/apps/wcs/templates/combo/wcs/current_forms.html
1 1
{% load i18n %}
2
{% block cell-content %}
2 3
<h2>{% trans 'Current Forms' %}</h2>
3 4
{% for slug, forms in current_forms.iteritems %}
4 5
  <div class="current-forms-{{ slug }} current-forms list-of-forms">
5 6
  {% include "combo/wcs/list_of_forms.html" with forms=forms %}
6 7
  </div>
7 8
{% endfor %}
9
{% endblock %}
combo/apps/wcs/templates/combo/wcs/form.html
1
{% block cell-content %}
1 2
<div class="wcs-form-{{slug}}"><a href="{{ url }}tryauth">{{ title }}</a></div>
3
{% endblock %}
combo/apps/wcs/templates/combo/wcs/form_categories.html
1 1
{% load i18n %}
2
{% block cell-content %}
2 3
<h2>{% trans 'Form Categories' %}</h2>
3 4
{% for slug, categories in form_categories.iteritems %}
4 5
<div class="categories-{{ slug }}">
......
10 11
  </ul>
11 12
</div>
12 13
{% endfor %}
14
{% endblock %}
combo/apps/wcs/templates/combo/wcs/forms_of_category.html
1 1
{% load i18n %}
2
{% block cell-content %}
2 3
<div class="wcs-forms-of-category-{{slug}}">
3 4
<h2>{{ title }}</h2>
4 5
{% if description %}
......
32 33

  
33 34
</ul>
34 35
</div>
36
{% endblock %}
combo/apps/wcs/templates/combo/wcs/list_of_forms.html
1
{% block cell-content %}
1 2
{% if forms %}
2 3
<ul>
3 4
  {% for data in forms.data|dictsortreversed:"form_receipt_datetime" %}
......
10 11
  {% endfor %}
11 12
</ul>
12 13
{% endif %}
13

  
14
{% endblock %}
combo/apps/wcs/templates/combo/wcs/tracking_code_input.html
1 1
{% load i18n %}
2
{% block cell-content %}
2 3
<div class="wcs-tracking-code-input">
3 4
 <h2>{% trans 'Tracking Code' %}</h2>
4 5
 <form data-wcs-url="{{ url }}" method="post" action="{{ site_base }}{% url 'wcs-tracking-code' %}">
......
26 27
  </script>
27 28
 </form>
28 29
</div>
30
{% endblock %}
combo/apps/wcs/templates/combo/wcs/user_all_forms.html
1 1
{% load combo i18n %}
2
{% block cell-content %}
2 3
<h2>{% trans 'All Forms' %}</h2>
3 4
{% for slug, forms in user_forms.iteritems %}
4 5
  <div class="user-forms-{{ slug }} user-all-forms list-of-forms">
5 6
  {% include "combo/wcs/list_of_forms.html" with forms=forms %}
6 7
  </div>
7 8
{% endfor %}
9
{% endblock %}
combo/apps/wcs/templates/combo/wcs/user_done_forms.html
1 1
{% load combo i18n %}
2
{% block cell-content %}
2 3
<h2>{% trans 'Done Forms' %}</h2>
3 4
{% for slug, forms in user_forms.iteritems %}
4 5
  <div class="user-forms-{{ slug }} list-of-forms">
5 6
  {% include "combo/wcs/list_of_forms.html" with forms=forms %}
6 7
  </div>
7 8
{% endfor %}
9
{% endblock %}
combo/public/templates/combo/deferred-cell.html
1
{% block cell-content %}
1 2
{% load i18n %}
2 3
<div class="loading" data-ajax-cell-must-load="true">
3 4
<span class="loading-message">{{ cell.loading_message }}</span>
4 5
</div>
6
{% endblock %}
combo/public/templates/combo/feed-cell.html
1 1
{% load i18n %}
2
{% block cell-content %}
2 3
{% if cell.title %}
3 4
<h2>{{ cell.title }}</h2>
4 5
{% endif %}
......
12 13
{% if entry.summary %}<div>{{entry.summary|safe}}</div>{% endif %}
13 14
{% endfor %}
14 15
</div>
16
{% endblock %}
combo/public/templates/combo/json-cell.html
1
{% block cell-content %}
1 2
{% if title %}<h2>{{title}}</h2>{% endif %}
2 3
<!--
3 4
{{json}}
4 5
-->
6
{% endblock %}
combo/public/templates/combo/json-error-cell.html
1 1
{% load i18n %}
2
{% block cell-content %}
2 3
{% if title %}<h2>{{title}}</h2>{% endif %}
3 4
<p>{% trans "Technical error getting data." %}</p>
5
{% endblock %}
combo/public/templates/combo/json-list-cell.html
1
{% block cell-content %}
1 2
<div class="links-list">
2 3
{% if title %}<h2>{{title}}</h2>{% endif %}
3 4
{% for row in json.data %}
......
7 8
{% endfor %}
8 9
</div>
9 10
</div>
11
{% endblock %}
combo/public/templates/combo/link-cell.html
1
{% block cell-content %}
1 2
<a href="{{url}}">{{title}}</a>
3
{% endblock %}
combo/public/templates/combo/menu-cell.html
1
{% block cell-content %}
1 2
{{menu}}
3
{% endblock %}
combo/public/templates/combo/parameters-cell.html
1
{% block cell-content %}
1 2
{% if form %}
2 3
    {% if title %}
3 4
    <h2>{% if url %}<a href="{{url}}">{% endif %}{{title}}{% if url %}</a>{% endif %}</h2>
......
10 11
      Choice: {{ form.cleaned_data.choice|pprint }}
11 12
    -->
12 13
{% endif %}
14
{% endblock %}
combo/public/templates/combo/text-cell.html
1
{% block cell-content %}
1 2
{{cell.text|safe}}
3
{% endblock %}
2
-