Projet

Général

Profil

0002-templates-allow-deleting-visualization-from-listing-.patch

Valentin Deniaud, 30 octobre 2019 12:27

Télécharger (1,36 ko)

Voir les différences:

Subject: [PATCH 2/2] templates: allow deleting visualization from listing
 (#27412)

 bijoe/templates/bijoe/visualizations_list.html | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
bijoe/templates/bijoe/visualizations_list.html
3 3
<ul class="objects-list single-links bijoe-visualizations">
4 4
  {% for visualization, exists in visualizations.items %}
5 5
    {% url 'visualization' pk=visualization.pk as visualization_url %}
6
    <li><a {% if exists %}href="{{ visualization_url }}"{% else %}class="disabled" title="{% trans "Form data not found" %}"{% endif %}>
7
      {{ visualization.name }}
8
    </a></li>
6
    <li>
7
      <a {% if exists %}href="{{ visualization_url }}"{% else %}class="disabled" title="{% trans "Form data not found" %}"{% endif %}>
8
        {{ visualization.name }}
9
      </a>
10
      <a class="delete" rel="popup" href="{% url "delete-visualization" pk=visualization.pk %}" title="{% trans "Delete" %}">{% trans "Delete" %}</a>
11
    </li>
9 12
    {% endfor %}
10 13
</ul>
11
-