|
@ -1,6 +1,12 @@ |
|
|
{% load treenodes %} |
|
|
{% load treenodes %} |
|
|
{# <b>{{depth}}</b> #} |
|
|
{# <b>{{depth}}</b> #} |
|
|
<div> |
|
|
<div class="borderized parent"> |
|
|
|
|
|
<div class="node_type"> |
|
|
|
|
|
{{obj.node}} |
|
|
|
|
|
<button>Smazat</button> |
|
|
|
|
|
<button>O úroveň výš</button> |
|
|
|
|
|
<button>Podvěsit pod ^</button> |
|
|
|
|
|
</div> |
|
|
{% if obj.node|isRocnik %} |
|
|
{% if obj.node|isRocnik %} |
|
|
<h{{depth}}> Ročník {{obj.node.rocnik}} </h{{depth}}> |
|
|
<h{{depth}}> Ročník {{obj.node.rocnik}} </h{{depth}}> |
|
|
{% elif obj.node|isCislo %} |
|
|
{% elif obj.node|isCislo %} |
|
@ -17,11 +23,36 @@ |
|
|
Objekt jiného typu {{obj.node}} |
|
|
Objekt jiného typu {{obj.node}} |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
{%if obj.children %} |
|
|
{%if obj.children %} |
|
|
<div> |
|
|
<div class="borderized children"> |
|
|
|
|
|
<div class="pink">Přidat před |
|
|
|
|
|
<select> |
|
|
|
|
|
<option value="TextNode">Text</option> |
|
|
|
|
|
<option value="NadpisNode">Nadpis</option> |
|
|
|
|
|
<option value="UlohaNode">Úloha</option> |
|
|
|
|
|
<option value="TemaNode">Téma</option> |
|
|
|
|
|
</select> |
|
|
|
|
|
<button>Přídat</button> |
|
|
|
|
|
</div> |
|
|
{%for ch in obj.children %} |
|
|
{%for ch in obj.children %} |
|
|
{%with obj=ch depth=depth|add:"1" template_name="seminar/treenode_recursive.html" %} |
|
|
{%with obj=ch depth=depth|add:"1" template_name="seminar/treenode_recursive.html" %} |
|
|
{%include template_name%} |
|
|
{%include template_name%} |
|
|
{%endwith%} |
|
|
{%endwith%} |
|
|
|
|
|
<div class="pink"> |
|
|
|
|
|
{% if forloop.last %} Přidat za {% else %} Přidat mezi {% endif %} |
|
|
|
|
|
<select> |
|
|
|
|
|
<option value="TextNode">Text</option> |
|
|
|
|
|
<option value="NadpisNode">Nadpis</option> |
|
|
|
|
|
<option value="UlohaNode">Úloha</option> |
|
|
|
|
|
<option value="TemaNode">Téma</option> |
|
|
|
|
|
</select> |
|
|
|
|
|
<button>Přídat na stejnou úroveň</button> |
|
|
|
|
|
<button>Přídat jako syna</button> |
|
|
|
|
|
|
|
|
|
|
|
{% if not forloop.last %} |
|
|
|
|
|
<button>Prohodit ^ a v</button> |
|
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
{%endfor%} |
|
|
{%endfor%} |
|
|
</div> |
|
|
</div> |
|
|
{%endif%} |
|
|
{%endif%} |
|
|