424 Commits

Author SHA1 Message Date
Samuel Georges
19bab2b472 Merge pull request #2419 from LukeTowers/patch-6
Pass current model to record finder scope method
2016-10-15 10:50:54 +11:00
Samuel Georges
5eab7bc365 Handle when editor is not initialized yet
https://github.com/rainlab/pages-plugin/issues/197
2016-10-13 05:57:38 +11:00
Luke Towers
567e464550 Pass current model to record finder scope method
This improves the extensibility of the record finder form widget by passing the current model to the query scope that will be applied to the records being displayed. It allows the use of attributes of the current model in the query scope applied to the records being displayed as options to select.

In my use case, I have a main Survey model with related Field models. Field models can have parents and children for a tree structure, but I only want fields to have parents and children that are:
**a) Not the main record itself**
**and b) Members of / related to the same Survey model**

By passing the current model to my query scope, I can filter out ineligible records like so:
```
/**
 * Limit results to only records that are eligible to be parents of the provided model
 *
 * @param Query $query
 * @param Model $model The model to check for eligible parents agains
 * @return Query
 */
public function scopeEligibleParents($query, $model) {
    return $query->where('id', '!=', $model->id)
            ->where('parent_id', '!=', $model->id)
            ->where('survey_id', '=', $model->survey_id);
}
```
2016-10-11 17:15:40 -06:00
Samuel Georges
de1b85e796 Rich editor content saves when in code view mode
Refs https://github.com/rainlab/pages-plugin/issues/193
2016-10-12 06:42:36 +11:00
Samuel Georges
8c91bfe66c Update froala to latest, recompile assets 2016-10-12 06:33:28 +11:00
Samuel Georges
5746f4dec0 Fixes missing ace vendor path
Refs https://github.com/rainlab/pages-plugin/issues/193
2016-10-12 06:13:01 +11:00
Szabó Gergő
da254af4e6 Update the Hungarian translate (#2334)
* Update the Hungarian translate
2016-09-03 09:44:32 +10:00
Szabó Gergő
813fdef1d1 Translated Froala missing keys for Hungarian 2016-08-16 08:49:20 +02:00
Jérémy Gaulin
66965e7a43 Translated missing keys 2016-08-15 22:25:55 +04:00
Samuel Georges
1c3631bede Datepicker can use an expressed date for default value
@Carbon::parse was still failing, wrapped in do nothing try/catch instead
We don't seem to need to prefix time values anymore, since DateTimeHelper::makeCarbon should handle it
Fixes #2299
2016-08-13 11:29:01 +10:00
Samuel Georges
0573e0593a Search should persist across pagination
The search term is now reset only when the record finder is first opened
Fixes #2161
2016-07-30 11:46:36 +10:00
Samuel Georges
675a6a4224 Code improvements
Refs #2235
2016-07-23 14:22:36 +10:00
Samuel Georges
07b0c7d0ce Merge pull request #2235 from acasar/nested-depends-on
DependsOn in repeater
2016-07-23 13:36:24 +10:00
Samuel Georges
80fb1f42cc Further code improvements
Refs #2233
2016-07-23 13:06:38 +10:00
Samuel Georges
b934e8bd98 Merge pull request #2233 from acasar/fix-nested-repeater
Fix nested repeater sorting
2016-07-23 13:00:31 +10:00
Evgeny Razumov
37a5ae611b Bug fix in taglist widget with nameFrom option
Fixes #2231
2016-07-23 12:57:08 +10:00
Samuel Georges
ad67c9ab09 Buttons container has an inner toolbar
Consider this when adding new buttons without insertBefore/insertAfter definition
Fixes #2194
2016-07-23 09:53:23 +10:00
Anže Časar
79bb4c2035 Nested DependsOn 2016-07-22 00:38:32 +02:00
Anže Časar
453096bb27 Fix nested repeater 2016-07-21 18:55:03 +02:00
Aleksey Bobkov
53b8df0721 Force rich editor to synchronize when a form is saved. 2016-07-06 18:27:27 -07:00
Samuel Georges
fe3b61f802 Merge pull request #2157 from prasanth-darsan/develop
error on saving attachment config when in pivot form of a relation
2016-07-07 07:59:42 +10:00
Samuel Georges
68923d406b Update Froala to latest (2.3.3)
Recompile assets
2016-07-05 20:08:44 +10:00
Samuel Georges
4ca30f9888 Beautify saved content 2016-07-05 19:58:51 +10:00
Samuel Georges
43eb8c4946 Logic error. Fixes #2154 2016-07-01 18:56:58 +10:00
Prasanth Darsan
6cc50b8ca8 Fixed error on saving attachment config when its put on pivot form of a relation 2016-06-28 23:17:27 +05:30
Samuel Georges
7d171f4453 Merge pull request #2105 from triasrahman/develop
Fix fileupload image css on sidebar
2016-06-11 15:34:01 +10:00
Samuel Georges
927250e9c9 Allow customization of default rich editor buttons
Fixes #2078
Recompile assets
2016-06-11 13:51:34 +10:00
Samuel Georges
536a4b382c RecordFinder can specify number of records per page
Fixes #2082
Fix spacing on composer.json
2016-06-11 13:37:36 +10:00
Trias Nur Rahman
b2df9d63ec Fix fileupload image css on sidebar 2016-06-07 22:44:35 +07:00
Samuel Georges
bb5a44ced5 Add get/set content to code editor plugin
Fixes plain text / snippet editor issue
Fixes #2059
2016-05-29 08:54:22 +10:00
Samuel Georges
8a7f762c71 Restyle system status report widget
Fixes styling on popover-danger and popover-head with customization
2016-05-28 06:49:59 +10:00
Samuel Georges
e9be15cc15 Preferences -> Preference
Rename brandsetting config folder
2016-05-27 07:46:50 +10:00
Samuel Georges
47d0a2677c UI Blocks can now be moved by dragging
Page links handler is now strict definition
Use more explicit naming for config_dashboard config
We have to use the codeeditor for mail templates for now, since froala is not playing nicely with twig
2016-05-27 05:21:50 +10:00
Samuel Georges
ca8d8e4b39 Streamline event names and add get/set functions 2016-05-26 06:25:02 +10:00
Samuel Georges
30f7c03718 Fixes colorpicker when used inside a popup
Fixes #1145
Refs #1021
2016-05-25 06:37:03 +10:00
Samuel Georges
6b8f7b0dd9 Update MD editor to use new toolbar 2016-05-25 05:19:24 +10:00
Samuel Georges
4c50c23654 Refit the Predefined Page Links implementation
Refs #2005
2016-05-25 05:19:12 +10:00
Samuel Georges
ef290df3af Custom CSS classes for styling elements
Define allowed tags, allowed empty, do not wrap, remove tags
Refs #2005
2016-05-24 05:33:32 +10:00
Samuel Georges
e3f777b192 Native Rich Editor messages should remain multi-lingual
Refs #2005
2016-05-22 07:41:38 +10:00
Samuel Georges
af19341c01 "Quick Uploads" are dumped in a special folder via media manager
Refs #2005
Remove the active state on media manager table data for consistency with other view modes
2016-05-22 07:24:04 +10:00
Samuel Georges
bcacc326bd Update Froala to latest 2016-05-22 05:21:19 +10:00
Samuel Georges
a33cf2ac8c Unify z-index's across all controls
Refs #1021
2016-05-21 15:17:14 +10:00
Samuel Georges
aae177e7bc Create "windex" z-index window manager
Convert all storm UI z-indexes to variables
Refs #1021
2016-05-21 14:42:10 +10:00
Samuel Georges
f936ff64f8 Continuity styling changes
Remove default predefined links from rich editor
2016-05-21 13:51:11 +10:00
Samuel Georges
79446aa464 Refit the media manager implementation
Refs #2005
2016-05-21 12:38:04 +10:00
Samuel Georges
67e05bc976 Remove redactor - Refs #2005 2016-05-21 08:16:40 +10:00
Samuel Georges
115fc0c1ef Refit the Block UI logic
Previously contained in richeditor (this is a bit messy, rich editor should be generic), the block UI logic has been moved to its own "figures" plugin
2016-05-21 06:58:34 +10:00
Samuel Georges
85decc4086 Style tweaks 2016-05-21 06:57:12 +10:00
Samuel Georges
9ad20d3b8d Continuity styling changes
Remove active states from inspector
Make the close (X) icons larger on CMS tabs and Components
2016-05-20 08:33:23 +10:00
Samuel Georges
066b918d39 Various styling changes
Removed the harsh title on popups
Anything considered an "overlay" now uses a box shading effect
The account menu now uses lighter shading
Introduced highlight states, allowing hover + active to behave independently
2016-05-20 06:33:16 +10:00