533 Commits

Author SHA1 Message Date
Andy Miller
e7fb97ca3a fix: scheduler status display to match runtime enabled logic
When a job entry is absent from scheduler.yaml status map, the PHP
runtime correctly treats it as enabled, but the Twig template was
incorrectly showing it as disabled due to Twig's `null is defined`
evaluating to true. Simplified the check to only disable when
explicitly set to 'disabled'.

Fixes getgrav/grav#4047

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-18 11:17:33 -06:00
Rotzbua
df2b9ad8c0 Enhance backup date display with title attribute (#2499)
Add title attribute to backup date for better accessibility.
2026-03-17 15:11:37 -06:00
Andy Miller
aec62290d4 more scheduler improvements
Signed-off-by: Andy Miller <rhuk@mac.com>
2025-08-25 10:05:19 +01:00
Andy Miller
12bdb5af4b use spaceless filter 2024-10-30 19:32:09 -06:00
Andy Miller
5904414cc4 show_label logic missing on list field 2024-09-21 13:51:37 -06:00
pmoreno.rodriguez
d4706064fb Improved class assignment for form fields in the plugin's default template (#2399)
* Added images decoding spanish translation

* Improved class assignment for form fields in the plugin's default template

* Fixed extra field.classes added

* Added Syslog tag

---------

Co-authored-by: pmoreno.rodriguez <pmoreno.rodriguez@outlook.com>
2024-02-15 21:20:43 -07:00
pmoreno.rodriguez
795585db6a Added sublabel, label classes and icon help to list field (#2384)
* Added descriptioin option and icon help to list field

* Changed description by sublabel in the list field. Added label classes

* Changed description by sublabel in the list field. Added label classes

* Options to add description, sublabel and help to the list field.

* Added description, sublabel and icon help to field. Field classes are also added

* Removed duplicate description
2024-01-27 12:06:57 -07:00
Iain Gillis
8a193fa55f Update fieldset.html.twig (#2313)
Fix `fieldset.text` not rendering when `markdown` falsy.
2022-09-05 12:32:54 -06:00
Andy Miller
8e18fac95b Revert "Move blueprint section headings and any section text within .form-section to simplify CSS selectors for custom admin styling (#2265)"
This reverts commit c11594dd79.
2022-04-25 20:09:51 -06:00
Hugh Barnes
c11594dd79 Move blueprint section headings and any section text within .form-section to simplify CSS selectors for custom admin styling (#2265) 2022-04-25 09:52:54 -06:00
Matias Griese
372713a8f1 Fixed columns and column fields with .dotted variables inside to ignore columns and column names 2022-04-01 17:25:26 +03:00
Matias Griese
22f9c15112 Added support for a single field: vs fields: in element form field to store a single value to the option field, fixed nested element form fields 2022-04-01 12:58:13 +03:00
Andy Miller
2d107362d8 typo 2022-03-25 16:59:20 -06:00
Andy Miller
eedbf857e5 more originalValue fixes 2022-03-25 13:56:42 -06:00
xaver
4c0cb4d4e6 Support random default values for list child fields (#2255)
* Support default values for list child fields

* Update CHANGELOG.md

Co-authored-by: Djamil Legato <djamil+github@djamil.it>
2022-03-18 15:59:13 -07:00
Djamil Legato
fa4122efcb List field items will now require confirmation before getting deleted 2022-02-08 20:53:51 -08:00
Matias Griese
0a815f6115 Fixed list field with key/value pairs throwing an exception due to bad value [#2199] 2022-02-07 11:10:07 +02:00
Matias Griese
9f9198b329 Updated SCSS compiler to v1.10, composer update 2022-02-07 10:22:51 +02:00
Djamil Legato
865c0c0580 Keep page media count updated when adding/removing media files 2022-02-04 10:57:45 -08:00
Mark
8fb0e9a097 Fix: Unique originalValue for fields of fieldset (#2218)
Prevent fields from being toggled incorrectly by adding originalValue to childs of fieldset.

Co-authored-by: Mark Schmale <mail@markschmale.de>
2022-02-04 09:53:13 -08:00
Matias Griese
e40490f98f Minor fix for element field 2022-02-04 19:23:13 +02:00
Djamil Legato
b2fa3d1c13 PageMedia can now be collapsed and thumbnails previewed smaller, in order to save room on the page. Selection will be remembered. 2022-02-03 13:59:14 -08:00
Matias Griese
9f3bcd11b1 Fixed elements field when it's used inside list field 2022-02-03 20:14:20 +02:00
Matias Griese
c763004a94 Make elements field options to work with int and bool values 2022-01-10 21:08:51 +02:00
Djamil Legato
c58c7aebb9 Fixed elements field to properly allow unlimited combinations 2022-01-10 11:01:38 -08:00
Djamil Legato
a1e4e5979e Ensure autocomplete select trigger is not remembered by browsers 2022-01-10 10:17:15 -08:00
Djamil Legato
25e91cff23 Implemented js logic to handle new elements field 2022-01-07 21:49:32 -08:00
Andy Miller
e0dd768b97 removed old tab code 2022-01-07 18:17:17 -07:00
Andy Miller
74a5000e04 first whack at new elements field 2022-01-07 17:28:46 -07:00
Matias Griese
3f39a7768d Deprecated Twig in order field 2021-12-09 15:51:44 +02:00
Matias Griese
af9cdc3e41 Fixed deprecation warnings on taxonomy and xss fields 2021-12-09 14:58:54 +02:00
Matias Griese
2f9b0a179c Fixed regression Argument 4 passed to Grav\Plugin\Form\TwigExtension::prepareFormField() must be of the type array [#2177] 2021-09-01 12:47:51 +03:00
Matias Griese
e9d36b97a8 Stop using |tu filter, Grav already has the same logic in |t for admin 2021-08-18 14:12:03 +03:00
Matias Griese
43da7c909d Updated forms and nested fields to use new form logic 2021-08-12 14:13:19 +03:00
Matias Griese
7317e755e5 Fixed missing values in fieldset form field 2021-08-09 21:12:57 +03:00
Karmalakas
643f3a76c7 Add logic to allow fieldset form field inside a list field (#2159)
* Add logic to allow fieldset form field inside a list field

* Fix code style
2021-07-18 14:05:36 -06:00
Andy Miller
13dfe58feb use base64_encode filter rather than function 2021-05-13 12:49:59 -06:00
Andy Miller
ac4d1588f0 Added a min_height: option for list field 2021-04-28 14:16:58 -06:00
Matias Griese
a49b1f18c9 Fixed bug in tag translation 2021-04-23 17:04:29 +03:00
Matias Griese
61f6c3cda4 Fixed missing/wrong page categories and tags when multi-language support is enabled [#2107] 2021-04-23 15:16:08 +03:00
Djamil Legato
e16f1243cc Added refresh action button for Folder to ease the regeneration of the slug based on the title. Available also as API entry Grav.default.Forms.Fields.FolderField.Regenerate() (#1738) 2021-04-20 15:45:56 -07:00
Andy Miller
0ad907be01 Support native spell checkers in codemirror editor #1266 2021-04-20 14:13:01 -06:00
Matias Griese
c97177e0ee Prevent expert editing mode from anyone else than super users [#2094] 2021-03-31 12:16:40 +03:00
Djamil Legato
c45e9bd45e Fixed and enhanced Range field to be Lists compatible (fixes #2062) 2021-03-22 17:59:13 -07:00
Mohammad Anbarestany
d87233c630 Support for RTL languages (#2078)
* RTL-Support

* Standard Format

* shorter code

* default Arabic font

* fix for Configuration section

for "system>Assets>Collections" section to support RTL we should change inline style element created by admin.min.js so i've added an if statement to check <body> direction is RTL or not...

* Update rtl.css

* Multi level fix for RTL

in admin config under system>assets there is an input text which you can add child(s) under it... i've added several if statements to check Page direction and put margin-right instead of margin-left for RTL languages... i also wrote an style to override margin-left just in case ;)

* improvements

* fixes

* fix

* fix

* fix

* Update rtl.css

* first complete RTL style 👍

* Faster computation of direction

* Faster evaluation for margin direction (and simplified)

Co-authored-by: Djamil Legato <djamil+github@djamil.it>
2021-02-23 10:16:33 -08:00
Matias Griese
fb15acc50c Fixed toggleable checkboxes being unchecked in fieldset columns [#2063] 2021-02-11 20:54:10 +02:00
Karmalakas
a0b0fa0495 Add item at the top if top button is clicked in list field (#2055)
* Add item at the top if top button is clicked in list field

Pretty much title says it all. IMO it makes much more sense, that top button would add item at the top, because if list is long enough, you are not even seeing if something happens when item is added at the bottom. Created this PR because of [the question asked in forum](https://discourse.getgrav.org/t/blueprint-type-list-new-data-on-top-of-array/15254).

So the solution would be either like this PR suggests, or button actions should be configurable via Admin config somewhere.

* Change added item placement for List field

Add field `palecement` property check.

If `top` or `bottom`, both buttons add item to top or bottom.
If `position`, item is added depending on a clicked button position -
  if top button is clicked, item added to top and if bottom button - item added to bottom.

Defaults to bottom

* Revert empty line at EOF
2021-02-06 20:36:28 -08:00
Djamil Legato
4ff373a8b1 Fixed field type range not taking into account legitimate 0 values 2021-01-25 20:29:15 -08:00
Matias Griese
8e157bac5a Fixed taxonomy field not listing existing options in Flex Pages 2020-12-23 21:07:23 +02:00
Matias Griese
a0fce62e31 Regression: Values inside Fieldset do not display [#1995] 2020-12-23 20:23:55 +02:00