Commit 45b40b6f authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Added the create view step three template.

parent 371aa6ac
{include file="header.tpl"}
<table border="1">
<td><div id="tree">Artefact Tree</div></td>
<form action="" method="post">
<input type="submit" name="cancel" value="{str tag=cancel}">
<input type="submit" name="back" value="{str tag=back}">
<input type="submit" name="submit" value="{str tag=next}">
<script type="text/javascript">
function treeItemFormat(data, tree) {
var item = LI({'id':});
if (data.container) {
var toggleLink = SPAN({'id': + '_toggle'}, tree.getExpandLink(item));
appendChildNodes(item, toggleLink, ' ');
if (!data.title) {
data.title = '';
var title = SPAN({title: data.title}, data.text);
appendChildNodes(item, title);
forEach(tree.statevars, function(j) {
if (typeof(data[j]) != 'undefined') {
item.setAttribute(j, data[j]);
return item;
// API
var tree = new CollapsableTree(data, '/json/artefacttree.json.php');
tree.setToggleIcons('{/literal}{$plusicon}{literal}', '{/literal}{$minusicon}{literal}');
addLoadEvent(function () {
swapDOM('tree', tree.render());
{include file="footer.tpl"}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment