aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/app/_modals/update-experiment-dialog/update-experiment-dialog.component.html
diff options
context:
space:
mode:
authorOgnjen Cirkovic <ciraboxkg@gmail.com>2022-05-25 02:05:17 +0200
committerOgnjen Cirkovic <ciraboxkg@gmail.com>2022-05-25 02:05:17 +0200
commit54a1eaf3b2176a41dcd2677eb64843638852c371 (patch)
tree56c0aa258a71bd17e421713d41cb9686e5024c92 /frontend/src/app/_modals/update-experiment-dialog/update-experiment-dialog.component.html
parentcc7a29e73371b4b8546a43e3f9115507557a5259 (diff)
parent7f587b3feeeb3f59666176ec1cbcd8f450fe590d (diff)
Merge branch 'redesign' of http://gitlab.pmf.kg.ac.rs/igrannonica/neuronstellar into Redesign
Diffstat (limited to 'frontend/src/app/_modals/update-experiment-dialog/update-experiment-dialog.component.html')
-rw-r--r--frontend/src/app/_modals/update-experiment-dialog/update-experiment-dialog.component.html24
1 files changed, 24 insertions, 0 deletions
diff --git a/frontend/src/app/_modals/update-experiment-dialog/update-experiment-dialog.component.html b/frontend/src/app/_modals/update-experiment-dialog/update-experiment-dialog.component.html
new file mode 100644
index 00000000..db44dfe1
--- /dev/null
+++ b/frontend/src/app/_modals/update-experiment-dialog/update-experiment-dialog.component.html
@@ -0,0 +1,24 @@
+<h1 mat-dialog-title class="text-center">Sačuvaj izmene</h1>
+<div mat-dialog-content class="mt-5 mb-3 mx-1">
+ <form (keydown)="saveWithEnterKey($event)">
+ <mat-radio-group [(ngModel)]="selectedOption" [ngModelOptions]="{standalone: true}">
+ <!-- I Update the existing experiment -->
+ <mat-radio-button [value]="1" checked>Izmeni postojeći eksperiment</mat-radio-button>
+ <!-- II Save as new experiment -->
+ <mat-radio-button [value]="2" class="mt-4">Sačuvaj kao novi eksperiment</mat-radio-button>
+ </mat-radio-group>
+ <div class="d-flex align-items-center justify-content-center mt-3" [ngClass]="{'hidden-class': selectedName.length == 0 && selectedOption == 1}">
+ <mat-form-field [style.width.px]=200>
+ <input type="text" matInput [(ngModel)]="selectedName" (click)="selectedOption = 2" (keydown)="selectedOption = 2" cdkFocusInitial [ngModelOptions]="{standalone: true}" placeholder="Naziv novog eskperimenta">
+ </mat-form-field>
+ </div>
+ <div class="d-flex align-items-center justify-content-center mt-1 mx-4">
+ <p *ngIf="wrongAlreadyExists" class="wrongInput">Eskperiment sa unetim nazivom već postoji u kolekciji.<br>Izaberite drugi naziv.</p>
+ <p *ngIf="wrongEmptyName" class="wrongInput">Unesite naziv eksperimenta.</p>
+ </div>
+ </form>
+</div>
+<div mat-dialog-actions class="justify-content-center">
+ <button id="btnYes" mat-stroked-button color="basic" (click)="onYesClick()">Sačuvaj</button>
+ <button id="btnNo" mat-stroked-button (click)="onNoClick()">Odustani</button>
+</div> \ No newline at end of file