Radek Krejci | 9b41f5b | 2018-01-31 14:17:50 +0100 | [diff] [blame] | 1 | <!-- 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 Krejci | 7a244f0 | 2018-02-21 09:46:18 +0100 | [diff] [blame^] | 6 | <tree-indent [node]="node" [indentation]="indentation" [type]="'create'"></tree-indent> |
Radek Krejci | 9b41f5b | 2018-01-31 14:17:50 +0100 | [diff] [blame] | 7 | <select (change)="creatingDialogSelect(node, $event.target.value, $event.currentTarget)"> |
| 8 | <option disabled selected value="-1" style="display: none"> </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> |