Commit Graph

142 Commits

Author SHA1 Message Date
Flavio Copes
64a88c916c Feature: Ability to Login with Email
Thanks to @gsumpster for https://github.com/getgrav/grav-plugin-admin/pull/685

* implemented email-login, close #674
* changed placeholder text
* Fix Utils namespace thing
* Drop use
* Cleanup styling
2016-07-07 18:47:48 +02:00
Flavio Copes
35013859cf Remove unused method 2016-07-04 18:02:24 +02:00
Flavio Copes
c59a8c355f Remove special case of media now that we have types nested under media.types 2016-06-03 10:23:50 +02:00
Andy Miller
1bb97fdea9 Simply fall back to en if no admin language set. - #641 2016-06-02 17:21:34 -06:00
Flavio Copes
45e9e77179 Handle special case of media configuration (#638)
* Handle special case of media configuration

Since it's a list of dynamically generated entries, without parent, we
cannot merge in the post data with the defaults, or the defaults are
always saved, and we cannot remove existing fields

* Correctly handle reading and saving

* Improve implementation
2016-06-02 12:21:35 -06:00
Flavio Copes
e4f128438f Don't try to uninstall admin/form/login/email plugins 2016-05-27 14:41:33 +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
Andy Miller
a78c017f91 added support for multiple date formats 2016-05-10 16:53:19 -06:00
Andy Miller
710d2c6fd5 Try to guess the format! 2016-05-10 13:32:17 -06:00
Andy Miller
79a49fdcbc Fix for translations not substituting text properly #567 2016-05-06 13:36:16 -06:00
Andy Miller
b5a651eca9 added onAdminRegisterPermissions event 2016-05-04 14:26:27 -06:00
Andy Miller
98a19f01e4 Fixed login/logout message translations. 2016-05-03 13:36:06 -06:00
Andy Miller
a4b50437fd Fix for #551 (visibility toggle on new page not working) 2016-05-03 10:35:11 -06: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
7128543e8a Fix #500 translate admin login form 2016-04-25 10:18:29 +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
deaeccfffc After login, redirect to the original URL called
Fix an annoying issue in Admin, when loading an inner page
(`/admin/pages/whatever`) and I'm logged out, after login I'm always
sent to the dashboard, while it should bring to the page I called in
the first place
2016-04-01 12:41:40 +02:00
Flavio Copes
a9bb36eb0c Revert "Temporary change - force GPM refresh for admin"
This reverts commit 637637b350.
2016-03-26 18:06:28 +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
637637b350 Temporary change - force GPM refresh for admin
Marked to remove prior to merging the PR
2016-03-15 20:04:56 +01:00
Flavio Copes
6b22932d43 Call GPM::checkPackagesCanBeInstalled() when trying to install/update a package 2016-03-15 19:36:00 +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
532093e86d Add getDependenciesNeededToInstall, used by the controller 2016-03-07 11:31:18 +01:00
Flavio Copes
382fd32916 Steps towards deleting dependencies when removing a plugin 2016-03-05 18:46:41 +01:00
Flavio Copes
419ca2181b Extract getPackageFromGPM 2016-03-04 19:20:57 +01:00
Flavio Copes
aed9f90e16 Return a flat array of direct dependencies from dependenciesThatCanBeRemovedWhenRemoving, not recurse into packages 2016-03-04 19:20:48 +01:00
Flavio Copes
fecb1b179a Rename dependencies to dependenciesThatCanBeRemovedWhenRemoving, be more specific. Remove unused parameter 2016-03-04 18:08:30 +01:00
Flavio Copes
97e17500f4 Add dependencies() method in Admin
Generate an array of nested dependencies for a package, optionally
without duplicates
2016-03-01 19:52:24 +01:00
Djamil Legato
22055f8a19 Merge remote-tracking branch 'origin/develop' into feature/es6_revamp
# Conflicts:
#	languages/en.yaml
#	themes/grav/css-compiled/template.css
#	themes/grav/css-compiled/template.css.map
#	themes/grav/templates/forms/fields/tabs/tabs.html.twig
2016-02-09 13:04:16 -08:00
Djamil Legato
6271eeddff Added new DateTime field 2016-02-05 23:49:39 -08:00
Flavio Copes
d200f7a72c 🎨 Code hints, docblocks 2016-02-04 20:59:11 +01:00
Flavio Copes
30a08f6203 🚧 Simplify admin translate method 2016-02-04 20:59:11 +01:00
Flavio Copes
5170a9d2c4 🎨 Drop unused code, format, PHPDoc 2016-02-04 20:59:11 +01:00
Flavio Copes
c62fb6bdb5 Fix #390 Incorrect number of pages being displayed 2016-01-28 14:03:53 +01:00
Matias Griese
d902c9f8b4 Improve support for user defined blueprints in Configuration 2016-01-22 21:52:25 +02:00
Matias Griese
77639e71cf Merge branch 'develop' of https://github.com/getgrav/grav-plugin-admin into develop
# Conflicts:
#	classes/controller.php
2016-01-21 09:51:35 +02:00
Matias Griese
0424975657 Improve type hints 2016-01-21 09:46:38 +02:00
Andy Miller
585b83d6a7 Fix for wrong page count - #390 2016-01-14 17:52:11 -07:00
Flavio Copes
8e34aa3c30 Drop old logs code 2016-01-10 18:22:06 +01:00
Flavio Copes
53bbbf9fc2 Docblocks / coding style improvement 2016-01-10 17:39:57 +01:00
Andy Miller
45c8d83666 should use implicit toString() 2016-01-09 15:41:03 -07:00
Andy Miller
196b6736ab more robust .yaml filename checker 2016-01-09 15:30:45 -07:00
Flavio Copes
a7c3401a81 Use Grav::instance 2016-01-04 21:04:12 +01:00
Flavio Copes
ae1b2a074c Show any configuration item Grav finds under user/config, if there is an associated blueprint provided
Also, organize current system/site/info files under a common
config.html.twig. Delete info/site/system twig files. Preserve BC by
setting the template of system/site/info to "config", in the pages.
2016-01-03 17:53:04 +01:00
Andy Miller
853d934c5e Fix for language picker to use new individual language files 2015-12-18 17:28:31 -07:00
Flavio Copes
e6d04b089a Merge branch 'develop' into feature/integrate-with-admin-pro 2015-12-01 18:09:52 +01:00
Flavio Copes
36b79b2b83 Check to prevent failure 2015-11-30 19:00:12 +01:00
Flavio Copes
018c22e7e9 Fix getting strings translated when the default lang is != 'en' and does not contain them 2015-11-30 16:10:54 +01:00