- 03 May, 2016 5 commits
-
-
Carsten Rose authored
-
Carsten Rose authored
Fixed rendering checkboxes: alignment of multicheckboxes was still buggy - multi in vertical and horizontal are ok now. The labels too. AbstractBuildForm.php, Constants.php: The checkbox is now only wrapped in a <label> element in ALIGN_VERTICAL Mode. This is identical to the radio.
-
Carsten Rose authored
Fixed rendering of ' checkbox'. formelement.parameter['orientation'] removed (replace by formelement.maxLength) UserManual/index.rst: Doc updated for checkbox/maxlength. AbstractBuildForm.php, Constants.php: class 'checkbox' and 'checkbox-inline' always rendered. Insert <br> where necessary.
-
Carsten Rose authored
AbstractBuildForm.php: Class 'radio' or 'radio-inline' assigned to each individual radio element. After formelement['maxlength'] elements, a <br> is rendered.
-
Carsten Rose authored
Recode: fromelement.mode='readonly' new implemented on client, by using CSS attribute 'disabled'. The HTML atrribute 'readonly' is fine for pure 'input' elements, but does not work sufficient for 'select', 'checkbox', 'radio'. Also, the label (left of input) and note (right of input) are now grayed out if set to 'disable'. FillStoreForm.php, Save.php: strings replaced by constants. New central function getfeMode() used by getJsonFeMode() and getAttributeFeMode()
-
- 02 May, 2016 1 commit
-
-
Carsten Rose authored
Support.php, FillStore.php, AbstractBuildFrom.php, BuildFormPlain.php, BuildFormTables.php, Constants.php, Save.php, BuildFormPlainTest.php
-
- 01 May, 2016 2 commits
-
-
Carsten Rose authored
Form/subrecord: implement special column name '_rowTitle' - shows tooltips over a row of subrecords. UsersManual/index.rst: manual updated AbstractBuildForm.php Constants.php: recoded handling of '_rowClass' to be more generic, especially to add '_rowTitle' support. formEditor.sql: Subrecords of the formEditor use _rowClass and _rowTitle.
-
Carsten Rose authored
AbstractBuildForm.php: Das Zeichen fuer Konstanten '#' war doppelt belegt. Es bedeutete auch Kommentar. Kommentare werden vor dem processing entfernt. Neu ist das Konstannten Zeichen '&'.
-
- 29 Apr, 2016 4 commits
-
-
Carsten Rose authored
Bootstrap grip columns are configurable. A default on the form and, if necessary, per formelement. The default is now changed from 2,6,4 to 2,9,1 UsersManual/index.rst: updated to the new behaviour. Support.php: setIfNotSet() has a new third parameter. AbstractBuildForm.php, BuildFormBootstrap.php, BuildFormPlain.php, BuildFormPlain.php, QuickFormQuery.php: New abstract function fillWrapLabelInputNote().
-
Carsten Rose authored
-
Carsten Rose authored
UsersManual/index.rst: more details to 'Type: subrecord' AbstracctBuildForm.php: check if there are no subrecords. No subrecors mean: display only the 'new' button. prepareSubrecord() returns now 'true' even if there are no subrecords.
-
Carsten Rose authored
UsersManual/Index.rst: See 'Type: subrecord'. Some hints how to use '_rowClass' to mark rows individual. AbstractBuildForm.php: implement in buildSubrecord() parsing of column '_rowClass'. Active roll-over by assigning class 'table-hover' to the class. formEditor.sql: disabled form element records now 'text-muted' displayed.
-
- 27 Apr, 2016 1 commit
-
-
Carsten Rose authored
Store.php: fills arrays direct in $_SESSION - not sure if this works. AbstractBuildForm.php: buildFile() extended to create hidden sipUplaod element. BuildFormBootstrap.php: support different actions on calling file.php File.php, Save.php: rewrote whole logic of uploading files. See CODING.md
-
- 26 Apr, 2016 3 commits
-
-
Carsten Rose authored
file.php: API described. Store.php: Fixed STORE_EXTRA initialization bug AbstractBuildForm.php: code rearranged. Constants.php: UPLOAD added
-
Carsten Rose authored
-
Carsten Rose authored
Sanitize.php, Constants.php: allbut implemented. Support.php: Date regexp corrected to accept years 0001-1000. AbstractBuildForm.php: Code reformatted
-
- 25 Apr, 2016 2 commits
-
-
Carsten Rose authored
Support.php: PhpDoc AbstractBuildForm.php: extended buildRow* with parameter htmlFormElementId. buildLabel rewritten to use Support::doAttribute, Support::wrapTag. buildInput/buildDateTim,buildSelect() now add's class 'form-control'. Input fields now offers a 'help-block'-div BuildFormBootstrap, BuildFormPlain.php, BuildFormTable.php: buildRowNative rewritten to support <label>. Signature of BuildRow* adjusted
-
Carsten Rose authored
AdministratorManual/index.rst, UsersManual/index.rst: Configuration & Documentation. Sanitize.php: code rewrote to use Support::dateTime2mysql(). Support.php: add dateTimeTegexp() FillStoreForm.php: use of Support::setFeDefaults($formElement). Format date/datetime/time values Store.php: redefined various functions to be 'static' AbstractBuildForm.php, Constants.php: added date/datetime/time to tables. Various new functions. Save.php: FE die nicht uebertragen wurden (typsicherweise weil leer) werden neu mit eimem leer String gesschrieben - sonst ist es nicht moeglich Eingaben wieder zu loeschen. formEditor.sql: Felder date/datetime/time neun implementiert.
-
- 19 Apr, 2016 1 commit
-
-
Carsten Rose authored
AbstractBuildForm.php: fixed bug that under some situations there is no STORE_RECORD and this leads to an exception of undefiend Radios. Instead use STORE_TABLE_COLUMN_TYPES.
-
- 18 Apr, 2016 4 commits
-
-
Carsten Rose authored
AbstractBuildForm.php: check if there is a column with the formElementName.
-
Carsten Rose authored
AbstractBuildForm.php: various form elements missed the 'title' attribute (used as tooltip). Fixed. 'Radio', 'Multi Checkbox' and 'Multi Select' only have one tooltip for all elements. This might be improved later.
-
Carsten Rose authored
AbstractBuildForm.php: Select-List - setting 'selected' changed to be tolerant against int and string.
-
Carsten Rose authored
AbstractException.php: If exist, print Form And FormElement names. HelperFormElement.php, Logger.php, FillStoreForm.php, AbstractBuildForm.php: fomatting form element name. Support.php: add setIfNotSet()
-
- 14 Apr, 2016 1 commit
-
-
Carsten Rose authored
After creating a new record and still open form: a new sip is created and transfered to client. Attention: 'new + save + modify + save again' still create two records (error). AbstractBuildForm.php: buildNewSip() renamed to buildHiddenSip(). Call of buildHiddenSip() moved from tail() to process(). buildHiddenSip() returns JSON code too. BuildFormBootstrap.php, BuildFromPlain.php, BuildFormTable.php : removed call buildNewSip() QuickFormQuery.php: After save, reload current record and create new sip Save.php: process() returns id of affected record.
-
- 13 Apr, 2016 1 commit
-
-
Carsten Rose authored
save.php: return JSON with updated values of all fields. AbstractBuildForm.php: updated to deliver values of all form elements Constants.php: constants to distinguish all or specific values of FEs. QUERY_TYPE_* Database.php: doSQL now returns affectedrows or lastinsertid in case of udpate/inset. Typos fixed. QuickFormQuery.php: deliver Values as JSON after save. Save.php: return lastinsertid or affectedrows.
-
- 11 Apr, 2016 2 commits
-
-
Carsten Rose authored
AbstractBuildForm.php, QuickFormQuery.php: typos fixed, unused code commented
-
Carsten Rose authored
AbstractBuildForm.php: Aufruf von Support::appendToolTip() - neu kein Aufruf von htmlentitities vorher, damit Ticks nicht kodiert werden nach '"'. Durch Verwenddung von Support::appendTooltip() sollten single ticks im Code automatisch escaped werden. Evaluate.php: In debugstack eine Freizeile eingebaut zur besseren Lesbarkeit.
-
- 10 Apr, 2016 1 commit
-
-
Carsten Rose authored
Support.php: rewrote appendTypo3ParameterToArray() to use Typo3 Store instead of _GET Parameter. Moved randomAlphaNum() to Support. Link.php: rewrote handling of ToolTip. Renamed doHtmlUrl() to doAnchor(). Utils.php: moved randomAlphaNum() to Support. Store.php: rewrote fillStoreClient() to be more compatible with phpUnit-test environment. Removed randomAlphaNum() - duplicate in Support. AnbstractBuildForm.php: rewrote deriveNewRecordUrlFromExistingSip() to use generic Support::appendTypo3ParameterToArray() Coding.md: Notes for debuggging.
-
- 04 Apr, 2016 2 commits
-
-
Carsten Rose authored
-
Carsten Rose authored
-
- 02 Apr, 2016 1 commit
-
-
Carsten Rose authored
UserReportException.php: Added field SYSTEM_REPORT_COLUMN_NAME to output. Array members renamed to SYSTEM_*. Various files adjusted to inlcude renamed file `UserFormException.php`. Link.php: Mamut switch() in parseItem() refactored to use $callTable. Report.php: refactoring started to use UserReportException() instead of SyntaxReportException. Startet removing all fr_error usages.
-
- 01 Apr, 2016 3 commits
-
-
Carsten Rose authored
-
Carsten Rose authored
Support.php, AbstractBuildForm.php, BuildFormBootstrap.hp, BuildFormTable.php: refactored doAtrribute() from AbstractBuildForm to Support.
-
Carsten Rose authored
Link.php, Report.php: starting with cleaning up class Link. Constructor purified, enhanced error reporting might be later implemented again. AbstractBuildForm.php, BuildFormBootsrrap.php, BuildFormTable.php: renamed getAttribute() to doAttribute() LinkTest.php: starting creation.
-
- 24 Mar, 2016 2 commits
-
-
Carsten Rose authored
Refactored sanitize functionality: Form save, form update and client are now handled with the same regexp. Form save and update use the same code to sanatize. SANITIZE names are now equal in FormEditor and in Store. New class SANITIZE_ALL_MIN_MAX_DATE. OnArray.php: moved inputCheckPatternArray() to Sanatize. Sanatize.php: complete rewrote of sanitize(). Everything is regexp based now. FillStore.php: validateValue() removed, use of Sanitize::sanitize instead. Store.php: adjusted change of Sanitize:sanitize signature. AbstractBuildForm.php: defined class global variable $inputCheckPattern and initialize them during construct(). Variables, submitted by POST, are now correctly sanatized according their FormElement definition. getInputCheckPattern() adjusted to new/changed SANITIZE definitions. Constants.php: added SANTIZE_ALLOW_: MIN_MAX, MIN_MAX_DATE, EMAIL, PATTERN, SANITIZE_EXCEPTION, SANITIZE_EMPTY_STRING Save.php: use of Sanitize::sanitize instead of validateValue() formEditor.sql: order of FormElement.checkType changed to 'most used first'.
-
Carsten Rose authored
load.php: implemented FillStoreForm.php: implemented Store.php: phpunit test complains about 'store already filled'. Option set to explicitly allow rewrite. AbstractBuildForm.php: Added new mode 'FORM_UPDATE'. Elements additionaly create json code. 'data-load' attribute will be added to form elements, if 'dynamicUpdate=yes' elements(): added call by reference parameter $json, to return the generated json code. BodyTextParse.php: added 'r =' as a new 'start new line' indicator. This was necessary at least for phpunit tests to run. BuildFormBootstrap.php: buildPill() passes json data structure. BuildFormPlain, BuildFormTable.php: doSubrecords() passes json data structure. Constants.php: New FORM_UPDATE, SQL_FORM_ELEMENT_SIMPLE_ALL_CONTAINER, ERROR_FORM_NOT_FOUND, API_FORM_UPDATE Evaluate.php: Exception text enhanced. QuickFormQuery.php: FillStoreForm.php included. Automatic detection of FORM_LOAD and FORM_SAVE removed. Instead the mode are given explicitly. mode=FORM_UPDATE implemented. Save.php: added TODOs in code. formEditor.sql: reformat code. Add 'FormElement.dynamicUpdate'. 'FormElemente.checkType': 'number' replaced by 'digit'. Added 'alnumx', 'digit'. Form 'form', 'formElement': output of 'title' replaced by 'name' - outputting 'title' confuses the user (tries to show records which do fit to the formEditor) and might produce recursion in evaluation (did not understand why, but happens). FormEditor: implemented 'dynamicUpdate', escpecially the 'type' select list will be adjusted dynamically.
-
- 21 Mar, 2016 1 commit
-
-
Carsten Rose authored
Radio. BuildFormBootstrap: rendering standard class removed. Constants: defined SYSTEM_CSS_CLASS_CONTAINER
-
- 16 Mar, 2016 2 commits
-
-
Carsten Rose authored
Constants, Store: added TYPO3_PAGE_TYPE to STORE_TYPO3 AbstractBuildForm: recode to use global $showDebugInfo. IMplemented deriveNewRecrdUrlFromExistingSip(). Added parameter $toolTip to createFormLink(). Rewrap Editlink BuildFormBootstrap: recode buildButton(). QuickFormQuery: code to set session lifetime disabled: useless
-
Carsten Rose authored
AbstractBuildForm, BuildFormBootstrap: implemented delete record for subrecords. formEditor.sql: show fewer columns in subrecords
-
- 14 Mar, 2016 1 commit
-
-
Carsten Rose authored
UsersManual/Index.rst: added Form.showButton Support: added findInSet() AbstractBuildForm: added createDeleteUrl(), prepareSubrecord(), getFormTable(). Rewrote buildSubrecord(): added 'delete' link, rearranged 'new' link. 'ShowDebugInfo' enhanced. BuildFormBootstrap: rewrote BuildButton() to switch New/Delete Button on or off. Show debugInfo as tooltip. Constants: New Subrecord contants. formEditor.sql: added Form.showButton. Adjusted records
-