Julien Fastré fb806a9579
Add title and creation date to export data handling
Enhanced export functionality by including `title` and `createdDate` in data passed to the Vue app. Updated controllers, templates, and components to handle and display the new fields, improving export file naming and user interface. Removed a debug `dump` call for cleaner code.
2025-03-13 17:36:47 +01:00

28 lines
876 B
Twig

{% extends '@ChillMain/layout.html.twig' %}
{% block js %}
{{ parent() }}
{{ encore_entry_script_tags('page_download_exports') }}
{% endblock %}
{% block css %}
{{ parent() }}
{{ encore_entry_link_tags('page_download_exports') }}
{% endblock %}
{% block content %}
<div id="app"
data-export-generation-id="{{ exportGeneration.id | escape('html_attr') }}"
data-export-generation-date="{{ exportGeneration.createdAt.format('Ymd-His') }}"
data-export-title="{{ export.title|trans }}"
></div>
<ul class="sticky-form-buttons record_actions">
<li class="cancel">
<a href="{{ chill_return_path_or('chill_main_export_index') }}" class="btn btn-cancel">
{{ 'export.generation.Come back later'|trans|chill_return_path_label }}
</a>
</li>
</ul>
{% endblock content %}