Skip to content

Commit

Permalink
NRPT-171: Changes edit record flavour order (#450)
Browse files Browse the repository at this point in the history
  • Loading branch information
KitArmstrong authored Jun 25, 2020
1 parent 3b8203f commit 5b353f4
Show file tree
Hide file tree
Showing 8 changed files with 243 additions and 194 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,30 +162,36 @@ <h4>Documents</h4>
<section>
<div class="row mb-4">
<div class="col-2">
<h4 class="blue-header mb-0">NRCED Site Content</h4>
<span class="grey-subtext d-block">{{ nrcedPublishSubtext }}</span>
<h4 class="blue-header mb-0">LNG Site Content</h4>
<span class="grey-subtext d-block">{{ lngPublishSubtext }}</span>
</div>
<div class="col-4">
<mat-slide-toggle
name="publishNrced"
id="publishNrced"
formControlName="publishNrced"
(change)="togglePublish($event, 'nrced')"
[checked]="myForm.controls.publishNrced.value"
name="publishLng"
id="publishLng"
formControlName="publishLng"
(change)="togglePublish($event, 'lng')"
[checked]="myForm.controls.publishLng.value"
ngDefaultControl>
{{ myForm.controls.publishNrced.value ? 'Published' : 'Unpublished' }}
{{ myForm.controls.publishLng.value ? 'Published' : 'Unpublished' }}
</mat-slide-toggle>
<span class="grey-subtext d-block">*Changes made will take effect once you click "Update Record"</span>
</div>
</div>
<div class="flex-container">
<div class="label-pair">
<label for="recordName">Record Name</label>
<input name="recordName" id="recordName" type="text" formControlName="recordName" class="form-control" />
</div>
</div>
<div class="flex-container">
<div class="label-pair med">
<label for="nrcedSummary">Summary</label>
<label for="lngDescription">Description</label>
<textarea
name="nrcedSummary"
id="nrcedSummary"
name="lngDescription"
id="lngDescription"
type="text"
formControlName="nrcedSummary"
formControlName="lngDescription"
class="form-control"
rows="5"></textarea>
</div>
Expand All @@ -195,30 +201,30 @@ <h4 class="blue-header mb-0">NRCED Site Content</h4>
<section>
<div class="row mb-4">
<div class="col-2">
<h4 class="blue-header mb-0">LNG Site Content</h4>
<span class="grey-subtext d-block">{{ lngPublishSubtext }}</span>
<h4 class="blue-header mb-0">NRCED Site Content</h4>
<span class="grey-subtext d-block">{{ nrcedPublishSubtext }}</span>
</div>
<div class="col-4">
<mat-slide-toggle
name="publishLng"
id="publishLng"
formControlName="publishLng"
(change)="togglePublish($event, 'lng')"
[checked]="myForm.controls.publishLng.value"
name="publishNrced"
id="publishNrced"
formControlName="publishNrced"
(change)="togglePublish($event, 'nrced')"
[checked]="myForm.controls.publishNrced.value"
ngDefaultControl>
{{ myForm.controls.publishLng.value ? 'Published' : 'Unpublished' }}
{{ myForm.controls.publishNrced.value ? 'Published' : 'Unpublished' }}
</mat-slide-toggle>
<span class="grey-subtext d-block">*Changes made will take effect once you click "Update Record"</span>
</div>
</div>
<div class="flex-container">
<div class="label-pair med">
<label for="lngDescription">Description</label>
<label for="nrcedSummary">Summary</label>
<textarea
name="lngDescription"
id="lngDescription"
name="nrcedSummary"
id="nrcedSummary"
type="text"
formControlName="lngDescription"
formControlName="nrcedSummary"
class="form-control"
rows="5"></textarea>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,31 +173,37 @@ <h4>Documents</h4>
<section>
<div class="row mb-4">
<div class="col-2">
<h4 class="blue-header mb-0">NRCED Site Content</h4>
<span class="grey-subtext d-block">{{ nrcedPublishSubtext }}</span>
<h4 class="blue-header mb-0">LNG Site Content</h4>
<span class="grey-subtext d-block">{{ lngPublishSubtext }}</span>
</div>
<div class="col-4">
<mat-slide-toggle
name="publishNrced"
id="publishNrced"
formControlName="publishNrced"
(change)="togglePublish($event, 'nrced')"
[checked]="myForm.controls.publishNrced.value"
name="publishLng"
id="publishLng"
formControlName="publishLng"
(change)="togglePublish($event, 'lng')"
[checked]="myForm.controls.publishLng.value"
ngDefaultControl
>
{{ myForm.controls.publishNrced.value ? 'Published' : 'Unpublished' }}
{{ myForm.controls.publishLng.value ? 'Published' : 'Unpublished' }}
</mat-slide-toggle>
<span class="grey-subtext d-block">*Changes made will take effect once you click "Update Record"</span>
</div>
</div>
<div class="flex-container">
<div class="label-pair">
<label for="recordName">Record Name</label>
<input name="recordName" id="recordName" type="text" formControlName="recordName" class="form-control" />
</div>
</div>
<div class="flex-container">
<div class="label-pair med">
<label for="nrcedSummary">Summary</label>
<label for="lngDescription">Description</label>
<textarea
name="nrcedSummary"
id="nrcedSummary"
name="lngDescription"
id="lngDescription"
type="text"
formControlName="nrcedSummary"
formControlName="lngDescription"
class="form-control"
rows="5"
></textarea>
Expand All @@ -208,31 +214,31 @@ <h4 class="blue-header mb-0">NRCED Site Content</h4>
<section>
<div class="row mb-4">
<div class="col-2">
<h4 class="blue-header mb-0">LNG Site Content</h4>
<span class="grey-subtext d-block">{{ lngPublishSubtext }}</span>
<h4 class="blue-header mb-0">NRCED Site Content</h4>
<span class="grey-subtext d-block">{{ nrcedPublishSubtext }}</span>
</div>
<div class="col-4">
<mat-slide-toggle
name="publishLng"
id="publishLng"
formControlName="publishLng"
(change)="togglePublish($event, 'lng')"
[checked]="myForm.controls.publishLng.value"
name="publishNrced"
id="publishNrced"
formControlName="publishNrced"
(change)="togglePublish($event, 'nrced')"
[checked]="myForm.controls.publishNrced.value"
ngDefaultControl
>
{{ myForm.controls.publishLng.value ? 'Published' : 'Unpublished' }}
{{ myForm.controls.publishNrced.value ? 'Published' : 'Unpublished' }}
</mat-slide-toggle>
<span class="grey-subtext d-block">*Changes made will take effect once you click "Update Record"</span>
</div>
</div>
<div class="flex-container">
<div class="label-pair med">
<label for="lngDescription">Description</label>
<label for="nrcedSummary">Summary</label>
<textarea
name="lngDescription"
id="lngDescription"
name="nrcedSummary"
id="nrcedSummary"
type="text"
formControlName="lngDescription"
formControlName="nrcedSummary"
class="form-control"
rows="5"
></textarea>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,30 +164,36 @@ <h4>Documents</h4>
<section>
<div class="row mb-4">
<div class="col-2">
<h4 class="blue-header mb-0">NRCED Site Content</h4>
<span class="grey-subtext d-block">{{ nrcedPublishSubtext }}</span>
<h4 class="blue-header mb-0">LNG Site Content</h4>
<span class="grey-subtext d-block">{{ lngPublishSubtext }}</span>
</div>
<div class="col-4">
<mat-slide-toggle
name="publishNrced"
id="publishNrced"
formControlName="publishNrced"
(change)="togglePublish($event, 'nrced')"
[checked]="myForm.controls.publishNrced.value"
name="publishLng"
id="publishLng"
formControlName="publishLng"
(change)="togglePublish($event, 'lng')"
[checked]="myForm.controls.publishLng.value"
ngDefaultControl>
{{ myForm.controls.publishNrced.value ? 'Published' : 'Unpublished' }}
{{ myForm.controls.publishLng.value ? 'Published' : 'Unpublished' }}
</mat-slide-toggle>
<span class="grey-subtext d-block">*Changes made will take effect once you click "Update Record"</span>
</div>
</div>
<div class="flex-container">
<div class="label-pair">
<label for="recordName">Record Name</label>
<input name="recordName" id="recordName" type="text" formControlName="recordName" class="form-control" />
</div>
</div>
<div class="flex-container">
<div class="label-pair med">
<label for="nrcedSummary">Summary</label>
<label for="lngDescription">Description</label>
<textarea
name="nrcedSummary"
id="nrcedSummary"
name="lngDescription"
id="lngDescription"
type="text"
formControlName="nrcedSummary"
formControlName="lngDescription"
class="form-control"
rows="5"></textarea>
</div>
Expand All @@ -197,30 +203,30 @@ <h4 class="blue-header mb-0">NRCED Site Content</h4>
<section>
<div class="row mb-4">
<div class="col-2">
<h4 class="blue-header mb-0">LNG Site Content</h4>
<span class="grey-subtext d-block">{{ lngPublishSubtext }}</span>
<h4 class="blue-header mb-0">NRCED Site Content</h4>
<span class="grey-subtext d-block">{{ nrcedPublishSubtext }}</span>
</div>
<div class="col-4">
<mat-slide-toggle
name="publishLng"
id="publishLng"
formControlName="publishLng"
(change)="togglePublish($event, 'lng')"
[checked]="myForm.controls.publishLng.value"
name="publishNrced"
id="publishNrced"
formControlName="publishNrced"
(change)="togglePublish($event, 'nrced')"
[checked]="myForm.controls.publishNrced.value"
ngDefaultControl>
{{ myForm.controls.publishLng.value ? 'Published' : 'Unpublished' }}
{{ myForm.controls.publishNrced.value ? 'Published' : 'Unpublished' }}
</mat-slide-toggle>
<span class="grey-subtext d-block">*Changes made will take effect once you click "Update Record"</span>
</div>
</div>
<div class="flex-container">
<div class="label-pair med">
<label for="lngDescription">Description</label>
<label for="nrcedSummary">Summary</label>
<textarea
name="lngDescription"
id="lngDescription"
name="nrcedSummary"
id="nrcedSummary"
type="text"
formControlName="lngDescription"
formControlName="nrcedSummary"
class="form-control"
rows="5"></textarea>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,30 +184,36 @@ <h4>Documents</h4>
<section>
<div class="row mb-4">
<div class="col-2">
<h4 class="blue-header mb-0">NRCED Site Content</h4>
<span class="grey-subtext d-block">{{ nrcedPublishSubtext }}</span>
<h4 class="blue-header mb-0">LNG Site Content</h4>
<span class="grey-subtext d-block">{{ lngPublishSubtext }}</span>
</div>
<div class="col-4">
<mat-slide-toggle
name="publishNrced"
id="publishNrced"
formControlName="publishNrced"
(change)="togglePublish($event, 'nrced')"
[checked]="myForm.controls.publishNrced.value"
name="publishLng"
id="publishLng"
formControlName="publishLng"
(change)="togglePublish($event, 'lng')"
[checked]="myForm.controls.publishLng.value"
ngDefaultControl>
{{ myForm.controls.publishNrced.value ? 'Published' : 'Unpublished' }}
{{ myForm.controls.publishLng.value ? 'Published' : 'Unpublished' }}
</mat-slide-toggle>
<span class="grey-subtext d-block">*Changes made will take effect once you click "Update Record"</span>
</div>
</div>
<div class="flex-container">
<div class="label-pair">
<label for="recordName">Record Name</label>
<input name="recordName" id="recordName" type="text" formControlName="recordName" class="form-control" />
</div>
</div>
<div class="flex-container">
<div class="label-pair med">
<label for="nrcedSummary">Summary</label>
<label for="lngDescription">Description</label>
<textarea
name="nrcedSummary"
id="nrcedSummary"
name="lngDescription"
id="lngDescription"
type="text"
formControlName="nrcedSummary"
formControlName="lngDescription"
class="form-control"
rows="5"></textarea>
</div>
Expand All @@ -217,30 +223,30 @@ <h4 class="blue-header mb-0">NRCED Site Content</h4>
<section>
<div class="row mb-4">
<div class="col-2">
<h4 class="blue-header mb-0">LNG Site Content</h4>
<span class="grey-subtext d-block">{{ lngPublishSubtext }}</span>
<h4 class="blue-header mb-0">NRCED Site Content</h4>
<span class="grey-subtext d-block">{{ nrcedPublishSubtext }}</span>
</div>
<div class="col-4">
<mat-slide-toggle
name="publishLng"
id="publishLng"
formControlName="publishLng"
(change)="togglePublish($event, 'lng')"
[checked]="myForm.controls.publishLng.value"
name="publishNrced"
id="publishNrced"
formControlName="publishNrced"
(change)="togglePublish($event, 'nrced')"
[checked]="myForm.controls.publishNrced.value"
ngDefaultControl>
{{ myForm.controls.publishLng.value ? 'Published' : 'Unpublished' }}
{{ myForm.controls.publishNrced.value ? 'Published' : 'Unpublished' }}
</mat-slide-toggle>
<span class="grey-subtext d-block">*Changes made will take effect once you click "Update Record"</span>
</div>
</div>
<div class="flex-container">
<div class="label-pair med">
<label for="lngDescription">Description</label>
<label for="nrcedSummary">Summary</label>
<textarea
name="lngDescription"
id="lngDescription"
name="nrcedSummary"
id="nrcedSummary"
type="text"
formControlName="lngDescription"
formControlName="nrcedSummary"
class="form-control"
rows="5"></textarea>
</div>
Expand Down
Loading

0 comments on commit 5b353f4

Please sign in to comment.