2020-02-08 21:07:47 +00:00
|
|
|
<ng-container>
|
2020-10-13 16:57:56 +00:00
|
|
|
<ion-header>
|
2020-02-08 21:07:47 +00:00
|
|
|
<ion-toolbar>
|
|
|
|
<ion-buttons slot="start">
|
2020-10-12 16:59:32 +00:00
|
|
|
<ion-menu-button></ion-menu-button>
|
2020-02-08 21:07:47 +00:00
|
|
|
</ion-buttons>
|
2020-02-09 03:47:05 +00:00
|
|
|
<ion-title #titleBar>
|
2020-10-13 16:57:56 +00:00
|
|
|
<ion-input
|
2020-10-14 03:28:38 +00:00
|
|
|
[(ngModel)]="editorService.mutablePageName"
|
2020-10-13 16:57:56 +00:00
|
|
|
placeholder="Click to edit page name..."
|
|
|
|
class="title-input"
|
|
|
|
></ion-input>
|
2020-02-09 03:47:05 +00:00
|
|
|
</ion-title>
|
2020-02-08 21:07:47 +00:00
|
|
|
</ion-toolbar>
|
|
|
|
</ion-header>
|
2020-02-08 09:36:14 +00:00
|
|
|
|
2020-10-13 16:57:56 +00:00
|
|
|
<ion-content>
|
2020-02-08 21:07:47 +00:00
|
|
|
<ng-container>
|
2020-02-11 18:20:26 +00:00
|
|
|
<div class="editor-root ion-padding">
|
2020-10-14 03:28:38 +00:00
|
|
|
<div
|
|
|
|
class="host-container"
|
2020-10-14 12:37:14 +00:00
|
|
|
style="display: flex; margin-bottom: 20px;"
|
2020-10-14 03:28:38 +00:00
|
|
|
*ngFor="let node of editorService.immutableNodes"
|
|
|
|
>
|
2020-10-14 03:47:59 +00:00
|
|
|
<div class="host-icons">
|
2020-10-14 12:37:14 +00:00
|
|
|
<i class="type-icon fa" [ngClass]="typeIcons[(node.isNorm() ? 'node' : node.type)] + ' ' + (node.isNorm() ? 'node' : node.type)" title="WYSIWYG Node"></i>
|
2020-10-14 03:47:59 +00:00
|
|
|
<button (click)="onOptionsClick($event, node)">
|
|
|
|
<i class="fa fa-ellipsis-v" title="Node options"></i>
|
|
|
|
</button>
|
|
|
|
</div>
|
2020-10-14 03:28:38 +00:00
|
|
|
<ng-container *ngIf="node.isNorm()">
|
|
|
|
<editor-norm style="flex: 1;" [nodeId]="node.UUID"></editor-norm>
|
|
|
|
</ng-container>
|
2020-10-14 12:37:14 +00:00
|
|
|
<ng-container *ngIf="node.type === 'code_ref'">
|
|
|
|
<editor-code style="flex: 1;" [nodeId]="node.UUID"></editor-code>
|
|
|
|
</ng-container>
|
2020-02-08 21:07:47 +00:00
|
|
|
</div>
|
2020-10-14 03:59:15 +00:00
|
|
|
<button class="host-add-button" (click)="onAddClick($event)">
|
|
|
|
<i class="fa fa-plus"></i> Add Node
|
|
|
|
</button>
|
2020-02-08 09:36:14 +00:00
|
|
|
</div>
|
2020-02-08 21:07:47 +00:00
|
|
|
</ng-container>
|
|
|
|
</ion-content>
|
2020-02-08 22:33:31 +00:00
|
|
|
</ng-container>
|