Update TemplateEditor.tsx

This commit is contained in:
fcarraUniSa
2025-12-11 14:43:24 +01:00
committed by GitHub
parent 49b06dc8c9
commit 89dc9d0509

View File

@@ -217,6 +217,18 @@ const Editor: React.FC<Props> = ({ initialTemplate, onBack, onSave }) => {
{nameError && <p className="text-red-500 text-xs mt-1">{nameError}</p>} {nameError && <p className="text-red-500 text-xs mt-1">{nameError}</p>}
<p className="text-xs text-slate-400 mt-1">Deve essere univoco. Usato per generare la chiave DB: <span className="font-mono bg-slate-100 px-1">{generateTemplateKey(name) || '...'}</span></p> <p className="text-xs text-slate-400 mt-1">Deve essere univoco. Usato per generare la chiave DB: <span className="font-mono bg-slate-100 px-1">{generateTemplateKey(name) || '...'}</span></p>
</div> </div>
<div>
<label className="block text-sm font-semibold text-slate-700 mb-1">Descrizione</label>
<textarea
value={description}
onChange={e => setDescription(e.target.value)}
className="w-full px-3 py-2 border border-slate-300 rounded-md focus:ring-2 focus:ring-brand-500 focus:border-brand-500 outline-none bg-white resize-none text-sm"
placeholder="Note interne (es. Usato per i nuovi iscritti)"
rows={2}
/>
</div>
<div> <div>
<label className="block text-sm font-semibold text-slate-700 mb-1">Oggetto Email</label> <label className="block text-sm font-semibold text-slate-700 mb-1">Oggetto Email</label>
<input <input