+
+
+
+ setDraft((c) => ({ ...c, name: e.target.value }))}
+ placeholder="Veille IA hebdomadaire"
+ style={inputStyle}
+ />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ setDraft((c) => ({ ...c, topics: e.target.value }))}
+ placeholder="LLM, RAG, agents, fine-tuning"
+ style={inputStyle}
+ />
+
+
+
+ {/* Schedule section */}
+
+
Planification
+
+
+
+
+
+
+
+ {draft.schedule_type !== 'none' && (
+
+
+ setDraft((c) => ({ ...c, schedule_time: e.target.value }))}
+ placeholder="08:00"
+ style={inputStyle}
+ />
+
+ )}
+
+
+ {draft.schedule_type === 'weekly' && (
+
+
+
+ {WEEK_DAYS.map((day) => {
+ const checked = draft.schedule_days.includes(day.id);
+ return (
+
+ );
+ })}
+
+
+ )}
+
+
+ {/* Email groups section */}
+
+
Groupes email
+ {emailGroups.length === 0 ? (
+
+ Aucun groupe email disponible. Créez-en un depuis la page Email Groups.
+
+ ) : (
+
+ {emailGroups.map((group) => {
+ const selected = draft.email_group_ids.includes(group.id);
+ return (
+
+ );
+ })}
+
+ )}
+
+
+ {/* Actions */}
+