{% extends "../../layout/archive.twig" %} {% set type = "tenders" %} {% block archive_col_1 %} <nav aria-label="Breadcrumbs" class="breadcrumbs {{block.classes}}"> <ul> <li><a href="#">Concorsi</a></li> <li><h1 aria-current="page">Pagina di esempio concorsi archiviati</h1></li> </ul> </nav> {% endblock %} {% block posts %} {% for post in post_type.tenders.items %} <div class="post-row post-row--archived"> <div class="post-row__inner"> <div> <div class="post-row-date tender-date"> <span>Scaduto {{post.date|date('d.m.Y, H:s')}}</span> </div> </div> <div class="post-row-content"> <a href="{{post.url}}" class="post-row-title">{{post.title}}</a> <div class="block-container block-grid-list"> <div class="block-grid-list__inner"> {% for id in post.terms|slice(0,1) %} {% set parent = id[0] %} {% set terms = id[1] %} {% set taxonomy = taxonomies.tenders.terms[parent] %} <div> <p>{{taxonomy.name}}</p> <p> {% for term in terms %} {% set term = taxonomies.tenders.terms[parent].items[term] %} <span>{{term.name}}</span>{% if not loop.last %}, {% endif %} {% endfor %} </p> </div> {% endfor %} <div> <p>Posti disponibili</p> <p>{{post.seats}}</p> </div> {% for id in post.terms|slice(1) %} {% set parent = id[0] %} {% set terms = id[1] %} {% set taxonomy = taxonomies.tenders.terms[parent] %} <div> <p>{{taxonomy.name}}</p> <p> {% for term in terms %} {% set term = taxonomies.tenders.terms[parent].items[term] %} <span>{{term.name}}</span>{% if not loop.last %}, {% endif %} {% endfor %} </p> </div> {% endfor %} {% for item in post.info %} <div> <p>{{item.label}}</p> <p>{{item.text}}</p> </div> {% endfor %} </div> </div> </div> </div> <div class="post-row__footer"> {% set tender_links = { "key": "links-list", "classes": "", "links_size": "sm", "content": { "list": [ { "name": "Vedi i materiali e l'esito", "url": "#", } ] } } %} {% include "../../blocks/links-list.twig" with {'block': tender_links } %} </div> </div> {% endfor %} {% endblock %} {% block pagination %} {% include "../../blocks/pagination.twig" %} {% endblock %}