|
|
|
@@ -502,26 +502,36 @@ export default function AdminDashboard() { |
|
|
|
{EXTERNAL_LINK_ENABLED && <option value="EXTERNAL_LINK">External Link</option>}
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
{isEditing.cardType === 'EXTERNAL_LINK' ? (
|
|
|
|
<>
|
|
|
|
{isEditing.cardType === 'EXTERNAL_LINK' ? (
|
|
|
|
<>
|
|
|
|
<div>
|
|
|
|
<label className="block text-sm font-semibold text-gray-800 mb-1">URL</label>
|
|
|
|
<input
|
|
|
|
type="url"
|
|
|
|
value={isEditing.actionUrl || ''}
|
|
|
|
onChange={e => setIsEditing({ ...isEditing, actionUrl: e.target.value })}
|
|
|
|
className={inputClasses}
|
|
|
|
placeholder="https://esempio.it/pagina"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<label className="block text-sm font-semibold text-gray-800 mb-1">Testo del link</label>
|
|
|
|
<input
|
|
|
|
type="text"
|
|
|
|
value={isEditing.shortDescription || ''}
|
|
|
|
onChange={e => setIsEditing({ ...isEditing, shortDescription: e.target.value })}
|
|
|
|
className={inputClasses}
|
|
|
|
placeholder="https://esempio.it/pagina"
|
|
|
|
placeholder="es. Visita il sito ufficiale"
|
|
|
|
/>
|
|
|
|
<p className="text-xs text-gray-500 mt-1">Aprendo la card, il testo sarà cliccabile e porterà a questo indirizzo.</p>
|
|
|
|
</>
|
|
|
|
) : (
|
|
|
|
<>
|
|
|
|
<label className="block text-sm font-semibold text-gray-800 mb-1">Short Description</label>
|
|
|
|
<textarea value={isEditing.shortDescription || ''} onChange={e => setIsEditing({ ...isEditing, shortDescription: e.target.value })} className={`${inputClasses} h-24 resize-none`} placeholder="Brief summary..." />
|
|
|
|
</>
|
|
|
|
)}
|
|
|
|
</div>
|
|
|
|
<p className="text-xs text-gray-500 mt-1">Testo visualizzato come link cliccabile nel modale. Se vuoto, viene mostrata l’URL stessa.</p>
|
|
|
|
</div>
|
|
|
|
</>
|
|
|
|
) : (
|
|
|
|
<div>
|
|
|
|
<label className="block text-sm font-semibold text-gray-800 mb-1">Short Description</label>
|
|
|
|
<textarea value={isEditing.shortDescription || ''} onChange={e => setIsEditing({ ...isEditing, shortDescription: e.target.value })} className={`${inputClasses} h-24 resize-none`} placeholder="Brief summary..." />
|
|
|
|
</div>
|
|
|
|
)}
|
|
|
|
<div className="bg-gray-50 p-3 rounded-lg border border-gray-200 space-y-3">
|
|
|
|
<label className="flex items-start gap-3 cursor-pointer">
|
|
|
|
<input
|
|
|
|
|