-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cb2-10112): Add subsequent UN numbers (#1348)
* feat(cb2-10112): allow addition of multiple UN numbers * fix(cb2-10211): fix duplicate error messages + global error service not focusing elements * feat(cb2-10032): better styling for readonly mode of tech records * feat(cb2-10032): add tc3 view mode component * feat(cb2-10032): tc2 inspections * feat(cb2-10032): remove validation for view control * fix(cb2-10174): update styling for edit component * feat(cb2-10032): remove expand/collapse notes temporarily * fix(cb2-10211): add appropriate warnings * fix(cb2-10211): fix interactions with global errors * fix(cb2-10211): update unit tests * fix(cb2-10211): disable add link when you cannot add the control * feat(cb2-10211): add custom view mode logic * feat(cb2-10211): add custom view * feat(cb2-10211): fix displaying of error messages * feat(cb2-10211): better UX * feat(cb2-10211): better form error displayed
- Loading branch information
1 parent
a13b08d
commit 5c06f5a
Showing
52 changed files
with
989 additions
and
344 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
2 changes: 1 addition & 1 deletion
2
src/app/forms/components/checkbox-group/checkbox-group.stories.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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,3 +29,11 @@ | |
flex-basis: content !important; | ||
} | ||
} | ||
|
||
.mb-0 { | ||
margin-bottom: 0; | ||
} | ||
|
||
.pt-2 { | ||
padding-top: 2rem; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,12 @@ | |
|
||
.border-b-0 { | ||
border-bottom: 0; | ||
} | ||
|
||
.table-cell { | ||
display: table-cell; | ||
} | ||
|
||
.w-0 { | ||
width: 1px; | ||
} |
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
36 changes: 36 additions & 0 deletions
36
...m-sections/adr-examiner-notes-history-edit/adr-examiner-notes-history-edit.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,36 @@ | ||
<ng-container *ngIf="control"> | ||
<ng-container *ngIf="getAdditionalExaminerNotes() as notes"> | ||
<label *ngIf="control.meta.label" class="govuk-label govuk-label--m" for="{{ control.meta.name }}"> | ||
{{ control.meta.label }} | ||
</label> | ||
|
||
<!-- Additional guidance notes --> | ||
<table class="govuk-table" *ngIf="notes.length > 0; else empty"> | ||
<tbody class="govuk-table__body"> | ||
<tr class="govuk-table__row"> | ||
<th scope="col" class="govuk-table__header whitespace-nowrap">Date</th> | ||
<th scope="col" class="govuk-table__header whitespace-nowrap">Created By</th> | ||
<th scope="col" class="govuk-table__header whitespace-nowrap">Notes</th> | ||
</tr> | ||
<ng-container *ngFor="let examinerNote of notes; let i = index; let isLast = last"> | ||
<tr class="govuk-table__row" *ngIf="i < 3"> | ||
<td class="govuk-table__cell break-words" [class.border-b-0]="i === 2 || isLast"> | ||
{{ examinerNote.createdAtDate | date : 'dd/MM/yyyy' | defaultNullOrEmpty }} | ||
</td> | ||
<td class="govuk-table__cell break-words" [class.border-b-0]="i === 2 || isLast">{{ examinerNote.lastUpdatedBy }}</td> | ||
<td class="govuk-table__cell break-words" [class.border-b-0]="i === 2 || isLast"> | ||
{{ examinerNote.note }} | ||
</td> | ||
</tr> | ||
</ng-container> | ||
</tbody> | ||
</table> | ||
<ng-template #empty> | ||
<dl class="govuk-summary-list" *ngIf="notes.length === 0"> | ||
<div class="govuk-summary-list__row"> | ||
<dt class="govuk-summary-list__key">No additional examiner notes history available</dt> | ||
</div> | ||
</dl> | ||
</ng-template> | ||
</ng-container> | ||
</ng-container> |
18 changes: 18 additions & 0 deletions
18
...m-sections/adr-examiner-notes-history-edit/adr-examiner-notes-history.component-edit.scss
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,18 @@ | ||
.m-0 { | ||
margin: 0; | ||
} | ||
|
||
.border-b-0 { | ||
border-bottom: 0; | ||
} | ||
|
||
.whitespace-nowrap { | ||
white-space: nowrap; | ||
} | ||
|
||
.line-clamp-5 { | ||
overflow: hidden; | ||
display: -webkit-box; | ||
-webkit-box-orient: vertical; | ||
-webkit-line-clamp: 5; | ||
} |
Oops, something went wrong.