retapage accueil, gestion de Demandes
This commit is contained in:
parent
d777221d0d
commit
f4c5e048ff
26 changed files with 2498 additions and 292 deletions
35
templates/public/rss/demandes.xml.twig
Normal file
35
templates/public/rss/demandes.xml.twig
Normal file
|
@ -0,0 +1,35 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title>Mon Commerce OSM - Demandes</title>
|
||||
<link>https://{{ base_url }}</link>
|
||||
<description>Flux RSS des demandes de modification de commerces sur OpenStreetMap</description>
|
||||
<language>fr-fr</language>
|
||||
<pubDate>{{ "now"|date("D, d M Y H:i:s O") }}</pubDate>
|
||||
<atom:link href="https://{{ base_url }}{{ path('app_public_rss_demandes') }}" rel="self" type="application/rss+xml" />
|
||||
|
||||
{% for demande in demandes %}
|
||||
<item>
|
||||
<title>{{ demande.query }}</title>
|
||||
<link>https://{{ base_url }}{{ path('app_admin_demande_edit', {'id': demande.id}) }}</link>
|
||||
<guid>https://{{ base_url }}{{ path('app_admin_demande_edit', {'id': demande.id}) }}</guid>
|
||||
<pubDate>{{ demande.createdAt|date("D, d M Y H:i:s O") }}</pubDate>
|
||||
<description>
|
||||
<![CDATA[
|
||||
<p><strong>Nom du commerce:</strong> {{ demande.query }}</p>
|
||||
{% if demande.email %}
|
||||
<p><strong>Email:</strong> {{ demande.email }}</p>
|
||||
{% endif %}
|
||||
<p><strong>Statut:</strong> {{ demande.status }}</p>
|
||||
{% if demande.insee %}
|
||||
<p><strong>Code INSEE:</strong> {{ demande.insee }}</p>
|
||||
{% endif %}
|
||||
{% if demande.lastContactAttempt %}
|
||||
<p><strong>Dernière tentative de contact:</strong> {{ demande.lastContactAttempt|date("d/m/Y H:i:s") }}</p>
|
||||
{% endif %}
|
||||
]]>
|
||||
</description>
|
||||
</item>
|
||||
{% endfor %}
|
||||
</channel>
|
||||
</rss>
|
Loading…
Add table
Add a link
Reference in a new issue