17 lines
549 B
HTML
17 lines
549 B
HTML
{% load treenodes %}
|
|
{% if kam_slug == "syn" %}
|
|
{% appendableChildren obj as dostupne_typy %}
|
|
{% else %}
|
|
{% appendableChildren obj.parent as dostupne_typy %}
|
|
{% endif %}
|
|
|
|
{% if dostupne_typy %}
|
|
<div class="pink">Přidat {{kam}}
|
|
<select name="pridat-typ-{{obj.node.id}}-{{kam_slug}}">
|
|
{% for typ in dostupne_typy %}
|
|
<option value="{{typ.0}}">{{typ.1}}</option>
|
|
{% endfor %}
|
|
</select>
|
|
<button action="submit" formaction="{%url 'treenode_pridat' obj.node.id kam_slug%}">Přidat</button>
|
|
</div>
|
|
{% endif %}{# appendablebleChildren #}
|