<!-- todo: remove this template -->
<h1>{{ schema.title }}</h1>
<form id="formgenerated" name="formgenerated" sf-schema="schema" sf-form="form" sf-model="model"></form>
{{Node}}
<div ng-repeat="node in Node">
    <h3>{{ node.title }}
        <span ng-if="node.lengthModels < 1">
            <a modal-for-nodes="{{node.title}},Node">
                <i class="fa fa-plus-circle fa-fw"></i>
            </a>
        </span>
    </h3>
    <div class="node-table">
        <ng-include src="'shared/templates/nodeTable.html'"></ng-include>
    </div>
    <hr>
</div>
<div ng-repeat="node in ListNode">
    <h3>{{ node.title }}
        <span>
            <a modal-for-nodes="{{node.title}},ListNode">
                <i class="fa fa-plus-circle fa-fw"></i>
            </a>
        </span>
    </h3>
    <div class="list-node-table">
        <ng-include src="'shared/templates/nodeTable.html'"></ng-include>
    </div>
    <hr>
</div>

<button id="submitbutton" type="button" class="btn btn-primary" ng-click="onSubmit(formgenerated)">Kaydet</button>
<!-- <button type="button" class="btn btn-warning">Düzenle</button>  todo: make it conditional -->
<!-- <button type="button" class="btn btn-danger">İptal</button> todo: turn back to previous page -->