Skip to content

Commit

Permalink
draft agent form template
Browse files Browse the repository at this point in the history
  • Loading branch information
lukavdplas committed Aug 6, 2024
1 parent c6b9331 commit ff44cf5
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
20 changes: 19 additions & 1 deletion frontend/src/app/data-entry/agent-form/agent-form.component.html
Original file line number Diff line number Diff line change
@@ -1 +1,19 @@
<p>agent-form works!</p>
<ng-container *ngIf="data$ | async as data">
<ng-container *ngIf="data.agentDescription as agentDescription">
<h1 class="mb-4">
<lc-icon [icon]="dataIcons.person" />
{{agentDescription.name}}
<span class="text-secondary">
({{agentDescription.source.name}})
</span>
</h1>

<p class="lead mb-4" *ngIf="agentDescription.description">
{{agentDescription.description}}
</p>

<p class="alert alert-warning">
This form is not implemented yet!
</p>
</ng-container>
</ng-container>
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { SharedModule } from '@shared/shared.module';
AgentFormComponent
],
imports: [
SharedModule
SharedModule,
],
exports: [
AgentFormComponent,
Expand Down
3 changes: 3 additions & 0 deletions frontend/src/app/data-entry/data-entry.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,22 @@ import { SourcesComponent } from "./sources/sources.component";
import { GiftFormModule } from "./gift-form/gift-form.module";
import { LetterFormModule } from "./letter-form/letter-form.module";
import { LocationFormModule } from "./location-form/location-form.module";
import { AgentFormModule } from "./agent-form/agent-form.module";

@NgModule({
declarations: [
SourcesComponent,
],
imports: [
SharedModule,
AgentFormModule,
GiftFormModule,
LetterFormModule,
LocationFormModule,
],
exports: [
SourcesComponent,
AgentFormModule,
GiftFormModule,
LetterFormModule,
LocationFormModule,
Expand Down

0 comments on commit ff44cf5

Please sign in to comment.