Commit f433ddca authored by Robert Ricci's avatar Robert Ricci

Change title if this is being used for a mote.

parent ecb54dc8
......@@ -15,10 +15,27 @@ include("osiddefs.php3");
# now, test for the shorted of the two.
#
#
# Options for using this page with different types of nodes
#
$nodetypes = array( "mote" );
if ($nodetype == "mote") {
$view = array('hide_partition' => 1, 'hide_os' => 1, 'hide_version' => 1,
'hide_snapshot' => 1, 'hide_features' => 1,
'hide_opmode' => 1, 'hide_footnotes' => 1);
$nodeclass = "mote";
$title = "Mote Form";
} else {
# Defaults to PC view
$view = array('hide_upload' => 1);
$nodeclass = "pc";
$title = "EZ Form";
}
#
# Standard Testbed Header
#
PAGEHEADER("Create a new Image Descriptor (EZ Form)");
PAGEHEADER("Create a new Image Descriptor ($title)");
#
# Only known and logged in users.
......@@ -37,21 +54,6 @@ if (! count($projlist)) {
"you have permission to create new Image descriptors.", 1);
}
#
# Options for using this page with different types of nodes
#
$nodetypes = array( "mote" );
if ($nodetype == "mote") {
$view = array('hide_partition' => 1, 'hide_os' => 1, 'hide_version' => 1,
'hide_snapshot' => 1, 'hide_features' => 1,
'hide_opmode' => 1, 'hide_footnotes' => 1);
$nodeclass = "mote";
} else {
# Defaults to PC view
$view = array('hide_upload' => 1);
$nodeclass = "pc";
}
#
# Need a list of node types. We join this over the nodes table so that
# we get a list of just the nodes that currently in the testbed, not
......
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