2013 Commits

Author SHA1 Message Date
Pásztor Gábor
87a68f7bf7 Using flexbox on login and reset page. 2016-11-27 16:29:38 +01:00
Samuel Georges
35296c5b26 Adds getFieldName helper to FormWidgetBase
Refs https://github.com/octobercms/docs/pull/207
2016-11-24 08:59:07 +11:00
Samuel Georges
6bbf496ab2 Simplify code
This makes xdebug happy
Refs #2502
2016-11-23 08:11:24 +11:00
Samuel Georges
97b0bc481f Merge pull request #2496 from LukeTowers/patch-7
Pass current model to RelationController view & manage scopes
2016-11-18 08:21:50 +11:00
Luke Towers
05ab8bdb01 Pass current model to RelationController view & manage scopes
This improves the extensibility of the relation controller by passing the parent relation model to the query scope that will be applied to both the view and manage options. It allows the use of attributes of the parent relation model in the query scope applied to the relation.

This is a mirror of october/octobercms#2419, except for the relation controller instead of the record finder widget. If necessary, I can create a case in the test plugin, but if this is simple enough with the added reference to the prior PR to not require a case in the test plugin, that would be simpler for me :) 

@daftspunk, let me know what you think.
2016-11-16 12:05:44 -06:00
Samuel Georges
1a41f632bc Merge pull request #2477 from zerkms/USER_FILTER_SUPERUSER_BOOLEAN
[!!!] Fix for postgresql: you cannot compare a boolean column with integers
2016-11-16 07:14:56 +11:00
Ivan Kurnosov
c9ba4c49e6 Fix for postgresql: you cannot compare a boolean column with integers 2016-11-15 16:55:23 +13:00
Samuel Georges
a2a0b207c6 Expose isCodeViewActive API function
Recompile JS
2016-11-12 14:12:48 +11:00
Szabó Gergő
d1268c9905 Translate the Page link popup (#2467)
* Translate the Page link popup

* Remove the unnecessary dot

* Update the import/export Hungarian translation

* Update the Froala Hungarian translation
2016-11-10 07:39:29 +11:00
Samuel Georges
be3bf61a3b Merge pull request #2470 from acrontum/develop
Update DE Lang File
2016-11-10 07:36:05 +11:00
Samuel Georges
a313d4eb5b Minor fixes 2016-11-10 06:49:45 +11:00
Michael Brode
dc3c2efe6a Update DE Lang File 2016-11-09 08:36:04 +01:00
Samuel Georges
46c473e2f2 Fixes fetching multi tiered pivot relation values
Refs https://github.com/daftspunk/oc-crm-plugin/issues/3
Minor code clean on select.js
2016-11-08 07:02:31 +11:00
Samuel Georges
4aca2d40ff Remove "allowClear" and tidy up #2459
Allow clear is not necessary, equivalent of allowClear false is "placeholder" and allowClear true is "emptyOption".
2016-11-07 08:43:52 +11:00
Joseba Juániz
1ee0250441 Dropdown can support either placeholder / emptyOption
The difference between a placeholder and an emptyOption is that the placeholder cannot be reselected,whereas the emptyOption can.
Fixes #2450
2016-11-07 08:29:49 +11:00
Samuell1
b320632eb4 Fixes taglist working inside a repeater
Fixes #2254
2016-11-07 08:08:48 +11:00
Samuel Georges
50d3ffb035 Halycon models do not declare forceFill
Only bind purgeable fallback event once (only needed once)
Refs https://github.com/rainlab/translate-plugin/issues/54#issuecomment-256067096
2016-11-05 10:59:53 +11:00
Samuel Georges
7b0f33e9b3 Adds an isNested flag to Form widget
This is useful when a form renders another form inside, specifically the repeater. In these cases the model and data will diverge, and it also provides an opportunity to not apply extension logic to nested form fields.
Fixes #2257
2016-11-05 09:53:23 +11:00
Samuel Georges
348dd85338 Merge pull request #2446 from justin-lau/fix-import-file-path-order
Fixing default import template doesn't extract columns from the latest uploaded file.
2016-11-03 07:10:16 +11:00
Samuel Georges
6173ff177b Typo in variable name 2016-11-02 08:58:07 +11:00
Samuel Georges
0aadcc6675 Merge paths and vars when calling widget handler
When an AJAX handler is called for a widget, the view paths and specified variables should be merged in to the controller. This sets the appropriate context:

1) Look at the widget first
2) Fall back to the controller

Fixes #2432
2016-11-02 08:50:15 +11:00
Samuel Georges
ced920e5d2 Exception handling
Addresses issue specified in https://github.com/daftspunk/oc-test-plugin/issues/21
2016-11-02 07:21:04 +11:00
Samuel Georges
bc165078de Removes redundant code
The form widget label and widgetDetails() method was intended for use by the Builder plugin, since it ended up using its own internal registration system, this is not used anywhere so is removed.

Refs https://github.com/octobercms/docs/issues/200
2016-11-01 08:15:03 +11:00
Samuel Georges
57b10704ce Support for overriding list views
For consistency, entry partial for controller behaviors should be called "container"
Added addViewPath() method to ViewMaker
Remove "fa" from icon docs (not necessary)
Fixes #2439
2016-10-29 14:10:21 +11:00
Samuel Georges
788f109361 Use transactions when saving form models
This is a good idea in general to protect the data integrity. There may be some edge cases where transactions are undesirable, if/when we find one, a configuration option should be created to disable this behavior.
Fixes #2431
2016-10-29 11:28:39 +11:00
Justin Lau
844d2d1b28 Use id instead of updated_at for more consistent behavior 2016-10-27 00:31:44 +08:00
Samuel Georges
359461d93e Styling fix to the welcome widget
Add unit test for constraining by pivot data
2016-10-25 07:33:24 +11:00
Justin Lau
325ae4ad08 Return the latest uploaded (updated) file path. 2016-10-25 00:21:18 +08:00
Samuel Georges
ee2dd78b3d Exception handling for type: relation
It would appear many plugins incorrectly use type: relation as a list column, when this does nothing. Previously it would fallback to the text type, now that invalid types fail hard, this adds a softer landing by spamming the trace log instead.
Refs #2438
2016-10-22 04:18:28 +11:00
Samuel Georges
91e7e8b950 List column number type was falling back to text
Since custom list column types an exception is thrown for unknowns. This makes number known.
Fixes #2438
2016-10-22 03:10:50 +11:00
Samuel Georges
f9dd5b2f57 Plugins can now define custom list column types 2016-10-21 07:15:08 +11:00
Samuel Georges
88196fb660 Allow passing an explicit format to datepicker
Refs #1919
Recompile assets
2016-10-20 08:44:14 +11:00
Samuel Georges
535dc78db1 Pass model as 3rd arg in relation extend overrides
Refs #2308
2016-10-19 08:45:43 +11:00
Samuel Georges
f74d95392f Fix instances where defineProperties returns nothing
addPurgeableAttribute -> addPurgeable
2016-10-19 07:21:09 +11:00
Samuel Georges
a449c05809 FormModelSaver now purges fields beginning with underscore
This is to align with the native model's fill() behavior, of which this classes' behavior is derived.
Fixes #2422
2016-10-18 08:57:57 +11:00
Samuel Georges
d788b7e03f Use select2 on touch devices
This is a relic from when select2 v3 had no mobile support, we use select2 v4 now that has been tested with mobile/touch devices.
Refs #108
Clean up some white spaces
2016-10-17 08:38:01 +11:00
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
259e0c0226 Add support for recordOnClick in relationRender 2016-10-15 10:11:54 +11:00
Samuel Georges
8eafcaa090 Encode extra config to isolate the logic
Fixes #2417
2016-10-15 10:10:11 +11:00
Samuel Georges
f18ff0daac Verify fallback lang actually exists before using it
This fixes an error 500 when trying to reference a non-existent language
Fixes #2358
2016-10-13 20:38:15 +11:00
egerheed
590b697574 Updates Norwegian language file for backend (#2402)
* Updates Norwegian language file for backend
2016-10-13 19:57:54 +11:00
Samuel Georges
733158060e Fixes indentation
Refs #2400
2016-10-13 19:52:37 +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ő
d7f1d523f0 Translate some strings (#2395)
* Translate some strings
2016-10-11 08:29:26 +11:00
Samuel Georges
38c0736164 Merge pull request #2405 from adrenth/feature/dutch-language
Update Dutch language
2016-10-11 08:26:59 +11:00
Samuel Georges
19c3c19a00 Added extended useList options, including raw output 2016-10-06 18:44:26 +11:00