templates/annonces/annonce_normal.inc.html.twig line 1

Open in your IDE?
  1. {% extends 'templates.html.twig' %}
  2. {% block headcontent %}
  3.     {% include 'includes/navigation.inc.html.twig' %}
  4. {% endblock %}
  5. {% block content %}
  6.     {% if error_annonce is defined and error_annonce %}
  7.         {% include 'includes/result.inc.html.twig' %}
  8.     {% else %}
  9.          {% if error_preview is defined and error_preview %}
  10.             {% include 'includes/result.inc.html.twig' %}
  11.         {% endif %}
  12.         {% include 'montheatre/bookmarking.inc.html.twig' %}
  13.     <main class="tc-desktop-2_3 tc-phone-1_1">
  14.     <section class="tc-header row  tc-annonces">
  15.         <header class="tc-panel">
  16.             <div class="tc-panel-header">
  17.                 {% if annonce.categorie is defined and annonce.categorie is not empty %}
  18.                     <h2 class="tc-neutral-color"><a href="/annonces/{{ annonce.categorie.url_clean }}/">{{ annonce.categorie.name }}</a></h2>
  19.                 {% endif %}
  20.                 <h1>{{ annonce.sujet }}</h1>
  21.                 {% if modif_annonce is defined and modif_annonce %}
  22.                 <p class="tc-neutral-color tc-subtitle"><a href="/montheatre/">{{ app.user.login }}</a>, voici le détail de l'annonce que vous avez postée</p>
  23.                 {% endif %}
  24.                 {% if reponses_by_user is defined and reponses_by_user %}
  25.                 <p class="tc-neutral-color tc-subtitle"><a href="/montheatre/">{{ app.user.login }}</a>, vous avez répondu à cette annonce !</p>
  26.                 {% endif %}
  27.             </div>
  28.         </header>
  29.         <nav id="tc-subnav-annonces" class="tc-subnav tc-no-bg">
  30.             <ul class="tc-clean-list tc-no-bg">
  31.                 {% if modif_annonce is defined and modif_annonce %}
  32.                     <li class="tc-no-bg"><a href="/montheatre/annonces/deleteannonce/{{ annonce.idannonce }}" title="Êtes-vous sûr de vouloir supprimer cette annonce ?" ><span class="tc-icon-cancel"></span>Supprimer</a></li>
  33.                     <li class="tc-no-bg"><a href="/annonces/proposer/ajouter/idannonce/{{ annonce.idannonce }}" ><span class='tc-icon-edit'></span>Modifier</a></li>
  34.                 {% endif %}
  35.                 {% if modif_annonce is not defined or (modif_annonce is defined and not modif_annonce) %}
  36.                     <li class="tc-no-bg"><a href="{{ annonce.url_clean }}?contact" rel="nofollow"><span class="tc-icon-mail"></span>Contacter l'annonceur</a></li>
  37.                 {% endif %}
  38.                 <li class="tc-no-bg" ><a href="{{ annonce.url_clean }}?print" onclick="window.open(this.href); return false;" rel="nofollow"><span class="tc-icon-doc-text"></span>Imprimer</a></li>
  39. {#                <li class="tc-no-bg" ><a href="{{ annonce.url_clean }}?envoiami" rel="nofollow"><span class="tc-icon-chat-alt"></span> Envoyer à un(e) ami(e)</a></li>#}
  40.                 {% if modif_annonce is not defined or (modif_annonce is defined and not modif_annonce) %}
  41.                     <li class="tc-no-bg"><a href="{{ annonce.url_clean }}?signaler" rel="nofollow"><span class="tc-icon-warning"></span> Signaler</a></li>
  42.                 {% endif %}
  43.             </ul>
  44.         </nav>
  45.     </section>
  46.     {% if contact is defined and contact %}
  47.         {% include 'annonces/contact-annonce.html.twig' %}
  48.     {% endif %}
  49.     {% if envoiami is defined and envoiami %}
  50.         {% include 'annonces/envoyer-ami.html.twig' %}
  51.     {% endif %}
  52.     {% if signaler is defined and signaler %}
  53.         {% include 'annonces/signaler.html.twig' %}
  54.     {% endif %}
  55.         {% if reponses_by_user is defined and reponses_by_user %}
  56.         <div class="tc-block">
  57.             <ul>
  58.                 {% for idreponse,reponse in reponses_by_user %}
  59.                 <li>
  60.                     Vous avez répondu à l'annonceur <span>le {{ reponse.dateinsert }} à {{ reponse.heureinsert }}</span>
  61.                     {% if reponse.reponse is defined and reponse.reponse %}
  62.                         {{ reponse.reponse }}
  63.                     {% else %}
  64.                         <a href="{{ annonce.url_clean }}?voir-reponse={{ reponse.idreponse }}#reponse{{ reponse.idreponse }}">{{ reponse.debut_reponse }}</a>
  65.                     {% endif %}
  66.                 </li>
  67.                 {% endfor %}
  68.             </ul>
  69.             <p>Ces réponses ne sont visibles que par vous-même et l'annonceur.</p>
  70.         </div>
  71.         {% endif %}
  72.         {% if annonce_reponses is defined and annonce_reponses %}
  73.         <div class="tc-block">
  74.             <h3>{{ nb_reponses }} réponse(s) enregistrée(s) pour votre annonce</h3>
  75.             <ul>
  76.                 {% for idreponse,reponse in annonce_reponses %}
  77.                 <li>
  78.                     Réponse de :
  79.                     <a href="mailto:{{ reponse.lecteur_email }}">{{ reponse.lecteur_nom }}</a>
  80.                     <a href="mailto:{{ reponse.lecteur_email }}">{{ reponse.lecteur_email }}</a>
  81.                     {% if reponse.extranetuser is defined and reponse.extranetuser %}
  82.                         <span>(utilisateur <i>mon théâtre</i> {{ reponse.extranetuser.login }})</span>
  83.                     {% endif %}
  84.                     <span>le {{ reponse.dateinsert }} à {{ reponse.heureinsert }}</span>
  85.                     {% if reponse.reponse is defined and reponse.reponse %}
  86.                         {{ reponse.reponse }}
  87.                     {% else %}
  88.                         <a href="{{ annonce.url_clean }}?voir-reponse={{ reponse.idreponse }}#reponse{{ reponse.idreponse }}">
  89.                         {% if reponse.dateread is defined and reponse.dateread %}
  90.                             <span>[lu]</span> {{ reponse.debut_reponse }}
  91.                         {% else %}
  92.                             <span>[non lu]</span> {{ reponse.debut_reponse }}
  93.                         {% endif %}
  94.                         </a>
  95.                     {% endif %}
  96.                 </li>
  97.                 {% endfor %}
  98.             </ul>
  99.             <p>Ces réponses ne sont visibles que par vous-même et leurs auteurs respectifs.</p>
  100.         </div>
  101.         {% endif %}
  102.         <section class="tc-panel">
  103.             {% if annonce.typecontrat is defined and annonce.typecontrat %}
  104.             <div class="tc-panel-header">
  105.                 <h3>Type de contrat : {{ annonce.typecontrat }}</h3>
  106.             </div>
  107.             {% endif %}
  108.             <div class="tc-panel-body">
  109.                 <div class="tc-block">
  110.                     <div class="tc-neutral-color tc-block-body">
  111.                         <h5>Annonce #{{ annonce.idannonce }}</h5>
  112.                         <ul class="tc-default-list">
  113.                             <li>Postée le {{ annonce.dateinsert }} à {{ annonce.heureinsert }} par {{ annonce.nom }}
  114.                                 {% if modif_annonce is not defined or (modif_annonce is defined and not modif_annonce) %}
  115.                                 <span>( <a href="{{ annonce.url_clean }}?contact" rel="nofollow">contacter</a> )</span>
  116.                                 {% endif %}
  117.                             </li>
  118.                             {% if annonce.lieu is defined and annonce.lieu %}
  119.                                 <li>Lieu : {{ annonce.lieu }} {% if annonce.cp is defined and annonce.cp %}({{ annonce.cp }}){% endif %}</li>
  120.                             {% endif %}
  121.                             {% if annonce.site is defined and annonce.site %}
  122.                                 <li><strong>Site Internet</strong> : <a href="{{ annonce.site }}" onclick="window.open(this.href); return false;" rel="nofollow">{{ annonce.site }}</a></li>
  123.                             {% endif %}
  124.                             {% if annonce.adresse is defined and annonce.adresse %}
  125.                                 <li>Adresse postale : {{ annonce.adresse }} / {{ annonce.cp }} {% if annonce.lieu is defined and annonce.lieu %}/ {{ annonce.lieu }}{% endif %} / {{ annonce.pays }}</li>
  126.                             {% endif %}
  127.                             {% if annonce.dateupdate is defined and annonce.dateupdate %}
  128.                                 <li>Cette annonce a été modifiée le {{ annonce.dateupdate }} à {#{{ annonce.heureupdate }}#}</li>
  129.                             {% endif %}
  130.                             {% if annonce_ancienne is defined and annonce_ancienne %}
  131.                                 <li>Information : La dernière mise à jour de cette annonce date de plus de 30 jours.</li>
  132.                             {% endif %}
  133.                         </ul>
  134.                     </div>
  135.                 </div>
  136.                 <div class="tc-block tc-block-article">
  137.                     <div class="tc-block-body">
  138.                         {{ annonce.description|raw }}
  139. {#                        {{ annonce.video_src|raw }}#}
  140.                     </div>
  141.                 </div>
  142.                 {% if annonce.url_fichier is defined and annonce.url_fichier %}
  143.                 <div class="tc-block ">
  144.                     <div class="tc-block-header">
  145.                         <h3 class="tc-neutral-color">Document(s) associé(s) : </h3>
  146.                     </div>
  147.                     <div class="tc-block-body">
  148.                         <a href="{{ annonce.url_fichier }}" onclick="window.open(this.href); return false;">
  149.                             <figure style="min-width:30px" class="tc-media-thumbnail">
  150.                                 <img src="/images/vignettes/{{ annonce.typefichier }}.png" alt=""/>
  151.                             </figure>
  152.                             <div class="tc-block-body-text">Document joint</div>
  153.                         </a>
  154.                     </div>
  155.                 </div>
  156.                 {% endif %}
  157.             </div>
  158.         </section>
  159.         {% endif %}
  160.         {% if error_annonce is not defined or (error_annonce is defined and not error_annonce) %}
  161.             <!-- {if:geocodable}
  162.             <section class="tc-panel ">
  163.                 <div class="tc-panel-header">
  164.                     <h3>Localisation de l'annonceur</h3>
  165.                 </div>
  166.                 <div class="tc-panel-body">
  167.                     <div class="tc-block">
  168.                         <div class="tc-block-body">
  169.                            <flexy:include src="includes/google.inc.html" />
  170.                         </div>
  171.                     </div>
  172.                 </div>
  173.             </section>
  174.             {end:} -->
  175.         {% endif %}
  176.     </main>
  177. {% endblock %}