case 'true': print "<input type='hidden' value='True' name='value'/><input type='text' readonly value='" . _T("Yes", "dyngroup") . "'/>"; print "<input class='btnPrimary' value='" . _T("Add", "dyngroup") . "' name='Add' type='submit'/>"; break; } } print "</td><td>"; print "<input type='hidden' name='req' value='" . quickGet('req') . "'/>"; print "<input type='hidden' name='param' value='" . quickGet('add_param') . "'/>"; print "<input type='hidden' name='request' value='" . $request->toURL() . "'/>"; print "<input type='hidden' name='id' value='{$id}'/>"; print "</td></tr>"; print "</table></form>"; } // display the request in detail if (!$request->isEmpty()) { print "<hr/>"; print "<h3>" . _T("The request is : ", "dyngroup") . "</h3>"; if ($edition) { $request->displayReqListInfos(true, array('id' => $id, 'gid' => $id, 'target' => $target, 'target_edit' => 'computersgroupsubedit', 'target_del' => 'computersgroupsubdel', 'request' => $request->toS())); } else { $request->displayReqListInfos(true, array('id' => $id, 'gid' => $id, 'target' => $target, 'target_edit' => 'computersgroupcreatesubedit', 'target_del' => 'computersgroupcreatesubdel', 'request' => $request->toS(), 'tab' => 'tabdyn')); } } // display action buttons in the bottom //TODO put in class if (!$request->isEmpty()) { # TODO check ACLs.... print "<hr/>"; print "<table>"; print "<tr><td>";
/** * @covers Nethgui\Controller\Request::isEmpty * @todo Implement testIsEmpty(). */ public function testIsEmpty() { $this->assertFalse($this->object->isEmpty()); }