Commit 0d937ca2 authored by Carsten  Rose's avatar Carsten Rose
Browse files

QuickFormQuery.php: Added config.qfq.ini values CSS_CLASS_QFQ_FORM_PILL, CSS_CLASS_QFQ_FORM_BODY

parent 8369257a
...@@ -293,6 +293,8 @@ const SYSTEM_SHOW_DEBUG_INFO = 'SHOW_DEBUG_INFO'; ...@@ -293,6 +293,8 @@ const SYSTEM_SHOW_DEBUG_INFO = 'SHOW_DEBUG_INFO';
const SYSTEM_CSS_LINK_CLASS_INTERNAL = 'CSS_LINK_CLASS_INTERNAL'; const SYSTEM_CSS_LINK_CLASS_INTERNAL = 'CSS_LINK_CLASS_INTERNAL';
const SYSTEM_CSS_LINK_CLASS_EXTERNAL = 'CSS_LINK_CLASS_EXTERNAL'; const SYSTEM_CSS_LINK_CLASS_EXTERNAL = 'CSS_LINK_CLASS_EXTERNAL';
const SYSTEM_CSS_CLASS_QFQ_CONTAINER = 'CSS_CLASS_QFQ_CONTAINER'; const SYSTEM_CSS_CLASS_QFQ_CONTAINER = 'CSS_CLASS_QFQ_CONTAINER';
const SYSTEM_CSS_CLASS_QFQ_FORM_PILL = 'CSS_CLASS_QFQ_FORM_PILL';
const SYSTEM_CSS_CLASS_QFQ_FORM_BODY = 'CSS_CLASS_QFQ_FORM_BODY';
// computed automatically during runtime // computed automatically during runtime
const SYSTEM_PATH_EXT = 'EXT_PATH'; const SYSTEM_PATH_EXT = 'EXT_PATH';
......
...@@ -354,8 +354,15 @@ class QuickFormQuery { ...@@ -354,8 +354,15 @@ class QuickFormQuery {
Support::setIfNotSet($this->formSpec, F_SUBMIT_BUTTON_TEXT, ''); Support::setIfNotSet($this->formSpec, F_SUBMIT_BUTTON_TEXT, '');
Support::setIfNotSet($this->formSpec, F_CLASS_PILL, 'qfq-color-grey-1'); // Take default from config.ini
Support::setIfNotSet($this->formSpec, F_CLASS_BODY, 'qfq-color-grey-2'); $class = $this->store->getVar(SYSTEM_CSS_CLASS_QFQ_FORM_PILL, STORE_SYSTEM);
$class = $class ? $class : 'qfq-color-grey-1';
Support::setIfNotSet($this->formSpec, F_CLASS_PILL, $class);
// Take default from config.ini
$class = $this->store->getVar(SYSTEM_CSS_CLASS_QFQ_FORM_BODY, STORE_SYSTEM);
$class = $class ? $class : 'qfq-color-grey-2';
Support::setIfNotSet($this->formSpec, F_CLASS_BODY, $class);
// Clear // Clear
$this->store->setVar(SYSTEM_FORM_ELEMENT, '', STORE_SYSTEM); $this->store->setVar(SYSTEM_FORM_ELEMENT, '', STORE_SYSTEM);
......
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