");
+ foreach ($oms->Messages as $msg)
+ {
+ $ik = "";
+ echo("
");
+ echo("
" . $msg->Title . "
");
+ echo("
" . str_replace("\n", "
", $msg->Message) . "
");
+ echo("
");
+ }
+ if ($this->IsPostback)
+ {
+ if (count($this->FailedValidations) > 0)
+ {
+ foreach ($this->FailedValidations as $validation)
+ {
+ $ik = "";
+ echo("
");
+ echo("
" . $validation->Title . "
");
+ echo("
" . str_replace("\n", "
", $validation->Message) . "
");
+ echo("
");
+ }
+ }
+ /*
+ else
+ {
+ echo("
");
+ echo("
Saved
");
+ echo("
");
+ }
+ */
+ }
+ echo("
");
+
$this->renderEndTag("body");
$this->renderEndTag("html");
@@ -978,29 +1033,6 @@ MSG_EOF);
}
$this->renderBeginPage($title);
- if ($this->IsPostback)
- {
- echo("");
- if (count($this->FailedValidations) > 0)
- {
- foreach ($this->FailedValidations as $validation)
- {
- $ik = "";
- echo("
");
- echo("
" . $validation->Title . "
");
- echo("
" . $validation->Message . "
");
- echo("
");
- }
- }
- else
- {
- echo("
");
- echo("
Saved
");
- echo("
");
- }
- echo("
");
- }
-
$DO_Singular = $oms->getInstanceByGlobalIdentifier(KnownInstanceGuids::DisplayOption__Singular);
$this->renderElement($element, [ $DO_Singular ]);
$this->renderEndForm();
@@ -1087,7 +1119,7 @@ MSG_EOF);
private InstanceReference $__renderingElement;
- public function renderElement(InstanceReference $element, array $displayOptions)
+ public function renderElement(InstanceReference $element, array $displayOptions, $renderNotEnterable = false)
{
/**
* @var MySQLDatabaseOms
@@ -1097,18 +1129,51 @@ MSG_EOF);
$this->__renderingElement = $element;
$parentElementContent = $oms->getRelatedInstance($element, KnownRelationshipGuids::Instance__for__Element_Content);
- $renderingNotEnterable = $this->__renderingNotEnterable;
- $this->__renderingNotEnterable = $oms->instanceSetContains($displayOptions, $oms->getInstanceByGlobalIdentifier(KnownInstanceGuids::DisplayOption__NotEnterable));
+ $renderingNotEnterable = $renderNotEnterable || $oms->instanceSetContains($displayOptions, $oms->getInstanceByGlobalIdentifier(KnownInstanceGuids::DisplayOption__NotEnterable));
if ($oms->instanceSetContains($displayOptions, $oms->getInstanceByGlobalIdentifier(KnownInstanceGuids::DisplayOption__ShowSubelementsVertically)))
{
echo("");
+ $elementLabel = $oms->getAttributeValue($element, KnownAttributeGuids::Label);
+ if ($elementLabel !== null)
+ {
+ echo("