Commit fe9aca70 authored by Carsten  Rose's avatar Carsten Rose
Browse files

Refs #9528 FE.parameter.clearMe - pending: BB has to fix JS, CR needs to do the doc

parent 9cd7cd5c
Pipeline #5063 passed with stages
in 3 minutes and 37 seconds
......@@ -661,6 +661,9 @@ abstract class AbstractBuildForm {
}
/**
* @return mixed
*/
abstract public function getProcessFilter();
/**
......@@ -1334,7 +1337,7 @@ abstract class AbstractBuildForm {
$class = 'form-control';
$elementCharacterCount = '';
if (isset($formElement[FE_INPUT_CLEAR_ME])) {
if (isset($formElement[FE_INPUT_CLEAR_ME]) && $formElement[FE_INPUT_CLEAR_ME] != '0') {
$class .= ' qfq-clear-me';
}
......
......@@ -636,6 +636,7 @@ const SYSTEM_FORM_LANGUAGE_D_LABEL = 'formLanguageDLabel';
const SYSTEM_ENTER_AS_SUBMIT = 'enterAsSubmit';
const SYSTEM_SHOW_ID_IN_FORM_TITLE = 'showIdInFormTitle';
const SYSTEM_INPUT_CLEAR_ME = 'clearMe';
const SYSTEM_CMD_WKHTMLTOPDF = 'cmdWkhtmltopdf';
const SYSTEM_CMD_INKSCAPE = 'cmdInkscape';
......@@ -1068,6 +1069,7 @@ const F_ORDER_COLUMN = 'orderColumn';
const F_ORDER_COLUMN_NAME = 'ord';
const F_SHOW_ID_IN_FORM_TITLE = SYSTEM_SHOW_ID_IN_FORM_TITLE;
const F_INPUT_CLEAR_ME = SYSTEM_INPUT_CLEAR_ME;
const F_MULTI_MSG_NO_RECORD = 'multiMsgNoRecord';
const F_MULTI_MSG_NO_RECORD_TEXT = 'No data';
......@@ -1282,7 +1284,7 @@ const FE_INPUT_EXTRA_BUTTON_INFO = 'extraButtonInfo';
const FE_INPUT_EXTRA_BUTTON_INFO_CLASS = SYSTEM_EXTRA_BUTTON_INFO_CLASS;
const FE_INPUT_EXTRA_BUTTON_INFO_MIN_WIDTH = 'extraButtonMinWidth';
const FE_INPUT_EXTRA_BUTTON_INFO_MIN_WIDTH_DEFAULT = '250';
const FE_INPUT_CLEAR_ME = 'clearMe';
const FE_INPUT_CLEAR_ME = F_INPUT_CLEAR_ME;
const FE_INPUT_AUTOCOMPLETE = 'autocomplete';
const FE_TMP_EXTRA_BUTTON_HTML = '_extraButtonHtml'; // will be filled on the fly during building extrabutton
const FE_CHECKBOX_CHECKED = 'checked';
......
......@@ -840,6 +840,7 @@ class Support {
$store = Store::getInstance();
// Some Defaults
self::setIfNotSet($formElement, FE_INPUT_CLEAR_ME, $formSpec[F_INPUT_CLEAR_ME]);
self::setIfNotSet($formElement, FE_SHOW_SECONDS, '0');
self::setIfNotSet($formElement, FE_TIME_IS_OPTIONAL, '0');
self::setIfNotSet($formElement, FE_SHOW_ZERO, '0');
......
......@@ -1476,6 +1476,7 @@ class QuickFormQuery {
FE_INPUT_EXTRA_BUTTON_INFO_CLASS,
F_SHOW_ID_IN_FORM_TITLE,
F_INPUT_CLEAR_ME,
FE_FILE_MAX_FILE_SIZE,
......
......@@ -171,6 +171,9 @@ showIdInFormTitle = 0
# cat=form-config/config; type=string; label=Wrap the subrecord column 'id|ID|Id' with the given class. E.g. 'text-muted' is rendered as ...<span class="text-muted">value</span>.
cssClassColumnId = text-muted
# cat=form-config/config; type=boolean; label=Show small 'x' to clear input on all input elements
clearMe = 1
# cat=form-layout/layout; type=string; label=FormElement label align:Default is 'left'. Possible values: 'left', 'center', 'right'.
......
Markdown is supported
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