Refactoring: cleaning directories structure
[fnpeditor.git] / src / editor / modules / nodeFamilyTree / template.html
diff --git a/src/editor/modules/nodeFamilyTree/template.html b/src/editor/modules/nodeFamilyTree/template.html
new file mode 100644 (file)
index 0000000..9bccfc3
--- /dev/null
@@ -0,0 +1,19 @@
+<div class="rng-module-nodeFamilyTree">
+    <table class="table table-bordered">
+        <tr>
+            <td>powyżej</td>
+            <td><% if(parent) { %><a href="#" class="rng-module-nodeFamilyTree-parent"><%= parent.repr %></a><% } else { %>-<% } %></td>
+        </tr>
+        <tr>
+            <td rowspan="0">poniżej</td>
+            <td>
+                <ul>
+                <% if(!children || children.length === 0) { %>-<% } else { %>
+                    <% children.forEach(function(child) { %>
+                        <li><% if(child.bold) { %><strong><% } %><a href="#"><%= child.repr %></a><% if(child.bold) { %></strong><% } %></li>
+                    <% }); %>
+                <% } %>
+                </ul>
+            </td>
+        </tr>
+</div>
\ No newline at end of file