256 lines
8.7 KiB
HTML
256 lines
8.7 KiB
HTML
<div class="detail-page">
|
|
<div class="page-header">
|
|
<div class="breadcrumb">
|
|
<span>DFG Projekte</span>
|
|
<mat-icon>chevron_right</mat-icon>
|
|
<span>Projektdetails</span>
|
|
</div>
|
|
</div>
|
|
|
|
@if (dfgProject) {
|
|
<div class="project-hero">
|
|
<div class="hero-content">
|
|
<div class="eyebrow">
|
|
<span class="project-badge">DFG Projekt</span>
|
|
<span class="project-id">ID: {{ dfgProject.id }}</span>
|
|
</div>
|
|
<h1>{{ dfgProject.title }}</h1>
|
|
@if (dfgProject.project_identifier) {
|
|
<p class="project-identifier">
|
|
<strong>{{ dfgProject.project_identifier.split('-')[0] }}</strong>
|
|
</p>
|
|
}
|
|
<div class="hero-actions">
|
|
<div
|
|
class="status-badge"
|
|
[style.background-color]="
|
|
getStatusColor(getStatusDisplay(dfgProject.funding_end_date))
|
|
">
|
|
<mat-icon>circle</mat-icon>
|
|
<span>{{ getStatusDisplay(dfgProject.funding_end_date) }}</span>
|
|
</div>
|
|
@if (dfgProject.link) {
|
|
<a [href]="dfgProject.link" target="_blank" class="primary-action">
|
|
<mat-icon>open_in_new</mat-icon>
|
|
<span>Zum Projekt</span>
|
|
</a>
|
|
}
|
|
@if (dfgProject.website) {
|
|
<a
|
|
[href]="dfgProject.website"
|
|
target="_blank"
|
|
class="secondary-action">
|
|
<mat-icon>language</mat-icon>
|
|
<span>Webseite</span>
|
|
</a>
|
|
}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="metrics-grid">
|
|
<div class="metric-item">
|
|
<mat-icon>calendar_today</mat-icon>
|
|
<div class="metric-content">
|
|
<strong>{{ dfgProject.funding_start_date || 'N/A' }}</strong>
|
|
<span>Förderbeginn</span>
|
|
</div>
|
|
</div>
|
|
<div class="metric-item">
|
|
<mat-icon>event_busy</mat-icon>
|
|
<div class="metric-content">
|
|
<strong>{{ getFundingStatus(dfgProject.funding_end_date) }}</strong>
|
|
<span>Förderende</span>
|
|
</div>
|
|
</div>
|
|
<div class="metric-item">
|
|
<mat-icon>access_time</mat-icon>
|
|
<div class="metric-content">
|
|
<strong>{{ getStatusDisplay(dfgProject.funding_end_date) }}</strong>
|
|
<span>Status</span>
|
|
</div>
|
|
</div>
|
|
<!-- @if (dfgProject.subject_area) {
|
|
<div class="metric-item">
|
|
<mat-icon>category</mat-icon>
|
|
<div class="metric-content">
|
|
<strong>{{ dfgProject.subject_area }}</strong>
|
|
<span>Fachliche Zuordnung</span>
|
|
</div>
|
|
</div>
|
|
} -->
|
|
@if (dfgProject.dfg_procedure) {
|
|
<div class="metric-item">
|
|
<mat-icon>gavel</mat-icon>
|
|
<div class="metric-content">
|
|
<strong>{{ dfgProject.dfg_procedure }}</strong>
|
|
<span>DFG Verfahren</span>
|
|
</div>
|
|
</div>
|
|
}
|
|
<!-- @if (dfgProject.funding_type) {
|
|
<div class="metric-item">
|
|
<mat-icon>paid</mat-icon>
|
|
<div class="metric-content">
|
|
<strong>{{ dfgProject.funding_type }}</strong>
|
|
<span>Förderung</span>
|
|
</div>
|
|
</div>
|
|
} -->
|
|
@if (dfgProject.international_reference) {
|
|
<div class="metric-item">
|
|
<mat-icon>public</mat-icon>
|
|
<div class="metric-content">
|
|
<strong>{{ dfgProject.international_reference }}</strong>
|
|
<span>Internationaler Bezug</span>
|
|
</div>
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="content-grid">
|
|
<main class="main-content">
|
|
@if (dfgProject.description) {
|
|
<mat-card appearance="outlined" class="card">
|
|
<div class="section-header">
|
|
<mat-icon>description</mat-icon>
|
|
<h2>Beschreibung</h2>
|
|
</div>
|
|
<p class="description-text">{{ dfgProject.description }}</p>
|
|
</mat-card>
|
|
}
|
|
<!-- Beteiligte Personen -->
|
|
<mat-card appearance="outlined" class="card">
|
|
<div class="section-header">
|
|
<mat-icon>people</mat-icon>
|
|
<h2>Beteiligte Personen</h2>
|
|
<span class="count-badge">{{ getAssociatedPersons().length }}</span>
|
|
</div>
|
|
@if (getAssociatedPersons().length > 0) {
|
|
<div class="person-grid">
|
|
@for (person of getAssociatedPersons(); track person) {
|
|
<div (click)="searchForPersonName(person)" class="person-item">
|
|
<div class="avatar">{{ getInitials(person) }}</div>
|
|
<div class="person-name">{{ person }}</div>
|
|
</div>
|
|
}
|
|
</div>
|
|
} @else {
|
|
<div class="empty-state">Keine Personen gefunden.</div>
|
|
}
|
|
</mat-card>
|
|
|
|
<!-- Beteiligte Institutionen -->
|
|
<mat-card appearance="outlined" class="card">
|
|
<div class="section-header">
|
|
<mat-icon>business</mat-icon>
|
|
<h2>Beteiligte Institutionen</h2>
|
|
<span class="count-badge">{{ getInstitutions().length }}</span>
|
|
</div>
|
|
@if (getInstitutions().length > 0) {
|
|
<div class="institution-grid">
|
|
@for (institution of getInstitutions(); track institution) {
|
|
<div
|
|
(click)="searchForInstitutionName(institution)"
|
|
class="institution-item">
|
|
<mat-icon>apartment</mat-icon>
|
|
<span>{{ institution }}</span>
|
|
</div>
|
|
}
|
|
</div>
|
|
} @else {
|
|
<div class="empty-state">Keine Institutionen gefunden.</div>
|
|
}
|
|
</mat-card>
|
|
<!-- Teilprojekt -->
|
|
<!-- @if (dfgProject.subproject_of) {
|
|
<mat-card appearance="outlined" class="card">
|
|
<div class="section-header">
|
|
<mat-icon>account_tree</mat-icon>
|
|
<h2>Teilprojekt</h2>
|
|
</div>
|
|
<dl class="details-list">
|
|
<div class="detail-row">
|
|
<dt>Teilprojekt zu</dt>
|
|
<dd>{{ dfgProject.subproject_of }}</dd>
|
|
</div>
|
|
</dl>
|
|
</mat-card>
|
|
} -->
|
|
</main>
|
|
|
|
<aside class="sidebar">
|
|
<!-- Projektdetails -->
|
|
<mat-card appearance="outlined" class="card details-card">
|
|
<div class="section-header">
|
|
<mat-icon>info</mat-icon>
|
|
<h2>Projektdetails</h2>
|
|
</div>
|
|
<dl class="details-list">
|
|
<div class="detail-row">
|
|
<dt>Projekt ID</dt>
|
|
<dd>{{ dfgProject.id || 'N/A' }}</dd>
|
|
</div>
|
|
<div class="detail-row">
|
|
<dt>Titel</dt>
|
|
<dd>{{ dfgProject.title || 'N/A' }}</dd>
|
|
</div>
|
|
<div class="detail-row">
|
|
<dt>Projektkennung</dt>
|
|
<dd>{{ dfgProject.project_identifier || 'N/A' }}</dd>
|
|
</div>
|
|
<div class="detail-row">
|
|
<dt>Fachliche Zuordnung</dt>
|
|
<dd>{{ dfgProject.subject_area || 'N/A' }}</dd>
|
|
</div>
|
|
<div class="detail-row">
|
|
<dt>DFG-Verfahren</dt>
|
|
<dd>{{ dfgProject.dfg_procedure || 'N/A' }}</dd>
|
|
</div>
|
|
<!-- <div class="detail-row">
|
|
<dt>Förderung</dt>
|
|
<dd>{{ dfgProject.funding_type || 'N/A' }}</dd>
|
|
</div> -->
|
|
<div class="detail-row">
|
|
<dt>Laufzeit</dt>
|
|
<dd>{{ getDuration() }}</dd>
|
|
</div>
|
|
@if (dfgProject.subproject_of) {
|
|
<div class="detail-row">
|
|
<dt>Teilprojekt von</dt>
|
|
<dd>{{ dfgProject.subproject_of }}</dd>
|
|
</div>
|
|
}
|
|
@if (dfgProject.international_reference) {
|
|
<div class="detail-row">
|
|
<dt>Internationaler Bezug</dt>
|
|
<dd>{{ dfgProject.international_reference }}</dd>
|
|
</div>
|
|
}
|
|
@if (dfgProject.website) {
|
|
<div class="detail-row">
|
|
<dt>Webseite</dt>
|
|
<dd>
|
|
<a
|
|
[href]="dfgProject.website"
|
|
target="_blank"
|
|
class="external-link"
|
|
>{{ dfgProject.website }}</a
|
|
>
|
|
</dd>
|
|
</div>
|
|
}
|
|
</dl>
|
|
</mat-card>
|
|
</aside>
|
|
</div>
|
|
} @else {
|
|
<div class="error-container">
|
|
<div class="error-state">
|
|
<mat-icon>error_outline</mat-icon>
|
|
<p>DFG Projekt nicht gefunden.</p>
|
|
</div>
|
|
</div>
|
|
}
|
|
</div>
|