Commit 8cd9955c authored by Carsten  Rose's avatar Carsten Rose
Browse files

AbstractBuildForm: table.parameter='emptyHide' - suppress any 'empty' element in SELECT or

Radio.
BuildFormBootstrap: rendering standard class removed.
Constants: defined SYSTEM_CSS_CLASS_CONTAINER
parent d68dc679
......@@ -691,6 +691,14 @@ abstract class AbstractBuildForm {
$itemValue[] = '';
$itemKey[] = '';
}
if(isset($formElement['emptyHide']) ) {
if(isset($itemValue['']))
unset($itemValue['']);
if(isset($itemKey['']))
unset($itemKey['']);
}
}
/**
......
......@@ -34,9 +34,9 @@ class BuildFormBootstrap extends AbstractBuildForm {
$this->isFirstPill = true;
// Set some defaults
if (!isset($this->formSpec['class'])) {
$this->formSpec['class'] = 'container';
}
// if (!isset($this->formSpec['class'])) {
// $this->formSpec['class'] = 'container';
// }
// $this->formSpec['class'] = 'none';
}
......
......@@ -70,7 +70,7 @@ class BuildFormTable extends AbstractBuildForm {
// Logged in BE User will see a FormEdit Link
$sipParamString = OnArray::toString($this->store->getStore(STORE_SIP), ':', ', ', "'");
$formEditUrl = $this->createFormEditUrl();
$html .= "<p><a href='$formEditUrl'>Edit</a> <small>[$sipParamString]</small></p>";
$html .= "<p><a href='$formEditUrl'>Edit</a><small>[$sipParamString]</small></p>";
$deleteUrl = $this->createDeleteUrl($this->formSpec['tableName'], $this->store->getVar(SIP_RECORD_ID, STORE_SIP));
$html .= "<p><a href='$deleteUrl'>Delete</a>";
......
......@@ -213,6 +213,7 @@ const SYSTEM_SQL_LOG_MODE = 'SQL_LOG_MODE'; // Mode, which statements to log.
const SYSTEM_SHOW_DEBUG_INFO = 'SHOW_DEBUG_INFO';
const SYSTEM_CSS_LINK_CLASS_INTERNAL = 'CSS_LINK_CLASS_INTERNAL';
const SYSTEM_CSS_LINK_CLASS_EXTERNAL = 'CSS_LINK_CLASS_EXTERNAL';
const SYSTEM_CSS_CLASS_QFQ_CONTAINER = 'CSS_CLASS_QFQ_CONTAINER';
// computed automatically during runtime
const SYSTEM_PATH_EXT = 'EXT_PATH';
......
Supports Markdown
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