Commit 15083d37 authored by Robert Ricci's avatar Robert Ricci
Browse files

Add a link from the node page to the newimageid_ez page, with the

'node' field already filled out.
parent f61f335c
...@@ -606,6 +606,16 @@ if (! $submit) { ...@@ -606,6 +606,16 @@ if (! $submit) {
} }
reset($projlist); reset($projlist);
} }
#
# Allow formfields that are already set to override defaults
#
if (isset($formfields)) {
while (list ($field, $value) = each ($formfields)) {
$defaults[$field] = $formfields[$field];
}
}
SPITFORM($defaults, 0); SPITFORM($defaults, 0);
PAGEFOOTER(); PAGEFOOTER();
......
...@@ -109,6 +109,11 @@ if (TBNodeAccessCheck($uid, $node_id, $TB_NODEACCESS_REBOOT)) { ...@@ -109,6 +109,11 @@ if (TBNodeAccessCheck($uid, $node_id, $TB_NODEACCESS_REBOOT)) {
"boot.php3?node_id=$node_id"); "boot.php3?node_id=$node_id");
} }
if (TBNodeAccessCheck($uid, $node_id, $TB_NODEACCESS_LOADIMAGE)) {
WRITESUBMENUBUTTON("Create a Disk Image",
"newimageid_ez.php3?formfields[node]=$node_id");
}
if ($isadmin) { if ($isadmin) {
WRITESUBMENUBUTTON("Show Node Log", WRITESUBMENUBUTTON("Show Node Log",
"shownodelog.php3?node_id=$node_id"); "shownodelog.php3?node_id=$node_id");
......
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