frontend/src/app/pages/editor/editor.page.html

45 lines
1.5 KiB
HTML
Raw Normal View History

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
[(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>
<div class="editor-root ion-padding">
<div
class="host-container"
2020-10-14 12:37:14 +00:00
style="display: flex; margin-bottom: 20px;"
*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>
<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>
<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>