added expanded Row for bund project table
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<app-data-table
|
||||
[columns]="columns"
|
||||
[data]="elements()"
|
||||
[detailTemplate]="expandedProject"
|
||||
[queryParamSortKey]="queryParamKeys.sortBy"
|
||||
[queryParamSortDirectionKey]="queryParamKeys.sortDirection" />
|
||||
|
||||
@@ -106,3 +107,60 @@
|
||||
}
|
||||
</div>
|
||||
</ng-template>
|
||||
<ng-template #expandedProject let-project>
|
||||
<section class="project-panel" aria-label="Weitere Projektdetails">
|
||||
<div class="project-panel__content">
|
||||
@if (project.highlight?.topic.length > 0) {
|
||||
<article class="panel-field panel-field--full">
|
||||
<h4 class="panel-field__label">Titel</h4>
|
||||
<app-highlighted-text
|
||||
class="panel-field__text"
|
||||
[content]="project.topic"
|
||||
[highlights]="
|
||||
getHighlightTerms(extractHighlightTerms(project.highlight?.topic))
|
||||
" />
|
||||
</article>
|
||||
}
|
||||
|
||||
@if (project.highlight?.recipient.length > 0) {
|
||||
<article class="panel-field panel-field--full">
|
||||
<h4 class="panel-field__label">Zuwendungsempfänger</h4>
|
||||
<app-highlighted-text
|
||||
class="panel-field__text"
|
||||
[content]="project.recipient"
|
||||
[highlights]="
|
||||
getHighlightTerms(
|
||||
extractHighlightTerms(project.highlight?.recipient)
|
||||
)
|
||||
" />
|
||||
</article>
|
||||
}
|
||||
@if (project.highlight?.joint_project.length > 0) {
|
||||
<article class="panel-field panel-field--full">
|
||||
<h4 class="panel-field__label">Verbundprojekt</h4>
|
||||
<app-highlighted-text
|
||||
class="panel-field__text"
|
||||
[content]="project.joint_project"
|
||||
[highlights]="
|
||||
getHighlightTerms(
|
||||
extractHighlightTerms(project.highlight?.joint_project)
|
||||
)
|
||||
" />
|
||||
</article>
|
||||
}
|
||||
@if (project.highlight?.executing_agency.length > 0) {
|
||||
<article class="panel-field panel-field--full">
|
||||
<h4 class="panel-field__label">Ausführende Stelle</h4>
|
||||
<app-highlighted-text
|
||||
class="panel-field__text"
|
||||
[content]="project.executing_agency"
|
||||
[highlights]="
|
||||
getHighlightTerms(
|
||||
extractHighlightTerms(project.highlight?.executing_agency)
|
||||
)
|
||||
" />
|
||||
</article>
|
||||
}
|
||||
</div>
|
||||
</section>
|
||||
</ng-template>
|
||||
|
||||
Reference in New Issue
Block a user