Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
45b40b6f
Commit
45b40b6f
authored
Dec 01, 2006
by
Nigel McNie
Committed by
Nigel McNie
Dec 01, 2006
Browse files
Added the create view step three template.
parent
371aa6ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/theme/default/templates/view/create3.tpl
0 → 100644
View file @
45b40b6f
{
include
file
=
"header.tpl"
}
<h2>
CreateViewStep3
</h2>
<table
border=
"1"
>
<tr>
<td><div
id=
"tree"
>
Artefact Tree
</div></td>
<td>
Template
<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
}
"
>
</form>
</td>
</tr>
</table>
<script
type=
"text/javascript"
>
{
$rootinfo
}
{
literal
}
function
treeItemFormat
(
data
,
tree
)
{
var
item
=
LI
(
{
'id'
:
data
.
id
}
);
if
(
data
.
container
)
{
var
toggleLink
=
SPAN
(
{
'id'
:
data
.
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
}
'
);
tree
.
setFormatCallback
(
treeItemFormat
);
tree
.
statevars
.
push
(
'
pluginname
'
);
tree
.
statevars
.
push
(
'
parent
'
);
addLoadEvent
(
function
()
{
swapDOM
(
'
tree
'
,
tree
.
render
());
});
{/
literal
}
</script>
{
include
file
=
"footer.tpl"
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment