mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2024-12-30 09:48:53 +00:00
Complete improvements on preferences page.
This commit is contained in:
parent
17901e9ed2
commit
44c0f75628
@ -215,7 +215,7 @@ const routes: Routes = [
|
||||
},
|
||||
{ path: 'controller/:controller_id/preferences/docker/addtemplate', component: AddDockerTemplateComponent, canActivate: [LoginGuard] },
|
||||
{ path: 'controller/:controller_id/preferences/iou/templates', component: IouTemplatesComponent, canActivate: [LoginGuard] },
|
||||
{ path: 'controller/:controller_id//preferences/iou/templates/:template_id', component: IouTemplateDetailsComponent, canActivate: [LoginGuard] },
|
||||
{ path: 'controller/:controller_id/preferences/iou/templates/:template_id', component: IouTemplateDetailsComponent, canActivate: [LoginGuard] },
|
||||
{
|
||||
path: 'controller/:controller_id/preferences/iou/templates/:template_id/copy',
|
||||
component: CopyIouTemplateComponent,
|
||||
|
@ -1,7 +1,7 @@
|
||||
<div class="content">
|
||||
<div class="default-header">
|
||||
<div class="row">
|
||||
<div class="col-md-1">
|
||||
<div class=" col col-md-1">
|
||||
<button class="top-button" class="cancel-button" routerLink="/controller/{{ controllerId }}/preferences" mat-button>
|
||||
<mat-icon>arrow_back</mat-icon>
|
||||
</button>
|
||||
|
@ -1,9 +1,16 @@
|
||||
<div class="content">
|
||||
<div class="default-header">
|
||||
<div class="row">
|
||||
<div class="col col-md-1">
|
||||
<button *ngIf="controller" class="top-button" class="cancel-button col" (click)="goBack()" mat-button>
|
||||
<mat-icon>arrow_back</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
<div class="col-md-11">
|
||||
<h1 class="col">New cloud node template</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="default-content">
|
||||
<mat-card class="matCard">
|
||||
<mat-radio-group class="radio-group">
|
||||
|
@ -45,6 +45,9 @@
|
||||
<button mat-menu-item (click)="deleteTemplate(template)">
|
||||
<mat-icon>delete</mat-icon><span>Delete</span>
|
||||
</button>
|
||||
<button mat-menu-item routerLink="{{ template.template_id }}">
|
||||
<mat-icon>edit</mat-icon><span>Edit</span>
|
||||
</button>
|
||||
</mat-menu>
|
||||
</div>
|
||||
</mat-nav-list>
|
||||
|
@ -1,7 +1,21 @@
|
||||
<div class="content">
|
||||
<div class="default-header">
|
||||
<div class="row">
|
||||
<div class="col-md-1">
|
||||
<button
|
||||
*ngIf="controller"
|
||||
class="top-button"
|
||||
class="cancel-button"
|
||||
(click)="goBack()"
|
||||
mat-button
|
||||
>
|
||||
<mat-icon>arrow_back</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
<div class="col-md-11">
|
||||
<h1 class="col">New Ethernet hub template</h1>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="default-content">
|
||||
|
@ -1,9 +1,22 @@
|
||||
<div class="content" [ngClass]="{ shadowed: isSymbolSelectionOpened }">
|
||||
<div class="default-header">
|
||||
<div class="row">
|
||||
<div class="col-md-1">
|
||||
<button
|
||||
*ngIf="controller"
|
||||
class="top-button"
|
||||
class="cancel-button"
|
||||
(click)="goBack()"
|
||||
mat-button
|
||||
>
|
||||
<mat-icon>arrow_back</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
<div class="col-md-11">
|
||||
<h1 class="col">Ethernet hub settings</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="default-content" *ngIf="ethernetHubTemplate">
|
||||
<mat-card>
|
||||
<form [formGroup]="inputForm">
|
||||
|
@ -44,6 +44,9 @@
|
||||
<button mat-menu-item (click)="deleteTemplate(template)">
|
||||
<mat-icon>delete</mat-icon><span>Delete</span>
|
||||
</button>
|
||||
<button mat-menu-item routerLink="{{ template.template_id }}">
|
||||
<mat-icon>edit</mat-icon><span>Edit</span>
|
||||
</button>
|
||||
</mat-menu>
|
||||
</div>
|
||||
</mat-nav-list>
|
||||
|
@ -1,9 +1,22 @@
|
||||
<div class="content">
|
||||
<div class="default-header">
|
||||
<div class="row">
|
||||
<div class="col col-md-1">
|
||||
<button
|
||||
*ngIf="controller"
|
||||
class="top-button"
|
||||
class="cancel-button col"
|
||||
(click)="goBack()"
|
||||
mat-button
|
||||
>
|
||||
<mat-icon>arrow_back</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
<div class="col-md-11">
|
||||
<h1 class="col">New Ethernet switch template</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="default-content">
|
||||
<mat-card class="matCard">
|
||||
<mat-radio-group class="radio-group">
|
||||
|
@ -1,9 +1,16 @@
|
||||
<div class="content" [ngClass]="{ shadowed: isSymbolSelectionOpened }">
|
||||
<div class="default-header">
|
||||
<div class="row">
|
||||
<div class="col col-md-1">
|
||||
<button *ngIf="controller" class="top-button" class="cancel-button col" (click)="goBack()" mat-button>
|
||||
<mat-icon>arrow_back</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
<div class="col-md-11">
|
||||
<h1 class="col">Ethernet switch configuration</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="default-content" *ngIf="ethernetSwitchTemplate">
|
||||
<mat-accordion>
|
||||
<mat-expansion-panel>
|
||||
|
@ -45,6 +45,9 @@
|
||||
<button mat-menu-item (click)="deleteTemplate(template)">
|
||||
<mat-icon>delete</mat-icon><span>Delete</span>
|
||||
</button>
|
||||
<button mat-menu-item routerLink="{{ template.template_id }}">
|
||||
<mat-icon>edit</mat-icon><span>Edit</span>
|
||||
</button>
|
||||
</mat-menu>
|
||||
</div>
|
||||
</mat-nav-list>
|
||||
|
@ -1,9 +1,16 @@
|
||||
<div class="content">
|
||||
<div class="default-header">
|
||||
<div class="row">
|
||||
<div class="col col-md-1">
|
||||
<button class="top-button" *ngIf="controller" class="cancel-button" (click)="goBack()" mat-button>
|
||||
<mat-icon>arrow_back</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
<div class="col col-md-11">
|
||||
<h1 class="col">Copy Docker container template</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="default-content">
|
||||
<div class="container mat-elevation-z8">
|
||||
<form [formGroup]="templateNameForm">
|
||||
|
@ -1,9 +1,16 @@
|
||||
<div class="content" [ngClass]="{ shadowed: isSymbolSelectionOpened }">
|
||||
<div class="default-header">
|
||||
<div class="row">
|
||||
<div class="col col-md-1">
|
||||
<button class="top-button" *ngIf="controller" class="cancel-button" (click)="goBack()" mat-button>
|
||||
<mat-icon>arrow_back</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
<div class="col col-md-11">
|
||||
<h1 class="col">Docker image configuration</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="default-content" *ngIf="dockerTemplate">
|
||||
<mat-accordion>
|
||||
<mat-expansion-panel>
|
||||
|
@ -1,26 +1,34 @@
|
||||
<div class="content">
|
||||
<div class="default-header">
|
||||
<div class="row">
|
||||
<h1 class="col">Docker container templates</h1>
|
||||
<div class="col col-md-1">
|
||||
<button
|
||||
*ngIf="controller"
|
||||
class="top-button"
|
||||
*ngIf="controller"
|
||||
class="cancel-button"
|
||||
routerLink="/controller/{{ controller.id }}/preferences"
|
||||
mat-button
|
||||
routerLink="/controller/{{ controller.id }}/preferences"
|
||||
>
|
||||
Back
|
||||
</button>
|
||||
<button
|
||||
*ngIf="controller"
|
||||
class="top-button"
|
||||
routerLink="/controller/{{ controller.id }}/preferences/docker/addtemplate"
|
||||
mat-raised-button
|
||||
color="primary"
|
||||
>
|
||||
Add Docker container template
|
||||
<mat-icon>arrow_back</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
<div class="col col-md-10">
|
||||
<h1 class="col">Docker container templates</h1>
|
||||
</div>
|
||||
<div class="col col-md-1">
|
||||
<button
|
||||
*ngIf="controller"
|
||||
class="top-button cancel-button"
|
||||
matTooltip="Add Docker container template"
|
||||
matTooltipClass="custom-tooltip"
|
||||
routerLink="/controller/{{ controller.id }}/preferences/docker/addtemplate"
|
||||
mat-button
|
||||
>
|
||||
<mat-icon>add_circle_outline</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<app-empty-templates-list *ngIf="!dockerTemplates.length"></app-empty-templates-list>
|
||||
<div class="default-content" *ngIf="dockerTemplates.length">
|
||||
@ -34,12 +42,15 @@
|
||||
<mat-icon>more_vert</mat-icon>
|
||||
</button>
|
||||
<mat-menu #menu="matMenu">
|
||||
<button mat-menu-item (click)="deleteTemplate(template)">
|
||||
<mat-icon>delete</mat-icon><span>Delete</span>
|
||||
<button mat-menu-item routerLink="{{ template.template_id }}">
|
||||
<mat-icon>edit</mat-icon><span>Edit</span>
|
||||
</button>
|
||||
<button mat-menu-item (click)="copyTemplate(template)">
|
||||
<mat-icon>content_copy</mat-icon><span>Copy</span>
|
||||
</button>
|
||||
<button mat-menu-item (click)="deleteTemplate(template)">
|
||||
<mat-icon>delete</mat-icon><span>Delete</span>
|
||||
</button>
|
||||
</mat-menu>
|
||||
</div>
|
||||
</mat-nav-list>
|
||||
|
@ -1,9 +1,22 @@
|
||||
<div class="content">
|
||||
<div class="default-header">
|
||||
<div class="row">
|
||||
<div class="col col-md-1">
|
||||
<button
|
||||
class="top-button"
|
||||
*ngIf="controller"
|
||||
class="cancel-button"
|
||||
mat-button
|
||||
(click)="goBack()"
|
||||
>
|
||||
<mat-icon>arrow_back</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
<div class="col col-md-11">
|
||||
<h1 class="col">New IOS router template</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="default-content" *ngIf="iosTemplate">
|
||||
<div class="container mat-elevation-z8">
|
||||
<mat-vertical-stepper [linear]="true">
|
||||
|
@ -1,9 +1,16 @@
|
||||
<div class="content">
|
||||
<div class="default-header">
|
||||
<div class="row">
|
||||
<div class="col col-md-1">
|
||||
<button class="top-button" *ngIf="controller" class="cancel-button" mat-button (click)="goBack()">
|
||||
<mat-icon>arrow_back</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
<div class="col col-md-11">
|
||||
<h1 class="col">Copy IOS router template</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="default-content">
|
||||
<mat-card class="matCard">
|
||||
<form [formGroup]="formGroup">
|
||||
|
@ -1,27 +1,34 @@
|
||||
<div class="content">
|
||||
<div class="default-header">
|
||||
<div class="row">
|
||||
<div class="col col-md-1">
|
||||
<button
|
||||
class="top-button"
|
||||
*ngIf="controller"
|
||||
class="cancel-button"
|
||||
mat-button
|
||||
routerLink="/controller/{{ controller.id }}/preferences"
|
||||
>
|
||||
<mat-icon>arrow_back</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
<div class="col col-md-10">
|
||||
<h1 class="col">IOS router templates</h1>
|
||||
</div>
|
||||
<div class="col col-md-1">
|
||||
<button
|
||||
*ngIf="controller"
|
||||
class="top-button"
|
||||
class="cancel-button"
|
||||
routerLink="/controller/{{ controller.id }}/preferences"
|
||||
class="top-button cancel-button"
|
||||
matTooltip="Add IOS router template"
|
||||
matTooltipClass="custom-tooltip"
|
||||
routerLink="/controller/{{ controller.id }}/preferences/dynamips/templates/addtemplate"
|
||||
mat-button
|
||||
>
|
||||
Back
|
||||
</button>
|
||||
<button
|
||||
*ngIf="controller"
|
||||
class="top-button"
|
||||
routerLink="/controller/{{ controller.id }}/preferences/dynamips/templates/addtemplate"
|
||||
mat-raised-button
|
||||
color="primary"
|
||||
>
|
||||
Add IOS router template
|
||||
<mat-icon>add_circle_outline</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<app-empty-templates-list *ngIf="!iosTemplates.length"></app-empty-templates-list>
|
||||
<div class="default-content" *ngIf="iosTemplates.length">
|
||||
<div class="listcontainer mat-elevation-z8">
|
||||
@ -40,6 +47,9 @@
|
||||
<button mat-menu-item (click)="copyTemplate(template)">
|
||||
<mat-icon>content_copy</mat-icon><span>Copy</span>
|
||||
</button>
|
||||
<button mat-menu-item routerLink="{{ template.template_id }}">
|
||||
<mat-icon>edit</mat-icon><span>Edit</span>
|
||||
</button>
|
||||
</mat-menu>
|
||||
</div>
|
||||
</mat-nav-list>
|
||||
|
@ -1,9 +1,22 @@
|
||||
<div class="content">
|
||||
<div class="default-header">
|
||||
<div class="row">
|
||||
<div class="col col-md-1">
|
||||
<button
|
||||
class="top-button"
|
||||
*ngIf="controller"
|
||||
class="cancel-button"
|
||||
mat-button
|
||||
(click)="goBack()"
|
||||
>
|
||||
<mat-icon>arrow_back</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
<div class="col col-md-11">
|
||||
<h1 class="col">New IOU device template</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="default-content">
|
||||
<div class="container mat-elevation-z8">
|
||||
<mat-vertical-stepper [linear]="true">
|
||||
|
@ -1,9 +1,22 @@
|
||||
<div class="content">
|
||||
<div class="default-header">
|
||||
<div class="row">
|
||||
<div class="col col-md-1">
|
||||
<button
|
||||
class="top-button"
|
||||
*ngIf="controller"
|
||||
class="cancel-button"
|
||||
mat-button
|
||||
(click)="goBack()"
|
||||
>
|
||||
<mat-icon>arrow_back</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
<div class="col col-md-11">
|
||||
<h1 class="col">Copy IOU device template</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="default-content">
|
||||
<mat-card class="matCard">
|
||||
<form [formGroup]="templateNameForm">
|
||||
|
@ -1,9 +1,18 @@
|
||||
<div class="content" [ngClass]="{ shadowed: isSymbolSelectionOpened }">
|
||||
<div class="default-header">
|
||||
<div class="form-field">
|
||||
<div class="row">
|
||||
<div class="col col-md-1">
|
||||
<button *ngIf="controller" class="top-button" class="cancel-button" mat-button (click)="goBack()">
|
||||
<mat-icon>arrow_back</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
<div class="col col-md-11">
|
||||
<h1 class="col">IOU device configuration</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="default-content" *ngIf="iouTemplate">
|
||||
<mat-accordion>
|
||||
<mat-expansion-panel>
|
||||
|
@ -1,27 +1,33 @@
|
||||
<div class="content">
|
||||
<div class="default-header">
|
||||
<div class="row">
|
||||
<h1 class="col">IOU device templates</h1>
|
||||
<div class="col col-md-1">
|
||||
<button
|
||||
*ngIf="controller"
|
||||
class="top-button"
|
||||
class="cancel-button"
|
||||
routerLink="/controller/{{ controller.id }}/preferences"
|
||||
routerLink="/controller/{{ controller?.id }}/preferences"
|
||||
mat-button
|
||||
>
|
||||
Back
|
||||
<mat-icon>arrow_back</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
<div class="col col-md-10">
|
||||
<h1 class="col">IOU device templates</h1>
|
||||
</div>
|
||||
<div class="col col-md-1">
|
||||
<button
|
||||
*ngIf="controller"
|
||||
class="top-button"
|
||||
routerLink="/controller/{{ controller.id }}/preferences/iou/addtemplate"
|
||||
mat-raised-button
|
||||
color="primary"
|
||||
class="top-button cancel-button"
|
||||
matTooltip="Add IOU device template"
|
||||
matTooltipClass="custom-tooltip"
|
||||
routerLink="/controller/{{ controller?.id }}/preferences/iou/addtemplate"
|
||||
mat-button
|
||||
>
|
||||
Add IOU device template
|
||||
<mat-icon>add_circle_outline</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<app-empty-templates-list *ngIf="!iouTemplates.length"></app-empty-templates-list>
|
||||
<div class="default-content" *ngIf="iouTemplates.length">
|
||||
<div class="listcontainer mat-elevation-z8">
|
||||
@ -40,6 +46,9 @@
|
||||
<button mat-menu-item (click)="copyTemplate(template)">
|
||||
<mat-icon>content_copy</mat-icon><span>Copy</span>
|
||||
</button>
|
||||
<button mat-menu-item routerLink="{{ template.template_id }}">
|
||||
<mat-icon>edit</mat-icon><span>Edit</span>
|
||||
</button>
|
||||
</mat-menu>
|
||||
</div>
|
||||
</mat-nav-list>
|
||||
|
@ -1,9 +1,16 @@
|
||||
<div class="content">
|
||||
<div class="default-header">
|
||||
<div class="row">
|
||||
<div class="col col-md-1">
|
||||
<button class="top-button" *ngIf="controller" class="cancel-button" mat-button (click)="goBack()">
|
||||
<mat-icon>arrow_back</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
<div class="col col-md-11">
|
||||
<h1 class="col">New QEMU VM template</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="default-content">
|
||||
<div class="container mat-elevation-z8">
|
||||
<mat-vertical-stepper [linear]="true">
|
||||
@ -32,11 +39,7 @@
|
||||
<mat-step label="Platform and memory" [completed]="memoryForm.get('ramMemory').value && selectedPlatform">
|
||||
<form [formGroup]="memoryForm">
|
||||
<mat-form-field class="form-field">
|
||||
<mat-select
|
||||
placeholder="Platform"
|
||||
[(ngModel)]="selectedPlatform"
|
||||
[ngModelOptions]="{ standalone: true }"
|
||||
>
|
||||
<mat-select placeholder="Platform" [(ngModel)]="selectedPlatform" [ngModelOptions]="{ standalone: true }">
|
||||
<mat-option *ngFor="let platform of selectPlatform" [value]="platform">
|
||||
{{ platform }}
|
||||
</mat-option>
|
||||
|
@ -1,9 +1,16 @@
|
||||
<div class="content">
|
||||
<div class="default-header">
|
||||
<div class="row">
|
||||
<div class="col col-md-1">
|
||||
<button class="top-button" *ngIf="controller" class="cancel-button" mat-button (click)="goBack()">
|
||||
<mat-icon>arrow_back</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
<div class="col col-md-11">
|
||||
<h1 class="col">Copy QEMU VM template</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="default-content">
|
||||
<mat-card class="matCard">
|
||||
<form [formGroup]="nameForm">
|
||||
|
@ -1,9 +1,16 @@
|
||||
<div class="content" [ngClass]="{ shadowed: isConfiguratorOpened || isSymbolSelectionOpened }">
|
||||
<div class="default-header">
|
||||
<div class="row">
|
||||
<div class="col col-md-1">
|
||||
<button class="top-button" *ngIf="controller" class="cancel-button" mat-button (click)="goBack()">
|
||||
<mat-icon>arrow_back</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
<div class="col col-md-11">
|
||||
<h1 class="col">QEMU VM configuration</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="default-content" *ngIf="qemuTemplate">
|
||||
<mat-accordion>
|
||||
<mat-expansion-panel>
|
||||
|
@ -1,27 +1,35 @@
|
||||
<div class="content">
|
||||
<div class="default-header">
|
||||
|
||||
<div class="row">
|
||||
<div class="col col-md-1">
|
||||
<button
|
||||
class="top-button"
|
||||
*ngIf="controller"
|
||||
class="cancel-button"
|
||||
mat-button
|
||||
routerLink="/controller/{{ controller.id }}/preferences"
|
||||
>
|
||||
<mat-icon>arrow_back</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
<div class="col col-md-10">
|
||||
<h1 class="col">QEMU VM templates</h1>
|
||||
</div>
|
||||
<div class="col col-md-1">
|
||||
<button
|
||||
*ngIf="controller"
|
||||
class="top-button"
|
||||
class="cancel-button"
|
||||
routerLink="/controller/{{ controller.id }}/preferences"
|
||||
class="top-button cancel-button"
|
||||
matTooltip="Add QEMU VM template"
|
||||
matTooltipClass="custom-tooltip"
|
||||
routerLink="/controller/{{ controller.id }}/preferences/qemu/addtemplate"
|
||||
mat-button
|
||||
>
|
||||
Back
|
||||
</button>
|
||||
<button
|
||||
*ngIf="controller"
|
||||
class="top-button"
|
||||
routerLink="/controller/{{ controller.id }}/preferences/qemu/addtemplate"
|
||||
mat-raised-button
|
||||
color="primary"
|
||||
>
|
||||
Add QEMU VM template
|
||||
<mat-icon>add_circle_outline</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<app-empty-templates-list *ngIf="!qemuTemplates.length"></app-empty-templates-list>
|
||||
<div class="default-content" *ngIf="qemuTemplates.length">
|
||||
<div class="listcontainer mat-elevation-z8">
|
||||
@ -34,12 +42,16 @@
|
||||
<mat-icon>more_vert</mat-icon>
|
||||
</button>
|
||||
<mat-menu #menu="matMenu">
|
||||
<button mat-menu-item (click)="deleteTemplate(template)">
|
||||
<mat-icon>delete</mat-icon><span>Delete</span>
|
||||
<button mat-menu-item routerLink="{{ template.template_id }}">
|
||||
<mat-icon>edit</mat-icon><span>Edit</span>
|
||||
</button>
|
||||
<button mat-menu-item (click)="copyTemplate(template)">
|
||||
<mat-icon>content_copy</mat-icon><span>Copy</span>
|
||||
</button>
|
||||
<button mat-menu-item (click)="deleteTemplate(template)">
|
||||
<mat-icon>delete</mat-icon><span>Delete</span>
|
||||
</button>
|
||||
|
||||
</mat-menu>
|
||||
</div>
|
||||
</mat-nav-list>
|
||||
|
@ -1,9 +1,22 @@
|
||||
<div class="content">
|
||||
<div class="default-header">
|
||||
<div class="row">
|
||||
<div class="col col-md-1">
|
||||
<button
|
||||
class="top-button"
|
||||
*ngIf="controller"
|
||||
class="cancel-button"
|
||||
mat-button
|
||||
(click)="goBack()"
|
||||
>
|
||||
<mat-icon>arrow_back</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
<div class="col col-md-11">
|
||||
<h1 class="col">New VirtualBox VM template</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="default-content" *ngIf="virtualBoxTemplate">
|
||||
<mat-card class="matCard">
|
||||
<form [formGroup]="vmForm">
|
||||
|
@ -1,9 +1,16 @@
|
||||
<div class="content" [ngClass]="{ shadowed: isConfiguratorOpened || isSymbolSelectionOpened }">
|
||||
<div class="default-header">
|
||||
<div class="row">
|
||||
<div class="col col-md-1">
|
||||
<button class="top-button" *ngIf="controller" class="cancel-button" mat-button (click)="goBack()">
|
||||
<mat-icon>arrow_back</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
<div class="col col-md-11">
|
||||
<h1 class="col">VirtualBox VM configuration</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="default-content" *ngIf="virtualBoxTemplate">
|
||||
<mat-accordion>
|
||||
<mat-expansion-panel>
|
||||
|
@ -1,26 +1,34 @@
|
||||
<div class="content">
|
||||
<div class="default-header">
|
||||
<div class="row">
|
||||
<h1 class="col">VirtualBox VM templates</h1>
|
||||
<div class="col col-md-1">
|
||||
<button
|
||||
*ngIf="controller"
|
||||
class="top-button"
|
||||
*ngIf="controller"
|
||||
class="cancel-button"
|
||||
routerLink="/controller/{{ controller.id }}/preferences"
|
||||
mat-button
|
||||
routerLink="/controller/{{ controller.id }}/preferences"
|
||||
>
|
||||
Back
|
||||
</button>
|
||||
<button
|
||||
*ngIf="controller"
|
||||
class="top-button"
|
||||
routerLink="/controller/{{ controller.id }}/preferences/virtualbox/addtemplate"
|
||||
mat-raised-button
|
||||
color="primary"
|
||||
>
|
||||
Add Virtual Box VM template
|
||||
<mat-icon>arrow_back</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
<div class="col col-md-10">
|
||||
<h1 class="col">VirtualBox VM templates</h1>
|
||||
</div>
|
||||
<div class="col col-md-1">
|
||||
<button
|
||||
*ngIf="controller"
|
||||
class="top-button cancel-button"
|
||||
matTooltip="Add Virtual Box VM template"
|
||||
matTooltipClass="custom-tooltip"
|
||||
routerLink="/controller/{{ controller.id }}/preferences/virtualbox/addtemplate"
|
||||
mat-button
|
||||
>
|
||||
<mat-icon>add_circle_outline</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<app-empty-templates-list *ngIf="!virtualBoxTemplates.length"></app-empty-templates-list>
|
||||
<div class="default-content" *ngIf="virtualBoxTemplates.length">
|
||||
|
@ -1,9 +1,16 @@
|
||||
<div class="content">
|
||||
<div class="default-header">
|
||||
<div class="row">
|
||||
<div class="col col-md-1">
|
||||
<button class="top-button" *ngIf="controller" class="cancel-button" mat-button (click)="goBack()">
|
||||
<mat-icon>arrow_back</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
<div class="col col-md-11">
|
||||
<h1 class="col">New VMware VM template</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="default-content" *ngIf="vmwareTemplate">
|
||||
<mat-card class="matCard">
|
||||
<form [formGroup]="templateNameForm">
|
||||
|
@ -1,9 +1,16 @@
|
||||
<div class="content" [ngClass]="{ shadowed: isSymbolSelectionOpened || isConfiguratorOpened }">
|
||||
<div class="default-header">
|
||||
<div class="row">
|
||||
<div class="col col-md-1">
|
||||
<button class="top-button" *ngIf="controller" class="cancel-button" mat-button (click)="goBack()">
|
||||
<mat-icon>arrow_back</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
<div class="col col-md-11">
|
||||
<h1 class="col">VMware VM configuration</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="default-content" *ngIf="vmwareTemplate">
|
||||
<mat-accordion>
|
||||
<mat-expansion-panel>
|
||||
|
@ -1,27 +1,35 @@
|
||||
<div class="content">
|
||||
<div class="default-header">
|
||||
|
||||
<div class="row">
|
||||
<div class="col col-md-1">
|
||||
<button
|
||||
class="top-button"
|
||||
*ngIf="controller"
|
||||
class="cancel-button"
|
||||
mat-button
|
||||
routerLink="/controller/{{ controller.id }}/preferences"
|
||||
>
|
||||
<mat-icon>arrow_back</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
<div class="col col-md-10">
|
||||
<h1 class="col">VMware VM templates</h1>
|
||||
</div>
|
||||
<div class="col col-md-1">
|
||||
<button
|
||||
*ngIf="controller"
|
||||
class="top-button"
|
||||
class="cancel-button"
|
||||
routerLink="/controller/{{ controller.id }}/preferences"
|
||||
class="top-button cancel-button"
|
||||
matTooltip="Add VMware template"
|
||||
matTooltipClass="custom-tooltip"
|
||||
routerLink="/controller/{{ controller.id }}/preferences/vmware/addtemplate"
|
||||
mat-button
|
||||
>
|
||||
Back
|
||||
</button>
|
||||
<button
|
||||
*ngIf="controller"
|
||||
class="top-button"
|
||||
routerLink="/controller/{{ controller.id }}/preferences/vmware/addtemplate"
|
||||
mat-raised-button
|
||||
color="primary"
|
||||
>
|
||||
Add VMware template
|
||||
<mat-icon>add_circle_outline</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<app-empty-templates-list *ngIf="!vmwareTemplates.length"></app-empty-templates-list>
|
||||
<div class="default-content" *ngIf="vmwareTemplates.length">
|
||||
<div class="listcontainer mat-elevation-z8">
|
||||
|
@ -1,9 +1,22 @@
|
||||
<div class="content">
|
||||
<div class="default-header">
|
||||
<div class="row">
|
||||
<div class="col col-md-1">
|
||||
<button
|
||||
class="top-button"
|
||||
*ngIf="controller"
|
||||
class="cancel-button"
|
||||
mat-button
|
||||
(click)="goBack()"
|
||||
>
|
||||
<mat-icon>arrow_back</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
<div class="col col-md-11">
|
||||
<h1 class="col">New VPCS node template</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="default-content">
|
||||
<mat-card class="matCard">
|
||||
<mat-radio-group class="radio-group">
|
||||
|
@ -1,26 +1,34 @@
|
||||
<div class="content">
|
||||
<div class="default-header">
|
||||
<div class="row">
|
||||
<h1 class="col">VPCS node templates</h1>
|
||||
<div class="col col-md-1">
|
||||
<button
|
||||
*ngIf="controller"
|
||||
class="top-button"
|
||||
*ngIf="controller"
|
||||
class="cancel-button"
|
||||
routerLink="/controller/{{ controller.id }}/preferences"
|
||||
mat-button
|
||||
routerLink="/controller/{{ controller.id }}/preferences"
|
||||
>
|
||||
Back
|
||||
</button>
|
||||
<button
|
||||
*ngIf="controller"
|
||||
class="top-button"
|
||||
routerLink="/controller/{{ controller.id }}/preferences/vpcs/addtemplate"
|
||||
mat-raised-button
|
||||
color="primary"
|
||||
>
|
||||
Add VPCS template
|
||||
<mat-icon>arrow_back</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
<div class="col col-md-10">
|
||||
<h1 class="col">VPCS node templates</h1>
|
||||
</div>
|
||||
<div class="col col-md-1">
|
||||
<button
|
||||
*ngIf="controller"
|
||||
class="top-button cancel-button"
|
||||
matTooltip="Add VPCS template"
|
||||
matTooltipClass="custom-tooltip"
|
||||
routerLink="/controller/{{ controller.id }}/preferences/vpcs/addtemplate"
|
||||
mat-button
|
||||
>
|
||||
<mat-icon>add_circle_outline</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<app-empty-templates-list *ngIf="!vpcsTemplates.length"></app-empty-templates-list>
|
||||
<div class="default-content" *ngIf="vpcsTemplates.length">
|
||||
@ -34,6 +42,9 @@
|
||||
<mat-icon>more_vert</mat-icon>
|
||||
</button>
|
||||
<mat-menu #menu="matMenu">
|
||||
<button mat-menu-item routerLink="{{ template.template_id }}">
|
||||
<mat-icon>edit</mat-icon><span>Edit</span>
|
||||
</button>
|
||||
<button mat-menu-item (click)="deleteTemplate(template)">
|
||||
<mat-icon>delete</mat-icon><span>Delete</span>
|
||||
</button>
|
||||
|
@ -73,7 +73,6 @@ export class ProjectService {
|
||||
}
|
||||
|
||||
links(controller:Controller , project_id: string) {
|
||||
debugger
|
||||
return this.httpController.get<Link[]>(controller, `/projects/${project_id}/links`);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user