Move certificate generation into its own "Genera Documenti" card
Was a header action button; now a dedicated card styled like Informazioni generali, placed right after it, so the association detail page reads as: general info, generate documents, soci, accounts. Verified live: card renders in the right place/style and the download still works from its new location. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017hQcuUQFue2bFvrYw2UQhK
This commit is contained in:
parent
7c3225f06e
commit
49f57045e2
@ -151,14 +151,6 @@ export default function AssociationDetailPage() {
|
|||||||
description={`${association.associates?.length ?? 0} soci registrati`}
|
description={`${association.associates?.length ?? 0} soci registrati`}
|
||||||
actions={
|
actions={
|
||||||
<>
|
<>
|
||||||
<Button variant="outline" onClick={handleDownloadAttestato} disabled={generatingAttestato}>
|
|
||||||
{generatingAttestato ? (
|
|
||||||
<Loader2 className="size-4 animate-spin" />
|
|
||||||
) : (
|
|
||||||
<FileDown className="size-4" />
|
|
||||||
)}
|
|
||||||
Genera Certificato di Adesione
|
|
||||||
</Button>
|
|
||||||
<EditAssociationDialog association={association} onSaved={setAssociation} />
|
<EditAssociationDialog association={association} onSaved={setAssociation} />
|
||||||
<ConfirmDialog
|
<ConfirmDialog
|
||||||
trigger={
|
trigger={
|
||||||
@ -179,6 +171,22 @@ export default function AssociationDetailPage() {
|
|||||||
|
|
||||||
<AssociationInfoCard association={association} />
|
<AssociationInfoCard association={association} />
|
||||||
|
|
||||||
|
<Card>
|
||||||
|
<CardHeader>
|
||||||
|
<CardTitle>Genera Documenti</CardTitle>
|
||||||
|
</CardHeader>
|
||||||
|
<CardContent>
|
||||||
|
<Button variant="outline" onClick={handleDownloadAttestato} disabled={generatingAttestato}>
|
||||||
|
{generatingAttestato ? (
|
||||||
|
<Loader2 className="size-4 animate-spin" />
|
||||||
|
) : (
|
||||||
|
<FileDown className="size-4" />
|
||||||
|
)}
|
||||||
|
Genera Certificato di Adesione
|
||||||
|
</Button>
|
||||||
|
</CardContent>
|
||||||
|
</Card>
|
||||||
|
|
||||||
<Card>
|
<Card>
|
||||||
<CardHeader className="flex flex-row items-center justify-between">
|
<CardHeader className="flex flex-row items-center justify-between">
|
||||||
<CardTitle>Soci ({association.associates?.length ?? 0})</CardTitle>
|
<CardTitle>Soci ({association.associates?.length ?? 0})</CardTitle>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user