2025-12-04 21:07:18 +03:30
|
|
|
<p-card>
|
|
|
|
|
<ng-template #title>
|
|
|
|
|
<ng-container [ngTemplateOutlet]="header">
|
|
|
|
|
<div class="flex items-center gap-10 justify-between">
|
2026-05-04 20:02:10 +03:30
|
|
|
<div class="flex items-center gap-2">
|
|
|
|
|
@if (backRoute) {
|
|
|
|
|
<p-button icon="pi pi-arrow-right" aria-label="بازگشت" size="small" outlined [routerLink]="backRoute" />
|
|
|
|
|
}
|
|
|
|
|
<h5 class="font-bold py-1.5">{{ cardTitle }}</h5>
|
|
|
|
|
</div>
|
2025-12-04 21:07:18 +03:30
|
|
|
<div class="flex items-center gap-2 shrink-0">
|
2026-04-23 01:22:44 +03:30
|
|
|
<ng-container [ngTemplateOutlet]="moreActions"></ng-container>
|
2026-04-25 15:19:19 +03:30
|
|
|
@if (showRefresh) {
|
2026-05-04 20:02:10 +03:30
|
|
|
<p-button icon="pi pi-refresh" outlined size="small" (click)="refresh()"></p-button>
|
2026-04-25 15:19:19 +03:30
|
|
|
}
|
2025-12-04 21:07:18 +03:30
|
|
|
@if (editable) {
|
|
|
|
|
<button
|
|
|
|
|
pButton
|
|
|
|
|
type="button"
|
|
|
|
|
[icon]="`pi ${editMode ? 'pi-times' : 'pi-pencil'}`"
|
2026-05-04 20:02:10 +03:30
|
|
|
outlined
|
|
|
|
|
size="small"
|
2025-12-04 21:07:18 +03:30
|
|
|
(click)="onEditClick()"
|
|
|
|
|
></button>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</ng-container>
|
|
|
|
|
<hr />
|
|
|
|
|
</ng-template>
|
|
|
|
|
<ng-content></ng-content>
|
|
|
|
|
</p-card>
|