-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #158 from CentreForDigitalHumanities/feature/histo…
…rical-figures Feature/historical figures
- Loading branch information
Showing
22 changed files
with
524 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...entry/agent-form/agent-historical-person-form/agent-historical-person-form.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<fieldset *ngIf="isGroup$ | async as isGroup"> | ||
<ng-container > | ||
<legend> | ||
{{ isGroup ? "Historical persons" : "Historical person" }} | ||
</legend> | ||
<p class="form-text"> | ||
{{ | ||
isGroup | ||
? "Pick one or more historical persons that are represented by this agent in this source." | ||
: "Pick an historical person that is represented by this agent in this source." | ||
}} | ||
</p> | ||
</ng-container> | ||
<lc-historical-person-select | ||
*ngIf="historicalPersonOptions$ | async as options" | ||
[formControl]="form.controls.describes" | ||
[options]="options" | ||
[multiple]="isGroup" | ||
/> | ||
</fieldset> |
Empty file.
25 changes: 25 additions & 0 deletions
25
...ry/agent-form/agent-historical-person-form/agent-historical-person-form.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { ComponentFixture, TestBed } from "@angular/core/testing"; | ||
|
||
import { AgentHistoricalPersonFormComponent } from "./agent-historical-person-form.component"; | ||
import { FormService } from "../../shared/form.service"; | ||
import { SharedTestingModule } from "@shared/shared-testing.module"; | ||
|
||
describe("AgentHistoricalPersonFormComponent", () => { | ||
let component: AgentHistoricalPersonFormComponent; | ||
let fixture: ComponentFixture<AgentHistoricalPersonFormComponent>; | ||
|
||
beforeEach(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [AgentHistoricalPersonFormComponent], | ||
imports: [SharedTestingModule], | ||
providers: [FormService], | ||
}); | ||
fixture = TestBed.createComponent(AgentHistoricalPersonFormComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it("should create", () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
Oops, something went wrong.