Commit Graph

243 Commits

Author SHA1 Message Date
Flavio Copes
d76e75cb04 Handle case where $input['order'] is set but empty.
Re #628 fix issue when saving a modular child folder as 05.something
and being reset to 01.something upon save
2016-06-21 15:38:34 +02:00
Flavio Copes
3cac054de6 Append progressive number to the copied page title. Fix #394 2016-06-15 13:55:16 +02:00
Flavio Copes
1ad76c04f9 Re #394 update slug, route and raw route with appended number when doing a copy of the page (#537)
Does not change the page title, just the page route property if set in the header, to avoid two pages with the same slug / route / raw route. Handles ordering too, and pages with custom slug. Independently updates the slug and the folder name.
2016-06-07 23:10:34 +02:00
Andy Miller
7b13526e1e Another missed reference 2016-06-02 15:14:14 -06:00
Andy Miller
77e2e65c60 Don't show email address when sending forgot pw instructions #571 2016-06-02 12:38:49 -06:00
Flavio Copes
9c35c8f5a9 Fix #635 Activating a theme throw "Data type 'system' doesn't exist!" error 2016-06-02 11:55:59 +02:00
Andy Miller
8cd0279b01 Feature/upload improvements (#617)
* various improvements.. needs cleanup

* more progress - supports deeply nested + pages

* Getting close now!

* more progress!

* some cleanup

* use data[_json] to store page-based upload

* Smarter logic to get nested form fields

* some refactoring/cleanup

* Fixed issue with removing multiple files in pages

* Refactor and support `destination: page@:/images` and `destination: self@` syntax for file fields

* Prettifying the upload field

* Handling Files API to better represent the selected files in the input field

* Better plurarl string

* Fixed harcoded height for input field

* revamped CSS!!!

* `fancy: false` turns off fancy styling

* Create folder if not exists

* Add support for @theme/theme@ destination

* Fixed create directory functionality to take into account resolved paths

* Don't allow @self on page to be uploaded to if not created

* added field languages

* css tweaks

* language integration
2016-05-26 14:49:45 -06:00
Djamil Legato
bb362cd1e8 Minor cleanup to controller 2016-05-17 18:24:56 -07:00
Djamil Legato
809600b3c5 File fix, ensure FILES object is available before continuing 2016-05-17 16:59:16 -07:00
Andy Miller
48f311b458 Fix for #595 2016-05-17 16:52:22 -06:00
Andy Miller
2d9d71c444 Feature/file upload refactor (#598)
* refactor

* Added support for multiple files

* fixed appearance a bit

* Always store files as full path => obj data

* added some error handling

* Do not go nested when storing file

* Refactored to not need blueprint set in blueprint
2016-05-17 16:46:00 -06:00
Andy Miller
b0ce609c4c escape and lowercase username in all cases #577 2016-05-09 19:29:27 -06:00
Andy Miller
3fd928ac18 Fix forgot/reset password process of sending escaped HTML emails 2016-05-06 13:55:36 -06:00
Andy Miller
50c4b5dc61 fix for username not finding anyone 2016-05-06 13:34:54 -06:00
Andy Miller
c99bedf111 Better error messages for exceptions thrown in obj->validate() #594 2016-05-05 10:35:40 -06:00
Flavio Copes
4afa565382 Fix #563 Invalid argument supplied for foreach 2016-05-05 16:28:56 +02:00
Andy Miller
98a19f01e4 Fixed login/logout message translations. 2016-05-03 13:36:06 -06:00
Flavio Copes
cf72ea93fc Fix passing the correct version property to the json_response 2016-04-29 16:23:45 +02:00
Flavio Copes
ad5aa7588d Fix version in Grav update message 2016-04-29 15:20:45 +02:00
Flavio Copes
45f7665d2d Change user view name 2016-04-27 22:44:42 +02:00
Flavio Copes
33e363affa Merge pull request #524 from getgrav/feature/show-account-page-for-login-acl
Show account page for users with admin.login ACL
2016-04-27 11:48:16 -06:00
Flavio Copes
2cc07fe883 Remove leftover return 2016-04-21 09:25:45 +02:00
Djamil Legato
69459ec611 Fixed toggler for stable/testing channel 2016-04-20 15:59:46 -07:00
Flavio Copes
85922f93ac Handle gpm events in Admin (#508)
* Fix removing packages

* npm install "babel-preset-es2015": "^6.6.0"

* Run gulp

* Handle messages in packages install/remove/update procedures
2016-04-20 18:55:58 +02:00
Andy Miller
16d2f0a752 Added new Toggle and Task for switching gpm release 2016-04-15 16:18:02 -06:00
Flavio Copes
927a0f4ad1 Revert "Fix for modular preview not functioning as expected #254"
This reverts commit a2275b8b73.
2016-04-12 14:14:52 +02:00
Flavio Copes
9da5f5595a Return 401 unauthorized and exit if trying to access a file outside the backups folder 2016-04-08 10:49:59 +02:00
Flavio Copes
f81f21e0ae Use scope also in admin registration / login form
BC issue: if using Admin `develop/ 1.1` with Form != latest develop,
the Admin-side registration form (the one that pops up when Admin is
installed but no accounts are found) will not work. Not something users
would stumble upon: only appears when Admin  1.1 it'll be possible to
use config-title@: theme.antimatter.some_config to set the title
dynamically based on a theme config option is installed but it's not
yet configured, and Form is not up to date. When 1.1 will be released,
also the Form plugin will have a newer update that will be installed
automatically.
2016-04-07 13:09:26 +02:00
Flavio Copes
3677c498f9 Fix redirect after switching language in a page exiting context 2016-04-04 11:13:57 +02:00
Flavio Copes
6d9f9a0886 Merge branch 'develop' into feature/admin-gpm-dependencies 2016-03-26 18:00:19 +01:00
Flavio Copes
57a7a60efd Avoid returning an error in Admin itself, just in the JSON response
This prevents the error to appear on a subsequent admin page reload
2016-03-19 15:41:46 +01:00
Flavio Copes
1044ffebf1 Show a more meaningful error message if post_max_size is too low to handle a media upload 2016-03-19 11:54:19 +01:00
Flavio Copes
2c00618b87 Handle error when trying to remove a package that other packages depend on. 2016-03-17 15:57:10 +01:00
Flavio Copes
fd6f1691af Merge branch 'develop' into feature/admin-gpm-dependencies 2016-03-16 11:46:51 +01:00
Matias Griese
de82a05194 Issue when saving tab-based plugin configuration (#452) 2016-03-16 11:09:48 +02:00
Flavio Copes
6b22932d43 Call GPM::checkPackagesCanBeInstalled() when trying to install/update a package 2016-03-15 19:36:00 +01:00
Flavio Copes
e30a2871e9 Handle errors during install: Install old next-significant-release dependency 2016-03-14 17:52:11 +01:00
Flavio Copes
1da2ce7e8c Detect error while installing packages, show message and cancel button 2016-03-11 15:17:18 +01:00
Flavio Copes
934079fa39 Drop old controller tasks 2016-03-10 22:09:48 +01:00
Flavio Copes
d9ffd603ea More groundwork to allow installing multiple packages at once 2016-03-09 21:19:13 +01:00
Flavio Copes
68a183c05c getDependenciesNeededToInstall accepts an array to ease transition to handling multiple packages 2016-03-09 19:40:23 +01:00
Flavio Copes
c0f73bf6ed Actually remove a package 2016-03-08 11:37:04 +01:00
Flavio Copes
856a325a17 Add taskPackageDependencies, taskInstallDependenciesOfPackage, taskInstallPackage 2016-03-07 11:33:23 +01:00
Flavio Copes
2417c88ecd Generalize taskRemovePlugin into taskRemovePackage 2016-03-06 11:57:27 +01:00
Flavio Copes
c9b6b01607 Complete remove plugin task. Handle failure. 2016-03-05 20:57:13 +01:00
Flavio Copes
382fd32916 Steps towards deleting dependencies when removing a plugin 2016-03-05 18:46:41 +01:00
Flavio Copes
707a7b71ed Lint controller 2016-03-05 12:11:13 +01:00
Djamil Legato
f5e1ea01f2 Merge remote-tracking branch 'origin/develop' into feature/es6_revamp
# Conflicts:
#	themes/grav/css-compiled/template.css
#	themes/grav/css-compiled/template.css.map
#	themes/grav/scss/template/_editor.scss
#	themes/grav/scss/template/_forms.scss
#	themes/grav/scss/template/_remodal.scss
#	themes/grav/templates/partials/base.html.twig
#	themes/grav/templates/partials/dashboard-statistics.html.twig
2016-03-02 11:13:06 -08:00
Djamil Legato
aa73b82832 Implemented Preview button and states abstraction for toolbar 2016-03-01 19:00:29 -08:00
Gavin Roberts
772172821b Updated taskSave to ensure route is prefixed with a forward slash 2016-02-27 07:54:17 +00:00