- 10 May, 2016 5 commits
-
-
Carsten Rose authored
save: Fixed not to save SIP values without corresponding FormElement or values from FormElements which are hidden or readonly. Save.php: removed code to get FormElement - no benefit of this information.
-
Carsten Rose authored
FillStoreForm.php: fixed typo. AbstractBuildForm.php: fixed broken if statement. TestFormEditor.sql: extend formElement.modeSql.
-
Carsten Rose authored
Fixed a bug that Input fields are not rendered correctly the columntype are 'set' or 'enum'. Support.php: doAttribute() - attributes with type 'size' or 'maxlenght' and no value or value=0 are skipped and not created. AbstractBuild.php: a maxLenght formelement parameter needs to be numeric and (new) >0 to have an impact. Added calculation of maxlength for columntypes 'set' and 'enum': maxLengthSetEnum().
-
Carsten Rose authored
formEditor.sql: dyamic updating of 'subrecordOption' removed - previous settings will be loosed which is quite boring.
-
Carsten Rose authored
DynamicUpdate for checkBoxMulti: not possible at the moment - a persistant store per browser tab is necessary. Some work already done. FillStoreForm.php: clientValues will be copied to STORE_FORM if mode=show|requiered or flag 'dynamicUpdate' is set. Fixed bug with additional ',' in collectMultiValues().
-
- 09 May, 2016 8 commits
-
-
Carsten Rose authored
-
Carsten Rose authored
FillStoreForm.php: Recode. Class Evaluate will be instantiated only once. collectMultiValues() recoded not to use arrays anymore, instead a string with the final values, seperated by comma, is returned.
-
Carsten Rose authored
CheckBox Multi: checkboxes are now builded with uniq html names. This is necessary for the client, to assign values correctly to multiple checkboxes during form update by JSON data. HelperFormElement.php: new prependFormElementIdCheckBoxMulti() FillStoreForm.php: new collectCheckboxMultiValue(), process() recoded to collect checkBoxMulti values to one element. AbstractBuildForm.php: checkBoxMulti elements: a) no longer contains an '[]' at the end, b) get individual names
-
Carsten Rose authored
AbstractBuildForm.php: fixed broken JSON Object array
-
Carsten Rose authored
Support.php: If FE_MODE_SQL is given, overwrite the static option. FillStoreForm.php: Evaluate loaded elements to get FE_MODE_SQL evaluated.
-
Carsten Rose authored
AbstractBuildForm.php: fixed 'checkbox' update (api/load.php) - raw values like 'yes', 'no', 'enabled', 'disabled' are not understandable by the client (delivered via JSON) and needs to be converted to true/false.
-
Carsten Rose authored
-
Carsten Rose authored
-
- 04 May, 2016 3 commits
-
-
Carsten Rose authored
-
Carsten Rose authored
-
Carsten Rose authored
-
- 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 2 commits
-
-
Carsten Rose authored
Formelement.mode='lock': removed, cause it seems that there is no difference to 'readonly'. Inside the code, there is no difference UserManual/Index.rst: doc updated FillStoreForm.php, Save.php: same functionality like FE_MODE_READONLY - removed. formEditor.sql: definition updated
-
Carsten Rose authored
Support.php, FillStore.php, AbstractBuildFrom.php, BuildFormPlain.php, BuildFormTables.php, Constants.php, Save.php, BuildFormPlainTest.php
-
- 01 May, 2016 3 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
index.rst: updated - '&' is the new symbol to indicate constants. QuickFormQuery.php: changed the defaults for Bootstrap forms again - look nicer on UZH CD Layout. *.sql: Colorized subrecords for FormElements, ord will automatically computed, work on example forms (not finished)
-
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.
-
- 28 Apr, 2016 4 commits
-
-
Carsten Rose authored
Report.php, Database.php: triggerReport() supports stat[] with num_rows, affected_rows and insert_id. rowTotal does not contain anymore inserId (last_insert_id) from fired INSERT queries. Instead num_rows or affected_rows are choosen. New: <level>.line.inserId contains the insertId.
-
Carsten Rose authored
Parsing of the bodytext failed for single curly braces inside. BodyTestParser.php: After cleaning the bodytext all nesting curly braces will be replaced by complex token. stripAndRemoveComment() renamed to trimAndRemoveCommentAndEmptyLine(). process() throws an exception in case of unmatched open curly braces. New encryptNestingDelimeter() / decryptNestingDelimeter(). Remove handling for escaped curly braces in unNest() - this should not be necessary anymore.
-
Carsten Rose authored
-
Carsten Rose authored
-
- 27 Apr, 2016 3 commits
-
-
Carsten Rose authored
Sanitize.php: new sanitize class ALLBUT. New function safeFilename(). Support.php: New function mkDirParent(). Store.php: new system config variable SYSTEM_SITE_PATH. QuickFormQuery.php: fills STORE_RECORD before saving the current record. Save.php: moving the file to the final destination.
-
Carsten Rose authored
-
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
-
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
-