Commit Graph

2651 Commits

Author SHA1 Message Date
Ben Thomson 8c1106f027 Allow list configs to add class to head row cell (#4207)
Credit to @bennothommo. Documented by https://github.com/octobercms/docs/pull/367
2019-03-25 13:37:32 -06:00
Ben Thomson 3363b219f6 Delay backend controller middleware until after request is processed (#4190)
Credit to @bennothommo. Fixes #4183.
2019-03-21 01:19:28 -06:00
Tomy Smith 40bc6e0d67 Ignore disabled FormWidgets in getSaveData() (#4116)
Fixes #3983. Credit to @tmus.
2019-03-19 16:45:32 -06:00
Larry Barker 5c15687032 Support CMS module being present but disabled (#4202)
Credit to @LarBearrr
2019-03-19 16:31:14 -06:00
Luke Towers 3954704dda Fix issue with multiple repeaters with the same fieldname embedded in the same controller
There was a conflict between two repeaters that had the same fieldName (data) bound to the same controller. Example:

Controller: Events
Manages a ReportTemplate model with a custom popup Form widget that uses a grouped repeater with the field name data to define the available "fields" within a ReportTemplate
Also manages Report models through a relation controller that uses a Form widget with a regular repeater with the field name data that defines the values of the fields defined by the associated ReportTemplate.

Since both repeaters had the field name of "data", but one of them was grouped and the other wasn't, this would cause an issue in Repeater::processExistingItems() where the grouped repeater would attempt to process the ungrouped repeater's data which would then fail. This issue could easily cause many other vastly more confusing and difficult to detect issues in cases where multiple repeaters with the same field name AND the same mode (grouped vs regular) existed on the same page under different contexts. The simple solution is just to ensure that the indexInputName and groupInputName are both taking the repeater's alias into account when being generated to ensure that everything stays unique like it should.
2019-03-18 12:39:12 -06:00
Luke Towers f168c1a601 Fix support for main menu items having a numeric value for `counter` 2019-03-16 13:53:25 -06:00
Ben Thomson 13a7cc915d Use Form getSaveData method when saving form widgets within repeaters (#4160)
Credit to @bennothommo
2019-03-15 22:39:34 -06:00
Alexander Guth 13d710b161 Reuse the model instance from Form widget (#4193)
Credit to @alxy & @jimcottrell . Refs:
https://github.com/rainlab/translate-plugin/issues/209
https://github.com/rainlab/translate-plugin/issues/242
https://github.com/rainlab/translate-plugin/issues/330
https://github.com/rainlab/translate-plugin/issues/380
https://github.com/jan-vince/smallextensions/issues/11
https://github.com/OFFLINE-GmbH/oc-mall-plugin/issues/128
https://github.com/OFFLINE-GmbH/oc-gdpr-plugin/issues/21
https://github.com/OFFLINE-GmbH/oc-gdpr-plugin/pull/55
df9c8fd365
https://github.com/octobercms/october/pull/3984
2019-03-15 22:32:36 -06:00
Luke Towers d5e7419312 Support enableDefaults on repeaters using grouped mode 2019-03-12 01:19:37 -06:00
Sicklou 12ebefccd4 Update French Translation (#4179)
Credit to @Sicklou
2019-03-09 07:28:23 -06:00
Ayumi Hamasaki dd53206a82 Service Workers Invalid security token and Clear Site Data HTTP Header (#4088)
If a website has a Service Worker installed it would load and register before a User tries to login to the backend causing a "Invalid security token" message. This PR unregisters any installed Service Worker when a User opens the backend Signin webpage.

I have also added the NEW Security Headers to add Protection to October's Cache and Cookies. This includes two new Middleware that first clears any bad cached data before a User tries to login and the second Middleware will clear all the sensitive User Data when a User signs out of the Backend.

For more info on the new Security Header 'Clear Site Data' you can see the spec found here: https://www.w3.org/TR/clear-site-data/

Fixes #4076, fixes #3707.
2019-03-01 16:22:18 -06:00
Ben Thomson 57f358b638 Use 1px for 'min-size' layout rows to fix Firefox spacing issue (#4171)
Fixes #4114. Credit to @bennothommo
2019-02-28 13:08:43 -06:00
Ben Thomson a89f1f1c3a Add Closure use declaration (#4170) 2019-02-28 14:54:00 +02:00
Ben Thomson 57a074364e Allow controller middleware in backend controllers (#4106)
Credit to @bennothommo Related: https://github.com/octobercms/october/pull/4088
2019-02-27 14:27:41 -06:00
Luke Towers 8f5ff1be5a Support groups field being removed 2019-02-25 13:21:33 -06:00
Luke Towers 5dfb5ca988 Added backend.layout.extendHead event 2019-02-25 12:56:55 -06:00
Mohamed Ali Behiry d1c71af4da Improve Arabic translation (#4163)
Credit to @mabehiry
2019-02-25 09:26:21 -06:00
BenjaminMINK ecb2b3fe9e Improve French translations (#4157)
Credit to @BenjaminMINK
2019-02-22 09:29:43 -06:00
Luke Towers b39eb03336 Defaulted the main menu counter to sum it's side menu counters 2019-02-21 11:55:43 -06:00
Luke Towers d6f8cc179d Support abort(404) in the backend module 2019-02-21 10:44:58 -06:00
fansaien 8a60d3c19a Fire backend.list.extendRecords event during export useList (#4148)
Provides an opportunity to modify and / or return the $results collection object before the controller exports it. Credit to @fansaien
2019-02-19 17:14:32 -06:00
Luke Towers bbf398133e Fix issues with AJAX handlers on dashboard widgets. Replaces #4132 2019-02-13 15:05:18 -06:00
Luke Towers ac5bc866ff Prevent password from being HTML encoded in the invite email 2019-02-13 14:55:29 -06:00
Luke Towers c55cc622ff Added new Inline (no icons) navigation mode to the branding options 2019-02-13 14:55:03 -06:00
Luke Towers cb87802080 Added support for counter and counterLabel to main menu.
Refs: #16, Refs: 7bcec1bd99, Replaces: #4061
2019-02-13 14:54:13 -06:00
Luke Towers 1fc8dc6fd4 Added ability to require permissions use ReportWidgets 2019-02-11 16:02:30 -06:00
Panagiotis Koursaris bb0a23f54c fixes enable Defaults on repeater (#4129)
Credit to @panakour
2019-02-11 09:54:55 -06:00
Ben Thomson 10d97d515f Use singular byte for '1 byte' filesize (#4130)
Credit to @bennothommo
2019-02-11 09:48:15 -06:00
Mahmut Namli 7077a1cef3 Improved Turkish translation (#4121)
Credit to @mahony0
2019-02-07 09:18:42 -06:00
fansaien 680c729f90 Set the datetime value with time 00:00:00 when using the date mode (#4111)
Credit to @fansaien
2019-02-06 10:23:50 -06:00
Szabó Gergő 6dbe9be615 Improve the Hungarian translation (#4112)
Credit to @gergo75
2019-02-05 16:27:32 -06:00
Ben Thomson 4f3997c6de Make the filesize display in file upload widget more consistent (#4110)
Credit to @bennothommo. Fixes #4085.
2019-02-04 12:54:07 -06:00
Ben Thomson 970d5622c0 Allow datatables to work within a repeater (#4102)
Fixes #4063. Credit to @bennothommo.
2019-02-04 12:50:40 -06:00
Luke Towers 78e68ed632 Support nested jsonable values in List columns, refs: #2990, #2995, #3088, 2019-02-01 15:11:57 -06:00
Antonie Hogewoning 16ca521cd0 Fix setting default values for repeater in update context (#4098)
Credit to @CptMeatball
2019-01-31 13:50:21 -06:00
Denis Denisov 880d614bc5 Fixes bugs with 'collapsed' saved to cookies (#4080)
Credit to @w20k. Fixes #4047
2019-01-23 01:30:53 -06:00
Denis Denisov ec2a0d5fb0 Tabs and tabels scrolling fix (#4069)
Fixes #4037. Credit to @w20k
2019-01-21 23:35:27 -06:00
Farrow 1caaac9704 Added favicon management to back-end customisation (#4045)
Credit to @Farrow. Also accessible with `brand.faviconPath` configuration item.
2019-01-21 23:25:56 -06:00
Luke Towers 920eb15af5 Added support for using the record finder without a model relationship
Added useRelation and modelClass config options
2019-01-18 18:16:16 -06:00
Luke Towers 8c9be817cc Added support for min, max, and step for the number field type 2019-01-18 18:14:25 -06:00
Tobias Kündig 67ee2229a5 Added manual deleted_at checks (#4051)
Fixes #4046 

It is possible that the user model gets fetched using the SoftDelete
trait before the relevant migrations were applied during an update.
To fix this edge case the user model is always fetched using the
withTrashed scope and the deleted_at check is done manually afterwards.

@see https://github.com/octobercms/october/issues/3999
2019-01-18 14:42:25 -06:00
Nathan van der Werf 7232e7a29d Escape output to prevent XSS injection (#4074)
Credit to @nathan-van-der-werf
2019-01-18 10:26:56 -06:00
Luke Towers 3ff77120c6 Improved disabled support for balloon-selector and fileupload fields 2019-01-16 13:32:31 -06:00
Luke Towers cc84c7cf7a Revert back to output() and outputThumb() methods
Adds a default false flag to enable the new behaviour of returning responses instead.
2019-01-16 12:27:07 -06:00
Luke Towers 743c74643a Switched to getHttpResonse() instead of output() 2019-01-15 15:58:45 -06:00
Luke Towers 2fb44fdbee Return backend 404 from files controller 2019-01-15 15:05:57 -06:00
Luke Towers 2758c6711b Added Go to previous page link on the access denied page 2019-01-15 13:53:06 -06:00
Anže Časar 74484b1ec2 Fix default value translation (#4062)
Credit to @acasar
2019-01-15 13:38:22 -06:00
Luke Towers 2d6b9c76a9 Recompile assets 2019-01-15 13:35:12 -06:00
Luke Towers d6e680799f Reduce reliance on CMS module from Backend module
added backend 404 view, fixed return to backend URL in the access denied view on backend only instances
2019-01-15 11:46:48 -06:00
Luke Towers a9a0544ab0 recompiled stylesheets, retaining newlines for improved diff readability 2019-01-14 11:52:16 -06:00
Luke Towers 6c0a77c064 Fix broken tests 2019-01-10 20:49:15 -06:00
Luke Towers 1c0fd1b419 Yet another change to perfect the getParentForm() method 2019-01-10 18:59:29 -06:00
Luke Towers 39987677f0 Peer review of 1b3263d4c7 2019-01-10 17:57:32 -06:00
Luke Towers 5853cc54c4 Ensure that FormWidgets are correctly initialized with previewMode even on AJAX requests 2019-01-10 17:39:41 -06:00
Luke Towers 1b3263d4c7 Pass the containing Form widget to the FormFields that it generates.
This enables complex FormWidgets that need to know what Form widget they belong to to access that information with $this->formField->form; This also enables a fix for: https://github.com/rainlab/location-plugin/issues/48
2019-01-10 10:22:59 -06:00
Luke Towers 064daa2d2e Compiled assets, minor docblock update 2019-01-03 16:26:30 -06:00
fansaien 2dcd84c4f2 Fix the input trigger API where a form element doesn't exist (#4033)
There are no `form` elements in the preview context of a form, so this adds an alternative selector to use when no common `form` elements are found for the Input Trigger API to use. Credit to @fansaien
2019-01-03 16:24:43 -06:00
fansaien d6b1b6e95d Fixed the Delete and Enter not being captured in keydown.oc.richeditor (#4015)
Credit to @fansaien.

The keydown event can not capture the Backspace(Delete) and Enter key event. 

Moved the binding keydown function into froalaEditor.initialized event to solve this issue. Please review this Froala Editor issue: https://github.com/froala/wysiwyg-editor/issues/1879

The editor.events doesn't support off function. So, can not call off function in the unregisterHandlers()
2019-01-03 14:07:29 -06:00
fansaien 5db5522d4d Fix the filter options being escaped twice (#4032)
Credit to @fansaien.

Reference: https://github.com/octobercms/october/pull/3793.  This commit added the e() function for translation results. 

Because the filter is using the mustache template, and the manual said: All variables are HTML escaped by default. If you want to return unescaped HTML, use the triple mustache: {{{name}}} (https://mustache.github.io/mustache.5.html)

That means the string will be escaped twice. So, I removed the e().
2019-01-03 14:04:26 -06:00
Ben Thomson ee003c416c Redirect user to last available page in list widget if current page is unavailable (#4020)
Credit to @bennothommo. Fixes #4008.
2018-12-30 12:49:42 -06:00
Ben Thomson 63dfb7fad3 Replace deprecated prepareModel call in ImportExport behavior 2018-12-30 16:35:17 +08:00
Ben Thomson b6bd643e21 Rename prepareModel to prepareQuery, deprecate prepareModel 2018-12-30 16:25:01 +08:00
Luke Towers 26173486d3 Fix issue where the clear search button would submit a form if the search widget is within an HTML form 2018-12-28 11:51:51 -06:00
Luke Towers 400ce2391e Fix support for the placeholder property in RichEditor FormWidgets 2018-12-27 15:28:10 -06:00
Luke Towers a2708ee0f5 Added backend.manage_default_dashboard permission to lock down who has access to change the default dashboard for the system. Fixes #2176 2018-12-20 17:26:49 -06:00
Luke Towers ed226e0b09 Recompiled hotkey JS 2018-12-20 13:41:32 -06:00
Luke Towers 44ac62abeb Recompiled LESS using new CSS minification 2018-12-20 13:41:09 -06:00
munxar e6f4e13446 Added NestedForm FormWidget (#3977)
Credit to @munxar
2018-12-19 21:54:20 -06:00
Woo eb1d3fadbc Add format property to list columns (#3990)
Credit to @vicrly. Fixes #3967.
2018-12-19 20:52:07 -06:00
Felipe Alves Reis 23817c363c Added invalid login translated message in backend lang file (#3994)
Credit to @felipe-alves-reis
2018-12-19 20:26:25 -06:00
fansaien db7610d5c4 Removed the deprecated hotkeyMac (#3995)
Reference: fd264a5fb4 (diff-79eab92a9098980b73745ce9b5ac1895)
2018-12-19 20:21:05 -06:00
Luke Towers 85e614203c Add soft delete column to backend users so that migrations that use the User model work 2018-12-19 19:43:04 -06:00
Jim Cottrell 34da61805b Replace URL parameters dynamically without needing a list in advance (#3361)
Fixes #3358. Credit to @jimcottrell
2018-12-18 10:03:03 -06:00
Luke Towers 54a67ca556 Implemented soft deleting for backend users 2018-12-17 23:09:17 -06:00
Ben Thomson 14c4d1392e Datatable dropdown usability tweaks (#3980)
Adds a couple of usability tweaks to the dropdown cell type in the data table widget, to more closely mimic a native dropdown field.

Pressing the up or down arrow keys when the cell is focused but with the dropdown closed will select the previous or next item automatically and set it as the cell value. This does prevent the usual table function of going to the previous or next row when focused on a dropdown cell, but I think it's a worthwhile trade-off. When the dropdown is open, the up and down arrows work the same as previously implemented.

Typing out characters will initiate a search and select the first matching option automatically and set it as the cell value. For example, for the following options:

Apples
Oranges
Bananas
Typing out o and r on the keyboard will automatically select the Oranges option.

Credit to @bennothommo
2018-12-16 09:30:23 -06:00
vosco88 a11868169e Add reset search (X) to toolbar search input (#3975)
Credit to @vosco88
2018-12-14 09:04:01 -06:00
ayumihamsaki2 c6e8ddaa12 Remove unused X-UA-Compatible meta tag (#3973)
This is only used by IE8 & 9 which have a combined global usage of 0.3% so there's no sense in keeping it.
2018-12-08 13:08:46 -06:00
ayumihamsaki2 28061bf3e9 Update jquery.isotope library from v1.5.26 to v3.0.6 (#3966)
Update jquery.isotope library from v1.5.26 to v3.0.6. Credit to @ayumihamsaki2. Refs: https://github.com/octobercms/october/issues/3958
2018-12-07 18:31:51 -06:00
Luke Towers d53e174469
Change number field type to use HTML5 number type
Credit to @w20k for the solution. Fixes #2311.
2018-12-06 14:40:33 -06:00
SeriousKen 9d8416e178 Added morphTo to list of singular relations (#3809)
Credit to @SeriousKen. Fixes #3807
2018-12-06 10:43:50 -06:00
Ayumi Hamasaki dcec14b2e9 Update Dashboard Columns from 10 to 12
This PR has been re-coded to split the old PR into two separate PR's. This PR relates to github Issue: https://github.com/octobercms/october/issues/3823
2018-12-06 12:32:57 +00:00
Tim caf7cb406f MediaFinder: trigger change event (#3446)
Credit to @scorewinner.
2018-12-04 11:12:26 -06:00
Christos Christou 9f63ad2739 Fix Repeater max & min client side validation when using groups (#3953)
Credit to @c2webstudio.
2018-12-03 13:53:12 -06:00
Tobias Kündig 7a277b4b9c Added support for `dependsOn` with relationships (#3539)
Credit to @tobias-kuendig. Added $.oc.relationBehavior.changed function. To keep track of changes made using the relation controller this new "changed" function is called every time a record is created, added, removed or deleted. The function triggers the change.oc.formwidget event on the form field that belongs to this relation controller so other form fields are notified about the changes.
2018-12-03 10:08:00 -06:00
Farrow a1fb23a984 Adds i18n support for the form field default property (#3546)
Credit to @Farrow. Previously when creating a backend form with RainLab.Builder if you filled in the "Default" property using the i18n (to get, for example, acme.plugin::lang.field.default) then that string would be output exactly on the form (i.e. <input value="acme.plugin::lang.field.default"...>) instead of being replaced with the actual value of that key from the lang file.
2018-12-01 13:05:47 -06:00
Ayumi Hamasaki 8e9b3dba54 Improve visibility of code editor buttons in the backend (#3948)
Credit to @ayumihamsaki. Fixes #3947.
2018-11-30 16:59:08 -06:00
Francesco Passanti 329bb6f202 Fix relation controller lists onClick handling for VARCHAR keys (#3544)
Credit to @FrancescoPassanti
2018-11-23 00:58:28 -06:00
Romaldy Minaya cca3c704a3 Fixes #3119 (#3163)
Added readOnly support to RecordFinder, Switch widget and relation widget including dropdown Fixes #3119. Credit to @romaldyminaya
2018-11-23 00:33:01 -06:00
Antonie Hogewoning 0e9b3ce786 Combine jQuery and migrate into the same file (#3919)
Fixes #3917. This fixes the double alias that was introduced when jquery was updated and migrate was added. Credit to @CptMeatball
2018-11-17 16:22:51 -06:00
Nathan van der Werf 6fb6211c56 Escape output to prevent XSS injections (#3924)
Credit to @nathan-van-der-werf
2018-11-15 15:05:44 -06:00
Denis Denisov 2b16bad0fe Ignore controllers of disabled plugins (#3923)
Fixes #3905. Credit to @w20k
2018-11-15 13:51:11 -06:00
Siarhei Karavai ff8b967b75 Add support for placeholder in TagList widgets (#3453)
Credit to @GinoPane.
2018-11-15 13:32:59 -06:00
Luke Towers e726165554
Add Tab icons functionality (#3901)
Credit to @ayumihamsaki for the original proposal, @Teranode for the initial work. Related #3888, #3856.
2018-10-30 20:06:33 -06:00
Ayumi Hamasaki 567f415e1e Updated jQuery from V2 to V3.3.1, added jQuery Migrate (#3886)
Credit to @ayumihamsaki. Fixes #3230.
2018-10-30 19:36:44 -06:00
Luke Towers 5e877ea2ba Use a public property for the cache key for settings models that cache rendered CSS
This enables developers to modify what the cache key is for a given instance of a settings model so that they can do things like load user dependent settings values and have those values affect the rendered CSS. Previously the key being static across all instances of a given setting model would prevent that from being feasible without clearing the cache for every request.
2018-10-30 16:21:57 -06:00
Alwin Drenth 00122108b1 Update Dutch (NL) translation (#3895)
Credit to @adrenth
2018-10-26 09:14:56 -06:00
Szabó Gergő 9522deff4e Add filters to log pages (#3815)
Credit to @gergo85. Thanks to @petehalverson for octodock to test this with
2018-10-16 09:09:41 -06:00
Luke Towers 2c82b05062 Added backend.ajax.beforeRunHandler event 2018-10-14 10:32:47 -06:00
Denis Denisov 99bfae4ed0 Revert min-width that breaks layout (#3854)
Revert min-width change as it breaks the Rainlab.Builder plugin layout (and possibly other things). Credit to @w20k.
2018-10-10 14:24:05 -06:00
Kanstantsin 69a26aa8f2 Commit deferred bindings on model created with RelationController (#3843)
Fixes #3829. Credit to @iotch. Tested by the fantastic Octodock provided by @petehalverson
2018-10-04 08:35:30 -06:00
Kanstantsin 813721edf1 Change z-index of full-screen markdown editor (#3838)
Fixes #3837. Credit to @iotch. Tested with Octodock provided by @petehalverson.
2018-10-03 10:56:08 -06:00
Luke Towers 29541394a3
Fix issues with CloudFlare in the backend (#3841)
Related to f068b13851. Fixes #3839
2018-10-03 10:48:35 -06:00
Nicolas Da Mutten 2372f0eb23 Adds missing Content-Type header to CSV-export (#3787)
Credit to @cleverer
2018-09-25 08:55:14 -06:00
Luke Towers 5b7d9041fd
Integrate flag-icon-css (#3797)
Replaced the existing PNG flag icons with the flag-icon-css library that uses SVGs, has more flags, and is more active (i.e well maintained). Credit to @mariavilaro & @w20k. Thanks to @petehalverson for Octodock for easy testing of this.
2018-09-25 08:23:18 -06:00
Rike-cz cf8a73f0a2 Ensure that fields are defined before attempting to render a specific field (#3812)
Credit to @Rike-cz
2018-09-22 19:22:02 -06:00
Szabó Gergő 0d451e3b0f Add favicon to back-end login page (#3803)
Credit to @gergo85
2018-09-19 16:03:13 -06:00
Nathan van der Werf 9030f27cc8 Modify language label for password reset (#3799)
Credit to @nathan-van-der-werf
2018-09-19 08:01:48 -06:00
LucasZdv 9d126a0ab6 Filter group translatable options (#3793)
Fixes #3789. Credit to @LucasZdv
2018-09-17 09:33:13 -06:00
Alexander Shapoval 9da0af4533 Add ability to specify one CSS class to apply to all tab panels (#3761)
Credit to @ebashu-on-holidays
2018-09-16 10:51:00 -06:00
Tobias Kündig cf9d487b30 Removed unneccessary css rule (#3777)
The removed css rule makes filelist entries unreadable on touchscreen clients
that also have default pointer input support. The entries have a blue background
with white text when hovered. By setting the background to transparent the
text is no longer readable. Credit to @tobias-kuendig
2018-09-12 11:03:58 -06:00
Szabó Gergő 8f82a89147 Apply custom secondary color to Balloon Selector (#3748)
Credit to @gergo85
2018-09-04 11:57:28 -06:00
Szabó Gergő 82b45268c7 Change the lang code in the html templates (#3754)
Credit to @gergo85
2018-09-04 11:54:26 -06:00
Szabó Gergő 69988837d5 Fixed readonly on switch and checkbox field types (#3750)
Credit to @gergo85
2018-09-03 14:36:22 -06:00
vosco88 55575e316b Update reportcontainer.less (#3737)
Fix minor padding issue in Firefox. Fixes #3731. Credit to @vosco88
2018-08-31 00:36:47 -06:00
Artem Korsunov 303dcab353 Update Russian translation (#3735)
Credit to @Konfuze
2018-08-30 13:11:11 -06:00
Samuel Georges e32de7b753 Annotate class methods 2018-08-30 13:37:39 +10:00
Samuel Georges 5cc327c45c
Merge pull request #3690 from nathan-van-der-werf/feature/cleanup
Code cleanups
2018-08-30 13:12:42 +10:00
Samuel Georges 6099096e5d Increase visibility of close button
Fixes #3723
2018-08-30 12:40:45 +10:00
Samuel Georges f068b13851 Instruct Rocket Loader to ignore core JS libs
These appear to break for users on CloudFlare possibly due to double minification
Fixes #3602
2018-08-30 12:30:27 +10:00
Nathan van der Werf 743252c3ff
Merge branch 'develop' into feature/cleanup
# Conflicts:
#	modules/backend/widgets/Form.php
2018-08-29 19:18:01 +02:00
Samuel Georges 2d77565e6c Peer review 52d1388e4e
This uses a simpler approach and leverages improvements to the validation trait
See 574031d3ee
Refs #2489
2018-08-29 12:19:33 +10:00
Luke Towers 52d1388e4e Automatically use field labels as custom attribute names for a nicer validation message
Fixes #2489
2018-08-26 13:39:49 -06:00
Luke Towers fcec026dff Add support for checking if nested form fields are required for visual indicator 2018-08-26 12:29:37 -06:00
Nathan van der Werf 8fd16d4db6
Merge branch 'develop' into feature/cleanup
# Conflicts:
#	modules/backend/formwidgets/FileUpload.php
2018-08-24 19:52:54 +02:00
Nathan van der Werf 0f0d108da0
Remove unused imports 2018-08-24 19:51:59 +02:00
Nathan van der Werf 66fa03f17e
Revert "Remove unused imports"
This reverts commit 742a5f415b.
2018-08-24 19:40:40 +02:00
Szabó Gergő e46eff8a26 Remove hard height constraint from previewing uploaded images (#3718)
Fixes #3698. Credit to @gergo85
2018-08-23 09:32:18 -06:00
Luke Towers fd4ee47065 Improved repeater item collapse button when remove button not present 2018-08-22 21:06:06 -06:00
Luke Towers 29c0c8c33d Improvements to Repeater form widget styling
Improved the styling of the Repeater form widget, made it easier to distinguish between individual repeater items
2018-08-22 20:51:26 -06:00
Samuel Georges bf841b4340 Minor peer review 2018-08-21 13:24:59 +10:00
vanmil 38bf854051 Add ability to use model method to define availableColors (#3704)
Credit to @vanmil. Documented in https://github.com/octobercms/docs/pull/314
2018-08-20 08:45:26 -06:00
Luke Towers 1c7b311ea9 Added inline API documentation for media manager:
Added documentation for the following events:
media.folder.delete
media.file.delete
media.folder.rename
media.file.rename
media.folder.create
media.folder.move
media.file.move
media.file.upload
2018-08-18 08:49:57 -06:00
Szabó Gergő 7aca6057bb Improve the markup tags settings page UX (#3703)
Credit to @gergo85
2018-08-17 11:13:14 -06:00
Szabó Gergő 37da24d060 Update the Hungarian translation (#3702)
Credit to @gergo85
2018-08-17 10:27:23 -06:00
Maria Vilaró 5c72ad1474 Add translations for Catalan (#3694)
Credit to @mariavilaro.
2018-08-16 08:14:26 -06:00
Luke Towers be839d0a07 Documented FilterWidget events:
Added inline documentation for the following filter widget events:
backend.filter.extendQuery
backend.filter.extendScopesBefore
backend.filter.extendScopes
2018-08-15 21:42:56 -06:00
Luke Towers 4078e6a56f Provide inline documentation for the FormWidget events:
Documented the following:
backend.form.beforeRefresh
backend.form.refreshFields
backend.form.refresh
backend.form.extendFieldsBefore
backend.form.extendFields
model.form.filterFields
2018-08-15 21:00:31 -06:00
Nathan van der Werf ee9414f3fd Simplify ternary operators 2018-08-15 19:26:20 +02:00
Nathan van der Werf 8b6f11e6ac Extract child instructions 2018-08-15 19:25:42 +02:00
Nathan van der Werf fbca3bea92 Remove redundant variables 2018-08-15 19:23:12 +02:00
Nathan van der Werf ab73442e3d Add missing break statement 2018-08-15 19:18:52 +02:00
Nathan van der Werf 2cdbb37a36 Remove duplicate array keys in language files 2018-08-15 19:18:26 +02:00
Nathan van der Werf 62c59a4903 Refactor ternary operators to null coalescing operators 2018-08-15 19:15:13 +02:00
Nathan van der Werf a3d7a028b4 Replace is_null with "=== null" comparison 2018-08-15 18:54:46 +02:00
Nathan van der Werf 77b6f07291 Modify conditions to use elvis operators 2018-08-15 18:53:11 +02:00
Nathan van der Werf bc17975634 Remove alias functions 2018-08-15 18:51:25 +02:00
Nathan van der Werf 123145fd54 Remove unnecessary parentheses 2018-08-15 18:49:52 +02:00
Nathan van der Werf a075be206b Replace class references with "self" 2018-08-15 18:47:06 +02:00
Nathan van der Werf 02bd38cfb1 Merge if constructs 2018-08-15 18:45:37 +02:00