Commit Graph

826 Commits

Author SHA1 Message Date
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
Flavio Copes
f34a9d7638 More changes for pagemediaselect to avoid double inclusion of data-grav-field, and to disable when no files are found 2015-12-30 20:39:37 +01:00
Aymeric SIMON
f3e5797271 Added missing data-grav-field=select to global attributes on pagemediaselect field template 2015-12-30 17:35:10 +01:00
Flavio Copes
cae876903e Load the partials/page-revisions.html.twig template if available 2015-12-29 16:11:39 +01:00
Flavio Copes
ec4becae0e Add a fallback twig template to use in case Twig cannot find a template file 2015-12-29 16:11:10 +01:00
Flavio Copes
ffa54e12f7 Show revisions button is pro is enabled 2015-12-29 16:07:15 +01:00
Flavio Copes
192f953e8d Fix #368 saving plugins configs that contain a tab input type
Additionally, little cleanup, and adds comment about file types and
js-processing forms
2015-12-23 18:09:07 +01:00
Flavio Copes
0eb87ede66 Fix redirect in deleting media from file field. Better format for file field code 2015-12-22 14:06:23 +01:00
Flavio Copes
8f52ad156b Restore file inputs functionality. Process the form via javascript only if no file inputs are found.
The file inputs are not found in Pages, so in that case, the JS form
processing still kicks in as usual. In plugins and themes blueprints on
the other hand, if there is a file input we avoid JS processing, since
we also do not actually need this part of code in those forms.
2015-12-22 13:48:59 +01:00
Flavio Copes
011c53515e Fix problem in form code introduced by fix to allow file uploads. Only triggered the issue on Pages form code
Fix #361
Fix #365
2015-12-22 12:56:00 +01:00
Flavio Copes
08b2043dd3 Fix for the image preview in the file filed on multilang sites 2015-12-21 16:33:16 +01:00
Flavio Copes
b76b79e611 Improve File input field for Admin
Add removing files from a blueprint to Admin, moved from Pro. Drop
`showuploaded`, `ispluginconfig`, `showuploadedpreview` options from
the File field. Added a "blueprint" option to specify the field name
and type, e.g. `plugins.admin` or `themes.antimatter`. Dropped the
multiple option, as it'd need more handling that now it's not there.
2015-12-21 16:22:04 +01:00
Flavio Copes
ece5d43352 Added a "pagemediaselect" special select field, to be used in Pages blueprints. Add warning when used inside themes or plugins blueprints 2015-12-19 14:06:57 +01:00
Flavio Copes
371d709630 Make "file" a form field to be used in plugins and themes blueprints only. Add warning when used inside pages blueprints 2015-12-19 14:06:27 +01:00
Djamil Legato
688d488218 Added button styling for toastr notifications 2015-12-18 13:42:25 -08:00
Flavio Copes
7d9ce1a138 Edit the admin file input to handle showing uploaded files, showing previews, allow deleting if it's a plugin config 2015-12-18 17:20:57 +01:00
Flavio Copes
4247d6b20d Fix showing custom image in top left in admin 2015-12-18 10:37:54 +01:00
Flavio Copes
18a2a21e50 Override the default file field to work in admin. Handles files.showuploaded 2015-12-18 10:37:54 +01:00
Flavio Copes
6a11e8bdeb Changes regarding file field now saving a string instead of an array 2015-12-16 15:19:34 +01:00
Flavio Copes
f03e357dbd If admin pro defines a custom_logo_top_left image, show it instead of the default image 2015-12-16 10:21:05 +01:00
Flavio Copes
370ca99620 If a field of the form is file, add enctype attribute with multipart/form-data 2015-12-16 10:18:36 +01:00
Flavio Copes
cd295a33b3 Let forms work with file inputs 2015-12-16 10:18:06 +01:00
Andy Miller
148176c9a7 Just to make Paul happy! :) 2015-12-10 18:36:11 -07:00
Andy Miller
db806b86e4 form breakpoints 2015-12-10 16:42:18 -07:00
Andy Miller
7b5117ed64 Added security capability to the section field.. so you can wrap areas of blueprints in security checks. 2015-12-10 16:07:07 -07:00
Andy Miller
a3a4d8d0d8 notice if you don't have permissions to even see dashboard 2015-12-10 16:06:24 -07:00
Andy Miller
19d73c1fdd refactor including site-side redirect if no accounts. 2015-12-10 13:22:23 -07:00
Andy Miller
4e1f1109e1 Merge branch 'develop' into feature/admin_registration 2015-12-10 11:02:47 -07:00
Flavio Copes
dee3ee9e1b Fix favicon base 2015-12-10 18:16:53 +01:00
Flavio Copes
be3a2b8f46 Move inside if 2015-12-10 18:12:12 +01:00
Flavio Copes
23c6e262ef Indent properly 2015-12-10 18:03:10 +01:00
Flavio Copes
ca2c251aa4 Add missing {% set value = form.value(field.name) %} 2015-12-10 18:02:12 +01:00
Andy Miller
87aa4b36c9 Merge branch 'develop' into feature/admin_registration 2015-12-10 09:47:37 -07:00
Flavio Copes
1d5093f4ff Tweak messages.html.twig to include form error messages 2015-12-10 13:05:06 +01:00
Flavio Copes
4c109d002c Admin registration working 2015-12-10 12:07:36 +01:00
Flavio Copes
5dda11e6b3 Fix #334 didn't use param sep 2015-12-10 10:17:02 +01:00
Andy Miller
03fd601a49 cleaned up the buttons 2015-12-09 18:56:39 -07:00
Andy Miller
3ca0c17f27 slowly prettying up the registration form 2015-12-09 18:07:51 -07:00
Andy Miller
cb3127f545 Merge branch 'develop' into feature/admin_registration 2015-12-09 17:22:32 -07:00
Matias Griese
25b1fd5be9 Merge branches 'develop' and 'feature/gantry' of https://github.com/getgrav/grav-plugin-admin into feature/gantry
# Conflicts:
#	themes/grav/css-compiled/template.css
#	themes/grav/css-compiled/template.css.map
2015-12-08 10:15:18 +02:00
Flavio Copes
c274270c94 Add CSS fix for tabs in plugin/theme settings 2015-12-07 10:40:47 +01:00
Matias Griese
afe830c0c7 Merge branches 'develop' and 'feature/gantry' of https://github.com/getgrav/grav-plugin-admin into feature/gantry 2015-12-07 10:45:52 +02:00
Flavio Copes
828b0e7f78 Instead of requiring an option to disable preview, disable by default. Enable on demand. 2015-12-04 20:43:04 +01:00
Flavio Copes
f0da78f0a6 Allow to set hidePreview: true on markdown field type when defining blueprints. Since the preview is based around the concept of a page, and renders its content, we cannot use it there 2015-12-04 20:23:41 +01:00
Flavio Copes
b06800bc16 Clean unused code 2015-12-04 20:01:49 +01:00
Flavio Copes
1b0285836d Fix #323, regression introduced in b7caab8677
@w00fz I partially reverted b7caab8677, I
tested and it works with the markdown editor too. What was the reason
you changed it?

The problem introduced was the `data-collection-template` element was
changed from <script> to <ul> and then the template item is picked up
as a list item in the list, with '*' as key, instead of being ignored.
2015-12-04 20:01:49 +01:00
Andy Miller
fb30324187 started work on admin registration logic 2015-12-04 11:58:28 -07:00
Flavio Copes
59f6fdc0e4 Translate the "Activate" string 2015-12-04 17:42:24 +01:00
Djamil Legato
9b439163ec Added RocketTheme Apps font 2015-12-02 13:54:37 -08:00
Flavio Copes
7f72ff9021 Only show back button if pro is installed and enabled 2015-12-01 19:55:29 +01:00