Id()] = $Schema->Name() . " Schema"; } $OptList = new HtmlOptionList("SC", $Options, $SchemaInUse->Id()); $OptList->SubmitOnChange(true); $OptList->PrintHtml(); } /** * Print a search URL to find resources associated with a given controlled name. * @param ControlledName $CName Target controlled name */ function GetSearchUrl(ControlledName $CName): string { $SearchParams = new SearchParameterSet(); $SearchParams->AddParameter("=".$CName->Name(), $CName->FieldId()); return "index.php?P=SearchResults&" .$SearchParams->UrlParameterString(); } # ----- SETUP ---------------------------------------------------------------- if (!isset($H_Schema)) { throw new Exception("H_Schema not defined."); } if (!isset($H_OptionFields)) { $H_OptionFields = null; } if (isset($G_Field)) { if (!isset($H_OptionNames)) { throw new Exception("H_OptionNames not defined."); } if (!isset($H_Options)) { throw new Exception("H_Options not defined."); } } $CancelButton = new HtmlButton("Cancel"); $CancelButton->setIcon("Cross.svg"); $CancelButton->addSemanticClass("btn-danger"); $CancelButton->makeSubmitButton(); $SaveButton = new HtmlButton("Save Changes"); $SaveButton->setIcon("Disk.svg"); $SaveButton->makeSubmitButton(); $EditButton = new HtmlButton("Edit"); $EditButton->setIcon("Pencil.svg"); $EditButton->setSize(HtmlButton::SIZE_SMALL); $ExportButton = new HtmlButton("Export"); $ExportButton->setIcon("FileExport.svg"); $ExportButton->setSize(HtmlButton::SIZE_SMALL); $AF = ApplicationFramework::getInstance(); $SafeSchemaId = defaulthtmlentities($H_Schema->Id()); # ----- DISPLAY -------------------------------------------------------------- ?>
No Option fields were found for editing.
= $Field->GetDisplayName(); ?> | (= count($Field->GetPossibleValues()); ?> values) | = $EditButton->getHtml(); ?> = $ExportButton->getHtml(); ?> | = $Field->Description(); ?> |
Assigned to = number_format($UsageCount); ?> Resources (= $UsagePercentage; ?>%) |