blob: a0ed34d518eb401e08be6bfda7ac9133d232f2c8 [file] [log] [blame]
Radek Krejci9b41f5b2018-01-31 14:17:50 +01001<!-- create new child dialog -->
2<div *ngIf="node['creatingChild']" id="{{node['path']}}_createChildDialog"
3 class="node_edit" [class.dialog]="node['schemaChildren']"
4 treeScrollTo [node]="node">
5 <ng-container *ngIf="node['schemaChildren'].length; else nothingToCreate">
Radek Krejci7a244f02018-02-21 09:46:18 +01006 <tree-indent [node]="node" [indentation]="indentation" [type]="'create'"></tree-indent>
Radek Krejci9b41f5b2018-01-31 14:17:50 +01007 <select (change)="creatingDialogSelect(node, $event.target.value, $event.currentTarget)">
8 <option disabled selected value="-1" style="display: none">&nbsp;</option>
9 <ng-container *ngFor="let schema of node['schemaChildren']; let i='index'">
10 <option value="{{i}}">{{modsService.schemaName(node['info'], schema)}}</option>
11 </ng-container>
12 </select>
13 <!-- <pre>{{node['schemaChildren'] | json}}</pre> -->
14 </ng-container>
15 <ng-template #nothingToCreate>
16 <div class="msg-failure msg-rounded">
17 <span class="msg-close" (click)="closeCreatingDialog(node);">x</span>There is no element to create at {{node['path']}}.
18 </div>
19 </ng-template>
20</div>