{# # ============================================================================ # PAGE: MOODIA CONFIGURATION # ============================================================================ # # Formulaire de configuration avec split-view et preview live. # Utilise les composants Atomic Design : card, page-header, button, icon. # # ============================================================================ # STIMULUS CONTROLLER # ============================================================================ # # data-controller="moodia--config" # Targets: form, aiButton, submitBtn, data, preview, previewTitle, # previewPublic, previewLevel, previewLanguage, previewDuration, previewApproach # # ============================================================================ # DONNÉES REQUISES # ============================================================================ # # | Variable | Type | Description | # |-------------------|--------|--------------------------------| # | form | Form | Formulaire Symfony | # | mode | string | 'pdf' ou 'prompt' | # | prompt | string | Prompt initial (si mode=prompt)| # | estimatedDuration | int | Durée estimée du PDF | # # ============================================================================ #} {% extends 'base.html.twig' %} {% block title %}Configuration - Moodia{% endblock %} {% block meta_description %}Configurez les paramètres de votre cours Moodle : titre, public, niveau, durée et objectifs pédagogiques.{% endblock %} {% block body %}
Minimum 20 caractères
{% endblock %} {% endembed %} {# ====================================================== Section 5 : Instructions additionnelles (Molecule: card collapsible) ====================================================== #} {% embed '_molecules/card/card.html.twig' with { title: 'Instructions additionnelles', subtitle: 'Optionnel', icon: 'chat', iconColor: 'gray', collapsible: true, collapsed: true, padding: 'md', form: form } %} {% block body %} {{ form_widget(form.additionalInstructions, { 'attr': { 'class': 'w-full min-h-[80px] px-4 py-3 text-base border border-gray-200 rounded-xl focus:border-primary focus:ring-2 focus:ring-primary/20 transition-all resize-none', 'placeholder': 'Instructions spécifiques pour personnaliser la génération...' } }) }} {% endblock %} {% endembed %} {# ====================================================== Actions (Atoms: button) ====================================================== #}