2020-04-16 00:33:36 +02:00
{% load treenodes %}
2020-05-07 00:53:54 +02:00
{% if kam_slug == "syn" %}
{% appendableChildren obj as dostupne_typy %}
{% else %}
{% appendableChildren obj.parent as dostupne_typy %}
{% endif %}
2020-06-12 01:56:07 +02:00
{# ulohaZadani ulohaVzorak Reseni Cast Text #}
2020-05-07 00:53:54 +02:00
{% if dostupne_typy %}
2020-04-16 00:33:36 +02:00
< div class = "pink" > Přidat {{kam}}
2020-06-12 01:56:07 +02:00
< select name = "pridat-typ-{{obj.node.id}}-{{kam_slug}}" onchange = "showSelectedItemForm(this,'{{obj.node.id}}-{{kam_slug}}')" >
2020-05-07 00:53:54 +02:00
{% for typ in dostupne_typy %}
< option value = "{{typ.0}}" > {{typ.1}}< / option >
2020-04-16 00:33:36 +02:00
{% endfor %}
< / select >
2020-06-12 01:56:07 +02:00
< div class = "hidden-tn" id = "pridat-castNode-{{obj.node.id}}-{{kam_slug}}" >
Nadpis: < input name = "pridat-cast-{{obj.node.id}}-{{kam_slug}}" type = "text" >
< button action = "submit" formaction = "{%url 'treenode_pridat' obj.node.id kam_slug%}" > Přidat< / button >
< / div >
< div class = "hidden-tn" id = "pridat-textNode-{{obj.node.id}}-{{kam_slug}}" > Vytvořit< / div >
< div class = "hidden-tn" id = "pridat-reseniNode-{{obj.node.id}}-{{kam_slug}}" > Vytvořit, Tady bude autocomplete na reseniNode< / div >
< div class = "hidden-tn" id = "pridat-ulohaZadaniNode-{{obj.node.id}}-{{kam_slug}}" > Vytvořit zadání< / div >
< div class = "hidden-tn" id = "pridat-ulohaVzorakNode-{{obj.node.id}}-{{kam_slug}}" > Vytvořit vzorák k: Tady bude autocomplete na problémy k aktuálnímu kontextu< / div >
2020-04-16 00:33:36 +02:00
< / div >
{% endif %}{# appendablebleChildren #}