orleans: add cell for Tradeo demands (#76134)
gitea/publik-base-theme/pipeline/head This commit looks good Details

This commit is contained in:
Serghei Mihai 2023-03-28 13:50:35 +02:00
parent 56abb19ef0
commit 96923c19dd
2 changed files with 44 additions and 0 deletions

View File

@ -2,5 +2,29 @@
"label": "Orléans",
"variables": {
"theme_color": "#34697D"
},
"settings": {
"combo": {
"JSON_CELL_TYPES.update": {
"tradeo": {
"form": [
{
"label": "Titre de la cellule",
"varname": "title",
"required": true
},
{
"label": "URL du connecteur",
"varname": "connector_url",
"required": true
}
],
"name": "Demandes Tradeo",
"cache_duration": 60,
"log_errors": false,
"url": "{{ connector_url }}?sub={{user_nameid}}"
}
}
}
}
}

View File

@ -0,0 +1,20 @@
<h2>{{ title }}</h2>
{% if not json.err %}
<div class="links-list list-of-forms">
<ul>
{% for item in json.data %}
<li>
<a href="{{ item.url }}">
<span class="form-title">{{ item.name }}</span>
<span class="form-number">{{ item.datetime|datetime }}</span>
<span class="form-status">{{ item.status }}</span>
</a>
</li>
{% endfor %}
</ul>
</div>
{% else %}
<div class="cell--body">
<p class="empty-message">Il ny a aucune demande en cours.</p>
</div>
{% endif %}