Commit Graph

115 Commits

Author SHA1 Message Date
Samuel Georges 21f3ac93c1 Add support for HTML comments
Fixes #1808
2016-02-27 09:46:00 +11:00
Pásztor Gábor e1a9d8d393 Minor fix
It does not worked for me in popup window.
2015-12-30 19:32:14 +01:00
Samuel Georges cf7585f79b Fixes formwidget logic leaking out of context
For example: a formwidget with no tabs can exist inside a set of preview content tabs
2015-09-10 20:51:02 +10:00
Samuel Georges 275463996e When toggling empty tabs: if a hidden tab was selected, select the first visible tab
Induce tab overlap using negative right margin instead (first-child tab can be hidden)
Use a slightly cleaner approach than in #1401
2015-08-29 18:42:29 +10:00
Jérémy Gaulin 6ec42da584 Hide FormWidget tabs when they contain no fields or only hidden fields after a toggle event on a field has occurred 2015-08-27 22:28:03 +02:00
Samuel Georges fc04bd1b4c Added new makeFormWidget() method to WidgetMaker for rendering form widgets individually 2015-08-07 19:06:04 +10:00
Samuel Georges 93f7b7800b Merge pull request #1306 from Flynsarmy/numberPattern
Allow overriding number field pattern attribute
2015-07-25 15:28:46 +10:00
Samuel Georges 4781c703bb Fixes previewMode on checkboxlist and radio
Checkboxlist wasn't showing the placeholder for empty preview values
2015-07-25 09:22:22 +10:00
flynsarmy a5b41269e7 Allow overriding number field pattern attribute 2015-07-24 16:24:50 +10:00
Samuel Georges d9b98bccca Minor 2015-07-21 07:57:04 +10:00
Samuel Georges 846feb6a33 FileUpload now triggers dependsOn event
form.beforeRefresh event now uses dataholder pattern
Improve exception handling in ControllerBehavior
2015-07-18 08:50:31 +10:00
Samuel Georges 84da7f3698 Improve tabs consistency, fix conflict with .primary
.primary -> .primary-tabs
.secondary -> .secondary-tabs
.master -> .master-tabs
2015-07-10 15:51:24 +10:00
Samuel Georges 4b36e1bd95 Merge pull request #1240 from alvaro-canepa/patch-5
Translate field value in preview mode
2015-07-04 10:25:35 +10:00
Samuel Georges 78cf62cff1 Add a note about October.Drivers for mail methods that use it
Trim field partials to allow :empty selector to work
2015-06-30 15:30:14 +10:00
Alvaro Cánepa 90c47b4e6f Translate field value in preview mode 2015-06-27 07:34:34 -03:00
Samuel Georges 37e5b2328f Form text/password/number fields now support maxlength attribute - Fixes #1210 2015-06-20 12:00:37 +10:00
Samuel Georges a1291c3716 Restyle Administrator pages 2015-05-21 22:55:08 +10:00
Samuel Georges ffd4b5a68a Extract checkboxlist all/none JS to october.form.js 2015-04-11 10:35:04 +10:00
Scott Bedard 035ebbbb68 Fixes issue #1035
Triggers a change event when the "all" or "none" checkboxlist helpers is clicked, enabling dependent fields be adjusted accordingly.

https://github.com/octobercms/october/issues/1035
2015-03-29 00:20:48 -04:00
Samuel Georges a1ac5edbf7 Various minor fixes and improvements 2015-03-18 19:28:14 +11:00
Samuel Georges 2561131f38 Allow balloon control markup to be used independently 2015-03-06 20:35:54 +11:00
Samuel Georges f869b8cc94 Gives FormWidgets the ability to say: "No labels, please"
ping @keiosweb
2015-03-03 20:24:14 +11:00
Samuel Georges 1ab8858271 Minor touch ups 2015-03-03 18:38:36 +11:00
Samuel Georges 2bdc5aea78 Add section form field type, minor style fixes 2015-02-24 18:46:20 +11:00
flynsarmy 74cd856f8a Accept any valid number, positive or negative 2015-02-22 13:45:40 +10:00
Samuel Georges 125c189e19 When a form tab contains no visible form fields, the tab itself is hidden 2015-01-29 20:32:29 +11:00
Samuel Georges 167d113c12 depends -> dependsOn
Hidden fields now retain their container div (hidden when empty)
2015-01-29 20:32:24 +11:00
Samuel Georges e9c8107cc5 Checkbox list should support preview mode 2014-12-06 12:16:09 +11:00
Samuel Georges 89c878b439 Fixes checkboxlist ignoring empty data sets 2014-12-04 17:20:53 +11:00
Sam Georges f458fb7704 Overhaul Form layouts, adds FormTabs.php class for managing tab properties 2014-11-12 07:33:58 +11:00
Sam Georges d92268b516 Oops, broke the switch 2014-10-11 14:32:30 +11:00
Sam Georges 71f9df8e13 Use HTML to pass unchecked checkboxes/switches. Refs #648 2014-10-11 14:31:09 +11:00
Samuel Georges 182bb01167 Merge pull request #648 from Flynsarmy/checkboxZeroVal
Send a 0 value when a checkbox is unchecked
2014-10-11 14:21:43 +11:00
Sam Georges eff70e2342 Minor 2014-10-08 18:55:17 +11:00
Sam Georges 8d5253930d Form fields can now be marked as hidden 2014-10-08 18:55:09 +11:00
alekseybobkov dcf7bb7d4f Merge branch 'develop' into misc-tmp 2014-09-27 23:29:41 -07:00
flynsarmy 7d8425538b Send a 0 value when a checkbox is unchecked 2014-09-26 09:20:01 +10:00
Sam Georges 746f425d88 Added new containerAttributes property to form fields 2014-09-25 18:05:35 +10:00
alekseybobkov a9e2e2d80f Improvements in the CMS objects and back-end UI. 2014-09-18 20:34:24 -07:00
alekseybobkov a77b290a8e Improvements in the back-end widgets 2014-09-18 20:34:24 -07:00
Sam Georges 4763c9598a Add valueFrom to form field, rename field->columnName to field->fieldName 2014-09-17 14:43:24 +10:00
Sam Georges d4e28a62cc Added new `hint` form field type (see Backend > Forms docs). 2014-09-13 15:14:03 +10:00
Sam Georges f829fbca3c column-name -> field-name 2014-08-30 15:06:11 +10:00
Sam Georges 2adeb7de2d Streamline partial usage in form fields and list columns 2014-08-23 11:11:49 +10:00
Paul Wilde a3c94d6355 Escape unescaped translations. Add trans() function during output for the Balloon and Widget Selector. 2014-08-12 21:46:19 +01:00
Samuel Georges 4bf9da8b56 Merge pull request #528 from whsol/add_translation_to_backend
Add Translation to backend controls
2014-08-07 20:41:18 +10:00
felix 7fd9e267a9 add Translation to backend
switch
relation create_button
relation add_button
2014-08-07 12:58:17 +04:00
Sam Georges e5830171f6 Fixes bug where dropdown are empty for non string values 2014-08-06 11:50:20 +10:00
Samuel Georges 9f1b0415aa Merge pull request #443 from jbh-/hotfix/NumberFieldValidation
Add pattern to number field to only allow for numbers
2014-07-19 09:14:35 +10:00
Sam Georges 05842b6cad Fixes #444 2014-07-18 22:47:36 +10:00
Josh Hall 67437098cb Add pattern to number field to only allow for numbers 2014-07-17 16:07:29 -05:00
Sam Georges 62df6948b0 Required fields are now automatic from model validation
Make required asterisk more obvious
2014-07-12 16:56:26 +10:00
Josh Hall 6219c9ef1b Adds an asterisk to required backend form fields 2014-07-11 11:21:20 -05:00
Sam Georges b09b6d6863 Improved naming onReload -> onRefresh
Improved Record finder
2014-07-03 18:37:51 +10:00
Sam Georges ddb6337efe EditorSettings -> EditorPreferences (System has settings, User has preferences, App has configuration)
Create a My Settings page, now linked when clicking a User
Create backend preferences form for setting locale
Dropdown options now support an image or icon in their options
2014-07-01 17:17:53 +10:00
Sam Georges 766d012187 Refactor Form widget logic and partials, better naming and container usage. 2014-06-30 13:23:08 +10:00
Sam Georges 4a9fe06d50 Form fields can now define "depends" to refresh individual fields when they are changed
Form field options can now be deferred using a closure
2014-06-29 13:36:25 +10:00
Sam Georges 9207424fbe For field partial, if no path specified, use the field name 2014-06-28 21:12:19 +10:00
Sam Georges 22484d12c2 Use text type instead of number type, spinners are bad 2014-06-20 21:04:53 +10:00
Sam Georges 60de683cb8 Add new form field type called "number" 2014-06-20 17:41:51 +10:00
Sam Georges dfee8dc5c0 When checkbox list has more than 10 items, display it in a scrollable area 2014-06-16 17:59:29 +10:00
Adis 949a5dc0d9 Add 'checked' property in _field_radio.htm
Add 'checked' property in _field_radio.htm
2014-06-15 23:50:17 +06:00
alekseybobkov 4a095160cd Added Preview mode for the multi-image file uploader, minor style improvements 2014-05-21 17:51:50 +11:00
Jasper 8d82727310 Updated CMS language support
Moved hard-coded text in "cms" to the language files (English and
Dutch). And some minor changes.
2014-05-16 01:04:40 +02:00
Sam Georges 71a5dd67ab Welcome to the world, October :-) 2014-05-14 23:24:20 +10:00