python-hserver/hserver/manage/tree.html
2018-03-12 20:38:33 +01:00

39 lines
1.4 KiB
HTML

<div>
<div class="headline">Object Tree</div>
<div>
<%iterate e self._aq_path%>
<div class="treenode">
<div>
<div class="treenodename" onclick="treeRefresh('<%='/'.join([x._aq_name for x in e._aq_path])%>');"><%if e._aq_name!=""%><%=e._aq_name%><%end%><%if e._aq_name==""%>/<%end%></div>
<%if e == self._aq_path[-1]%>
<div id="currentnode" objPath="<%='/'.join([x._aq_name for x in self._aq_path])%>">
<select size="1" id="objTypeName">
<%iterate ot self.wo_accepts()%>
<option value="<%='{0}.{1}'.format(ot.__module__,ot.__name__)%>"><%=ot.__name__%></option>
<%end%>
</select>
<input type="text" id="objName" value=""/>
<button class="bTreeOp simple" onclick="onAddObjectButton(this);" objPath="<%='/'.join([x._aq_name for x in self._aq_path])%>">+</button>
<div id="treelist">
<%iterate child self.children()%>
<div class="treenodename" onclick="treeRefresh('<%='/'.join([x._aq_name for x in e[child]._aq_path])%>');"><%=child%>
<button onclick="onRemoveButton(this);" objPath="<%='/'.join([x._aq_name for x in self._aq_path])%>/<%=child%>">[ X ]</button>
<button objPath="<%='/'.join([x._aq_name for x in self._aq_path])%>/<%=child%>">[ info ]
<div class="tooltip popup">
Type: <div class="typename"><%=self[child].__class__.__name__%></div>
</div>
</button>
</div>
<%end%>
<div>
</div>
<%end%>
</div>
</div>
<%end%>
</div>
</div>