forked from fli-iam/shanoir-ng
-
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.
Showing
14 changed files
with
143 additions
and
13 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
shanoir-ng-datasets/src/main/java/org/shanoir/ng/vip/AutomaticExecution.java
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,17 @@ | ||
package org.shanoir.ng.vip; | ||
|
||
/** | ||
* This class represents the associated criterias for an automatic execution realized after an import in shanoir. | ||
*/ | ||
public class AutomaticExecution { | ||
|
||
String name; | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
} |
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
Empty file.
8 changes: 8 additions & 0 deletions
8
shanoir-ng-front/src/app/vip/execution-planning/execution-planning-list.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,8 @@ | ||
<ol> | ||
<li> | ||
<label i18n="Execution planning">Execution's planification</label> | ||
<ol *ngFor="let planifiedExec of executions let i = index; let even = even; let odd = odd;" [class.even]="even" [class.odd]="odd"> | ||
<execution-planning executionPlanning="{{planifiedExec}}"/> | ||
</ol> | ||
</li> | ||
</ol> |
23 changes: 23 additions & 0 deletions
23
shanoir-ng-front/src/app/vip/execution-planning/execution-planning-list.component.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,23 @@ | ||
import {Component, Input, OnInit} from '@angular/core'; | ||
import {ExecutionService} from "../execution/execution.service"; | ||
import {AutomaticExecution} from "../models/automatic-execution"; | ||
|
||
@Component({ | ||
selector: 'execution-planning-list', | ||
templateUrl: './execution-planning-list.component.html', | ||
styleUrls: ['./execution-planning-list.component.css'] | ||
}) | ||
export class ExecutionPlanningList { | ||
|
||
@Input() studyId: number | ||
executions: AutomaticExecution[] | ||
|
||
constructor(protected executionService: ExecutionService) {} | ||
|
||
ngOnInit(): void { | ||
this.executionService.getAutomaticExecutions(this.studyId).then( | ||
executionsReturned => this.executions = executionsReturned | ||
) | ||
} | ||
|
||
} |
Empty file.
7 changes: 7 additions & 0 deletions
7
shanoir-ng-front/src/app/vip/execution-planning/execution-planning.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,7 @@ | ||
<form *ngIf="executionPlanning" (ngSubmit)="onSubmitExecutionForm()" xmlns="http://www.w3.org/1999/html"> | ||
<div> | ||
<label>Execution Name</label> | ||
<input type="text" id="name" formControlName="name" required [(ngModel)]="executionPlanning.name"> | ||
</div> | ||
</form> | ||
|
16 changes: 16 additions & 0 deletions
16
shanoir-ng-front/src/app/vip/execution-planning/execution-planning.component.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,16 @@ | ||
import {Component, Input} from '@angular/core'; | ||
import {AutomaticExecution} from "../models/automatic-execution"; | ||
|
||
|
||
|
||
@Component({ | ||
selector: 'execution-planning', | ||
templateUrl: './execution-planning.component.html', | ||
styleUrls: ['./execution-planning-component.css'] | ||
}) | ||
export class ExecutionPlanning { | ||
@Input() executionPlanning: AutomaticExecution | ||
onSubmitExecutionForm() { | ||
console.log("we send the form, but actually no"); | ||
} | ||
} |
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
18 changes: 18 additions & 0 deletions
18
shanoir-ng-front/src/app/vip/models/automatic-execution.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,18 @@ | ||
/** | ||
* Shanoir NG - Import, manage and share neuroimaging data | ||
* Copyright (C) 2009-2022 Inria - https://www.inria.fr/ | ||
* Contact us on https://project.inria.fr/shanoir/ | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see https://www.gnu.org/licenses/gpl-3.0.html | ||
*/ | ||
import {DatasetProcessingType} from "../../enum/dataset-processing-type.enum"; | ||
|
||
export class AutomaticExecution { | ||
name: string | ||
} |