forked from PnX-SI/gn_module_monitoring
-
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.
feat: edit site (init value btn-select)
- Change button select to accept incoming intial values - Change visit component to add btn-select and form-g inside html - WIP: update form component when initial values is up to date Reviewed-by: andriac [Refs_ticket] : #5 , #6
- Loading branch information
Showing
4 changed files
with
132 additions
and
29 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
48 changes: 40 additions & 8 deletions
48
frontend/app/components/monitoring-visits/monitoring-visits.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 |
---|---|---|
@@ -1,10 +1,42 @@ | ||
<!-- IF prefered observable compare to ngOnChanges we can remove rows and colsname--> | ||
<div> | ||
<!-- | ||
<pnx-monitoring-properties-g [newParentType]="objParent" [objectType]="objectType" *ngIf="!bEdit" [(bEdit)]="bEdit" [selectedObj]="site"> | ||
</pnx-monitoring-properties-g> | ||
<pnx-monitoring-datatable-g [rows]="visits" [colsname]="colsname" (onSort)="setSort($event)" [page]="page" | ||
(onFilter)="setFilter($event)" (onSetPage)="setPage($event)" [obj]="visits" (onDetailsRow)="seeDetails($event)"> | ||
<option-list-btn add-button placeholder="Sélectionner le protocole" label="Ajouter une visite" [optionList]="modules" | ||
(onDeployed)="getModules()" (onSaved)="addNewVisit($event)"></option-list-btn> | ||
</pnx-monitoring-datatable-g> | ||
</div> | ||
</pnx-monitoring-properties-g> --> | ||
|
||
<btn-select | ||
*ngIf="bEdit" | ||
(sendobject)="onSendConfig($event)" | ||
[titleBtn]="titleBtn" | ||
[placeholderText]="placeholderText" | ||
[callBackFunction]="funcToFilt" | ||
[initValueFunction]="funcInitValues" | ||
[paramToFilt]="paramToFilt" | ||
[isInitialValues]="isInitialValues" | ||
></btn-select> | ||
<pnx-monitoring-form-g | ||
[objForm]="form" | ||
#subscritionObjConfig | ||
[obj]="site" | ||
(objChanged)="onObjChanged($event)" | ||
*ngIf="bEdit" | ||
[(bEdit)]="bEdit" | ||
></pnx-monitoring-form-g> | ||
<pnx-monitoring-properties-g | ||
*ngIf="!bEdit" | ||
[(bEdit)]="bEdit" | ||
[newParentType]="objParent" | ||
[objectType]="objectType" | ||
[(bEdit)]="bEdit" | ||
[selectedObj]="site" | ||
></pnx-monitoring-properties-g> | ||
<pnx-monitoring-datatable-g | ||
*ngIf="!bEdit" | ||
[rows]="visits" | ||
[colsname]="colsname" | ||
(onSort)="setSort($event)" | ||
[page]="page" | ||
(onFilter)="setFilter($event)" | ||
(onSetPage)="setPage($event)" | ||
[obj]="visits" | ||
(onDetailsRow)="seeDetails($event)" | ||
></pnx-monitoring-datatable-g> |
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