Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
974 commits
Select commit Hold shift + click to select a range
0d509c8
Add banner fieldtype - wip
jaygeorge Jun 3, 2026
7f199cf
Balance alerts, based on when they just contain a heading (used for t…
jaygeorge Jun 3, 2026
fdb010b
Improve inspector alignment
jaygeorge Jun 3, 2026
9143455
Improve inspector for Banners
jaygeorge Jun 3, 2026
a169ae0
Make heading look more like a heading
jaygeorge Jun 3, 2026
d38623c
Set a default banner icon to differentiate the component a bit
jaygeorge Jun 3, 2026
571991d
Banner - add small shadow
jaygeorge Jun 4, 2026
64be2b3
Field inspector decoration - add first row calculation as well as las…
jaygeorge Jun 4, 2026
d488999
Improve field actions position for the first row
jaygeorge Jun 4, 2026
664b242
Just use data attributes for row detection
jaygeorge Jun 4, 2026
3942391
wire up logic page wip
duncanmcclean Jun 3, 2026
95eec10
logic dirty state
duncanmcclean Jun 3, 2026
ba0c101
wip
duncanmcclean Jun 4, 2026
fc6ebfc
wip
duncanmcclean Jun 4, 2026
b7ccde3
wip
duncanmcclean Jun 4, 2026
21e2ffc
wip
duncanmcclean Jun 4, 2026
a1f8199
wip
duncanmcclean Jun 4, 2026
485915e
wip
duncanmcclean Jun 4, 2026
6d31b0e
wip
duncanmcclean Jun 4, 2026
9ce6923
simplify last row logic
duncanmcclean Jun 4, 2026
9ac888c
prevent adding logic on the last page
duncanmcclean Jun 4, 2026
ca4804e
Star rating - first pass
jaygeorge Jun 4, 2026
7136fe4
Star rating - support half stars
jaygeorge Jun 4, 2026
c0478a8
Star rating - use range input with CSS instead
jaygeorge Jun 4, 2026
7be23df
Star rating - remove unneeded prefixes
jaygeorge Jun 4, 2026
0cd7abd
Tidy CSS
jaygeorge Jun 4, 2026
8ddee91
Star rating - add ability to adjust gap and change SVG to use our Fle…
jaygeorge Jun 4, 2026
69ab566
Star rating - map theme vars
jaygeorge Jun 4, 2026
67c0b9c
Star rating - leave as unrated for the form demo
jaygeorge Jun 4, 2026
44f7a1b
Star rating - set a floor and ceiling
jaygeorge Jun 4, 2026
b749f10
Star rating - change star appearance and finish draft
jaygeorge Jun 4, 2026
8c675a3
fix indentation
duncanmcclean Jun 4, 2026
a2c02e6
pages actually have ids now
duncanmcclean Jun 4, 2026
f8499a6
Merge branch '6.x' into forms-2
duncanmcclean Jun 4, 2026
91e9954
Star rating - tweak size
jaygeorge Jun 4, 2026
e37e96b
Image choice - first pass
jaygeorge Jun 4, 2026
a5e2211
Image choice - Switch to Tailwind
jaygeorge Jun 4, 2026
ad0ed0e
Image choice - fix error when saving
jaygeorge Jun 4, 2026
cde898d
Fix double border effect
jaygeorge Jun 4, 2026
fb85b8f
Image choice - render image previews
jaygeorge Jun 4, 2026
3dbae2c
Image choice - add a letter before the label
jaygeorge Jun 4, 2026
783f17e
Image choice - style the letters
jaygeorge Jun 4, 2026
4484482
Image choice - add aspect ratio as an option for the comparisons
jaygeorge Jun 4, 2026
be9fcf1
Image choice - add example
jaygeorge Jun 4, 2026
70717e5
Image choice - improve demo
jaygeorge Jun 4, 2026
915d85c
Image choice - tighten up a few things 🧹
jaygeorge Jun 5, 2026
de88e8d
Image choice - fix border 🧹
jaygeorge Jun 5, 2026
5adca1c
Image choice - fix padding
jaygeorge Jun 5, 2026
5e28231
Image choice - make cards more consistent with the rest of the UI
jaygeorge Jun 5, 2026
0735f1b
Image choice - tighten up letter choice
jaygeorge Jun 5, 2026
ec9c31c
Make panels slightly narrower at smaller MQs
jaygeorge Jun 5, 2026
c305049
Add ranking form field type - first pass
jaygeorge Jun 5, 2026
6ef2072
Ranking field type - don't show "null" when adding a new row
jaygeorge Jun 5, 2026
68825ed
Ranking field type - improve appearance
jaygeorge Jun 5, 2026
53ee8a7
Add opinion scale field type - first pass
jaygeorge Jun 5, 2026
e9503dc
Add opinion scale field type - use Tailwind
jaygeorge Jun 5, 2026
93496c2
Add opinion scale field type - fix labels
jaygeorge Jun 5, 2026
a6eaaf4
Add opinion scale field type - tidy instructions
jaygeorge Jun 5, 2026
3d8edfb
Add opinion scale field type - finesse
jaygeorge Jun 5, 2026
7ce1379
Add opinion scale field type - optically align labels
jaygeorge Jun 5, 2026
62b76e1
Field types - dark mode balances
jaygeorge Jun 5, 2026
cd09b55
Star rating - fix dark mode
jaygeorge Jun 5, 2026
237570d
Fix Builder field type - it was behaving weirdly
jaygeorge Jun 5, 2026
c58ecd0
Logic tab - fixed collapsed row badge/value combo
jaygeorge Jun 8, 2026
4163a83
Logic tab - fixed row decoration
jaygeorge Jun 8, 2026
1e759d5
✨ fix form not saving - textarea is a CP fieldtype, not a form fieldt…
jaygeorge Jun 8, 2026
41ac3ce
Only output the logic icon on page titles when they logic
jaygeorge Jun 8, 2026
d8e3064
Tighten page title space
jaygeorge Jun 8, 2026
2cfe1fa
Fix banner icon for compressed view - Information fields (banner, hea…
jaygeorge Jun 8, 2026
0160f6b
Switch category color from amber to green - amber is too close to ora…
jaygeorge Jun 8, 2026
d917fb9
Merge branch '6.x' into forms-2
duncanmcclean Jun 10, 2026
5092cbb
Revert "Fix Builder field type - it was behaving weirdly"
duncanmcclean Jun 10, 2026
7e2b7b5
Revert "✨ fix form not saving - textarea is a CP fieldtype, not a for…
duncanmcclean Jun 10, 2026
9975a69
Revert various changes from c3050492
duncanmcclean Jun 10, 2026
bd1c032
wip
duncanmcclean Jun 10, 2026
688379a
wip
duncanmcclean Jun 10, 2026
7f17afd
Revert field preview change in be9fcf1c.
duncanmcclean Jun 10, 2026
807d725
Review changes to builder in fb85b8fc
duncanmcclean Jun 10, 2026
de157d0
fix weird indentation
duncanmcclean Jun 10, 2026
3aab7a2
wip
duncanmcclean Jun 10, 2026
e56c667
image choice fieldtype tweaks
duncanmcclean Jun 10, 2026
a6972a9
require field labels in form builder
duncanmcclean Jun 10, 2026
f07d652
opinion scale fieldtype tweaks
duncanmcclean Jun 10, 2026
47b6f21
wip
duncanmcclean Jun 10, 2026
7827322
star rating fieldtype tweaks
duncanmcclean Jun 10, 2026
e905f05
ranking fieldtype tweaks
duncanmcclean Jun 10, 2026
4a7d327
banner fieldtype tweaks
duncanmcclean Jun 10, 2026
9b3e299
wip
duncanmcclean Jun 10, 2026
cc6adb1
remove unnecessary (and missing) instructions
duncanmcclean Jun 10, 2026
b6f6fdb
avoid using information fields (banner, heading, paragraph) in logic
duncanmcclean Jun 10, 2026
592eefb
improve logic value stuff for new form fieldtypes
duncanmcclean Jun 10, 2026
6a8d511
make container/folder of image options fieldtype configurable
duncanmcclean Jun 10, 2026
a060025
re-work config options for information fields & add field stubs
duncanmcclean Jun 10, 2026
f13d239
fix failing tests
duncanmcclean Jun 10, 2026
044e66e
provide `is_informative` to fields loop to avoid outputting labels/in…
duncanmcclean Jun 10, 2026
e533341
use `is_informative` in our fields stub
duncanmcclean Jun 10, 2026
84e4928
Merge branch '6.x' into forms-2
duncanmcclean Jun 11, 2026
0eda343
fix icon not being persisted in banner field config
duncanmcclean Jun 11, 2026
05bdc7b
Avoid showing preview when dragging fields in collapsed mode
duncanmcclean Jun 11, 2026
1b0d9eb
adjust how min/max clamping happens in the opinion range fieldtype
duncanmcclean Jun 11, 2026
48cb929
wip
duncanmcclean Jun 11, 2026
38d9227
"generate" opinion scale values in php
duncanmcclean Jun 11, 2026
c49797c
replace default values with placeholders
duncanmcclean Jun 11, 2026
4025df1
simpler opinion scale views
duncanmcclean Jun 11, 2026
aad9104
simpler star rating
duncanmcclean Jun 11, 2026
a7d69d4
fix error in field inspector when page contains fieldset import
duncanmcclean Jun 11, 2026
9f7a37e
simpler ranking views
duncanmcclean Jun 11, 2026
7bad860
process field config when saving, not when updating config options
duncanmcclean Jun 11, 2026
ac6d62a
avoid generating field handles with hyphens
duncanmcclean Jun 11, 2026
3cf0913
image choice view
duncanmcclean Jun 11, 2026
57a0d60
preprocess values when loading form builder
duncanmcclean Jun 11, 2026
288fd39
make form fieldtype for spacer
duncanmcclean Jun 11, 2026
ae35c37
prevent configuring logic based on structure fields
duncanmcclean Jun 11, 2026
bdc19ae
Merge branch '6.x' into forms-2
duncanmcclean Jun 12, 2026
db760e9
fix banner example
duncanmcclean Jun 12, 2026
321d0d2
provide meta and values to previews publish container
duncanmcclean Jun 12, 2026
96cfec5
hide validation tab in field inspector for structure/information fields
duncanmcclean Jun 12, 2026
be447a4
Revert "preprocess values when loading form builder"
duncanmcclean Jun 12, 2026
3b05e49
Revert "process field config when saving, not when updating config op…
duncanmcclean Jun 12, 2026
5ee6cf8
preprocess before validating
duncanmcclean Jun 12, 2026
7e01077
group form fieldtype
duncanmcclean Jun 12, 2026
26d37fb
combine assets and files fieldtypes into a single upload form fieldtype
duncanmcclean Jun 12, 2026
b42935c
very lightly style rankings view so its clear you can drag & drop
duncanmcclean Jun 12, 2026
e49f607
use FormLayout on submission show page
duncanmcclean Jun 12, 2026
fdb3c20
Merge branch '6.x' into forms-2
duncanmcclean Jun 15, 2026
4a81aa3
formatting
duncanmcclean Jun 15, 2026
fc38b65
Small background color adjustments including dark mode
jaygeorge Jun 15, 2026
a363f92
fix failing tests
duncanmcclean Jun 15, 2026
a85473d
wip
duncanmcclean Jun 15, 2026
37be4c6
missing `__` imports
duncanmcclean Jun 15, 2026
bfdb8e4
Merge branch '6.x' into forms-2
duncanmcclean Jun 15, 2026
e66d0ff
Wrap some inline stylesheet using a cascade layer so devs can easily …
jaygeorge Jun 15, 2026
7e759eb
Revert "Wrap some inline stylesheet using a cascade layer so devs can…
jaygeorge Jun 15, 2026
272cb73
[6.x] Forms 2: Yes/No Form Fieldtype (#14819)
duncanmcclean Jun 15, 2026
cf27f47
remove solo.yml from git
duncanmcclean Jun 15, 2026
e95ff5d
Improve focus / selection state - Image Choice
jaygeorge Jun 15, 2026
137ba00
Improve focus / selection state - Opinion Scale
jaygeorge Jun 15, 2026
dca2b8b
Yes/No - only fill the icon if the option is selected
jaygeorge Jun 16, 2026
166a8ac
[6.x] Make the ranking fieldtype orderable with just the keyboard (#1…
jaygeorge Jun 16, 2026
b0a68bd
prevent information fieldtypes showing in listing column list
duncanmcclean Jun 16, 2026
754131e
Merge branch '6.x' into forms-2
jaygeorge Jun 16, 2026
cc39fd3
Logic rule formatting
jaygeorge Jun 16, 2026
ff01c73
Logic rule formatting
jaygeorge Jun 16, 2026
be83111
Improve logic rule badge balance
jaygeorge Jun 16, 2026
96bb4a6
Improve logic rule text balance
jaygeorge Jun 17, 2026
8ed11aa
Fix empty state dark border
jaygeorge Jun 17, 2026
9433d57
Ranking field - add an 'ordered' state
jaygeorge Jun 17, 2026
e04391c
Merge branch '6.x' into forms-2
duncanmcclean Jun 17, 2026
890d3b0
underlying yes/no fieldtype shouldn't be visible in form builder
duncanmcclean Jun 17, 2026
9db3d8d
[6.x] Fix the stars rating field rendering (#14820)
jaygeorge Jun 18, 2026
6ba903d
Merge branch '6.x' into forms-2
duncanmcclean Jun 19, 2026
159fcda
translate form title in all the places
duncanmcclean Jun 19, 2026
1717518
[6.x] Forms 2: Compressed view (#14853)
jaygeorge Jun 22, 2026
21b1829
Merge branch '6.x' into forms-2
duncanmcclean Jun 22, 2026
aa8db6d
add confirmation modal before deleting field
duncanmcclean Jun 22, 2026
57f9f5c
[6.x] Forms 2: Add "Always hide" option to field logic dropdown (#14859)
duncanmcclean Jun 22, 2026
d94e62d
wip
duncanmcclean Jun 23, 2026
1e397bb
Merge branch '6.x' into forms-2
duncanmcclean Jun 24, 2026
df261ed
[6.x] Forms 2: Submission Statuses (#14832)
duncanmcclean Jun 25, 2026
2e75c1c
Merge branch '6.x' into forms-2
duncanmcclean Jun 25, 2026
e4dd0a8
Merge branch '6.x' into forms-2
duncanmcclean Jun 30, 2026
5f81608
adjust initial page logic
duncanmcclean Jun 30, 2026
47f7905
[6.x] Forms 2: Site Filter (#14902)
duncanmcclean Jun 30, 2026
e090e85
cleanup `data-panels-showing` attribute when unmounting panel layout
duncanmcclean Jun 30, 2026
9f2b2d2
avoid publishing `star-rating.css`. the css is inlined now.
duncanmcclean Jun 30, 2026
eff4c77
exclude partial submissions from results count on forms listing
duncanmcclean Jul 1, 2026
07b190f
move `is_informative` out of generic `RendersForms` trait
duncanmcclean Jul 1, 2026
6e0764a
Merge branch '6.x' into forms-2
duncanmcclean Jul 2, 2026
9b7ae88
Merge branch '6.x' into forms-2
jaygeorge Jul 2, 2026
0ac798d
[6.x] Forms 2: Field numbering (#14909)
duncanmcclean Jul 2, 2026
378491c
Fix architectural lines breaking out of .content, e.g. /collections/c…
jaygeorge Jul 3, 2026
bbea10d
Merge remote-tracking branch 'origin/6.x' into forms-2
jasonvarga Jul 3, 2026
e88ad6f
Small dark mode fix
jaygeorge Jul 3, 2026
461512d
Merge branch '6.x' into forms-2
duncanmcclean Jul 6, 2026
3b4eb46
fix logic indicator not showing sometimes
duncanmcclean Jul 6, 2026
491b44d
include fieldset reference in tooltip
duncanmcclean Jul 6, 2026
243b695
[6.x] Forms 2: Logic Tree (#14811)
jaygeorge Jul 6, 2026
52798d9
wip
duncanmcclean Jul 6, 2026
be337b9
reset active tab in page inspector when selecting the last page
duncanmcclean Jul 6, 2026
5739fc4
avoid moving fields between pages in logic tree
duncanmcclean Jul 6, 2026
de239dd
Merge branch '6.x' into forms-2
duncanmcclean Jul 7, 2026
ef8d8fe
Small dark mode badge fix for page logic
jaygeorge Jul 7, 2026
d7f1f57
Make "delete" icon condition only appear on hover, like the trash icon
jaygeorge Jul 7, 2026
34aa292
Balance page rule with trash icon
jaygeorge Jul 7, 2026
9552b0a
Make "delete" icon condition only appear on hover for field logic too
jaygeorge Jul 7, 2026
eb2005b
Connect - adjust grid responsively
jaygeorge Jul 7, 2026
381570e
Merge branch '6.x' into forms-2
jaygeorge Jul 7, 2026
cc7f602
[6.x] Forms 2: Allow multiple forms when Forms Pro is installed (#14952)
duncanmcclean Jul 7, 2026
56e9900
[6.x] Forms 2: Access (#14950)
duncanmcclean Jul 7, 2026
7c9eaa7
Merge branch '6.x' into forms-2
duncanmcclean Jul 8, 2026
88a0a19
[6.x] Forms 2: Multi-page forms & `SubmitForm` action (#14840)
duncanmcclean Jul 8, 2026
510cea1
Merge branch '6.x' into forms-2
duncanmcclean Jul 9, 2026
da09e47
Fix failing test caused by #14959
duncanmcclean Jul 9, 2026
4cea062
[6.x] Forms 2: Tighten form upload validation in `SubmitForm` action …
duncanmcclean Jul 9, 2026
9bb3804
fix error when submitting a form page containing a fieldset import
duncanmcclean Jul 9, 2026
7ef050b
Logic tree - improve the way overflow is handled
jaygeorge Jul 9, 2026
bc563b2
Logic tree - improve full bleed scrolling with a separator
jaygeorge Jul 9, 2026
90e8d5c
Logic tree - panel styling
jaygeorge Jul 9, 2026
15674b2
Logic tree - add a container query like the list view
jaygeorge Jul 9, 2026
b526263
Logic tree - separate rules in split panel, like we do in the Edit tab
jaygeorge Jul 9, 2026
9e022c8
Fix connector line stacking context
jaygeorge Jul 9, 2026
ee555cf
Logic tree - align rules with the page header
jaygeorge Jul 9, 2026
fe40316
Logic tree - When an item is selected, highlight its connection
jaygeorge Jul 9, 2026
369d2d7
[6.x] Forms 2: Remember panel widths (#14968)
jackmcdade Jul 9, 2026
e98a704
Logic tree - dim the connection arrow of unselected columns too
jaygeorge Jul 9, 2026
0d0a2cf
Merge branch '6.x' into forms-2
jasonvarga Jul 9, 2026
769cf0b
[6.x] Forms 2: ✨ Move the panel to the side for /logic > tree view (#…
jaygeorge Jul 10, 2026
668ce1c
fix adding field logic in list mode
duncanmcclean Jul 10, 2026
1791060
[6.x] Logic empty state (#14976)
jaygeorge Jul 10, 2026
c4deef3
[6.x] Forms 2: Fix false dirty state when opening field inspector in …
duncanmcclean Jul 10, 2026
4ff2828
make text in paragraph fieldtype mandatory
duncanmcclean Jul 10, 2026
e02192f
Merge branch '6.x' into forms-2
duncanmcclean Jul 10, 2026
6fe3804
Merge branch '6.x' into forms-2
jasonvarga Jul 10, 2026
4df166b
[6.x] Forms 2: Permissions (#14957)
duncanmcclean Jul 10, 2026
d7f3217
Merge branch '6.x' into forms-2
duncanmcclean Jul 13, 2026
316c1a2
Add form builder empty state help text
jackmcdade Jul 13, 2026
b48ceee
Merge branch '6.x' into forms-2
duncanmcclean Jul 14, 2026
b194775
Space headings a little more
jaygeorge Jul 14, 2026
3ba0eb4
Half way
jaygeorge Jul 14, 2026
2dea0aa
Stop graph paper lines going through titles
jaygeorge Jul 14, 2026
7a59b13
Align empty message with top row
jaygeorge Jul 14, 2026
5d917a3
Merge branch '6.x' into forms-2
duncanmcclean Jul 15, 2026
4290b17
use `v-else` instead
duncanmcclean Jul 15, 2026
9335d5f
indent
duncanmcclean Jul 15, 2026
90d32f4
Correct sidebar calculations by accounting for container padding
jaygeorge Jul 15, 2026
c8915a3
Skew panels right
jaygeorge Jul 15, 2026
c4256f4
Skew panels right
jaygeorge Jul 15, 2026
dbd793d
Panels - restore middle breakpoint width
jaygeorge Jul 15, 2026
5664b3e
Revert "use `v-else` instead"
duncanmcclean Jul 15, 2026
07bc4f9
Tweak empty message decoration slightly, ready for a larger sidebar w…
jaygeorge Jul 15, 2026
87d8be6
Merge branch '6.x' into forms-2
duncanmcclean Jul 16, 2026
c70dd63
Merge branch '6.x' into forms-2
duncanmcclean Jul 17, 2026
ce56ae5
ensure extra config options are passed to fieldtypes
duncanmcclean Jul 17, 2026
ea49753
copy form fields when duplicating form
duncanmcclean Jul 20, 2026
4c6383b
add default messages as field placeholders
duncanmcclean Jul 20, 2026
bc6c992
[6.x] Logic tree leap calculation (#15035)
jaygeorge Jul 20, 2026
6e0af1c
Merge branch '6.x' into forms-2
duncanmcclean Jul 20, 2026
9adc15e
avoid dispatching events during initialization
duncanmcclean Jul 20, 2026
316f2e3
fix nav state getting out of sync with the DOM on page load
duncanmcclean Jul 20, 2026
5af8300
Merge branch '6.x' into forms-2
jasonvarga Jul 21, 2026
0359e5c
emit updated when validation rules are added via mutation
jasonvarga Jul 21, 2026
8574ced
Make current item more consistent with CP buttons
jaygeorge Jul 21, 2026
fa798d0
[6.x] Forms 2: Various file upload improvements (#15006)
duncanmcclean Jul 21, 2026
ea115ec
Merge branch '6.x' into forms-2
duncanmcclean Jul 22, 2026
e7b3387
move translation calls inside getter to avoid boot errors
duncanmcclean Jul 23, 2026
4774811
Merge branch '6.x' into forms-2
duncanmcclean Jul 23, 2026
c316553
[6.x] Remove unused form metrics code (#15066)
duncanmcclean Jul 23, 2026
c40daf8
Rename Marketplace button
jackmcdade Jul 23, 2026
7f2fa3a
Add Generate Fake Submission support for all the new form fieldtypes
jackmcdade Jul 23, 2026
660175e
ensure toggle conditions work correctly
duncanmcclean Jul 23, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
15 changes: 15 additions & 0 deletions config/assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -296,4 +296,19 @@
'folder' => 'set-previews',
],

/*
*--------------------------------------------------------------------------
* Image Choice Images
*--------------------------------------------------------------------------
*
* The Image Choice fieldtype on forms allows you to present images for a
* visitor to choose from. Here you may specify the asset container and
* folder where these images are stored.
*/

'image_choice_images' => [
'container' => 'assets',
'folder' => null,
],

];
24 changes: 24 additions & 0 deletions config/forms.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,18 @@

'forms' => resource_path('forms'),

/*
|--------------------------------------------------------------------------
| File Uploads Path
|--------------------------------------------------------------------------
|
| The path (on the file uploads disk) where file uploads are stored
| before they're converted to an asset or deleted.
|
*/

'file_uploads_path' => env('STATAMIC_FORM_UPLOADS_PATH', 'statamic/form-uploads'),

/*
|--------------------------------------------------------------------------
| Email View Folder
Expand All @@ -35,6 +47,18 @@

'send_email_job' => \Statamic\Forms\SendEmail::class,

/*
|--------------------------------------------------------------------------
| Partial Submissions
|--------------------------------------------------------------------------
|
| Partial submissions are automatically deleted after a set number of days.
| Set this to null to prevent their automatic deletion.
|
*/

'delete_partial_submissions_after' => 7,

/*
|--------------------------------------------------------------------------
| Exporters
Expand Down
5 changes: 5 additions & 0 deletions lang/en/form-fieldtypes.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

return [
'paragraph.config.display.instructions' => "This won't be displayed to visitors. It's just for internal reference.",
];
23 changes: 22 additions & 1 deletion lang/en/messages.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
'entry_count' => ':count entry|:count entries',
'entry_origin_instructions' => 'The new localization will inherit values from the entry in the selected site.',
'expect_root_instructions' => 'Consider the first page in the tree a "root" or "home" page.',
'field_conditions_always_save_instructions' => 'Always save field value, even if the field is hidden.',
'field_conditions_always_save_instructions' => 'Always save the field value, even if the field is hidden.',
'field_conditions_field_instructions' => 'You may enter any field handle. You are not limited to the options in the dropdown.',
'field_conditions_instructions' => 'When to show or hide this field.',
'field_desynced_from_origin' => 'Desynced from origin. Click to sync and revert to the origin\'s value.',
Expand Down Expand Up @@ -136,10 +136,31 @@
'form_configure_honeypot_instructions' => 'Field name to use as a honeypot. Honeypots are special fields used to reduce bot spam.',
'form_configure_intro' => 'Forms collect information from visitors and can trigger events and send notifications when submissions are received.',
'form_configure_mailer_instructions' => 'Choose the mailer for sending this email. Leave blank to fall back to the default mailer.',
'form_configure_generate_fake_submissions_instructions' => 'Allow generating fake submissions and workflow testing from the submissions screen.',
'form_configure_store_instructions' => 'Disable to stop storing submissions. Events and email notifications will still be sent.',
'form_configure_title_instructions' => 'Use a call to action, such as \'Contact Us\'.',
'form_configure_close_date_instructions' => 'The form will stop accepting submissions after this date. Leave blank to never close.',
'form_configure_submission_limit_instructions' => 'The maximum number of submissions to accept. Leave blank for no limit.',
'form_configure_submission_limit_period_instructions' => 'How often the submission limit resets.',
'form_configure_closed_message_instructions' => 'Shown when the form is closed or the submission limit has been reached. Leave blank to use the default message.',
'form_configure_require_login_instructions' => 'Only allow logged in users to submit this form.',
'form_configure_require_login_message_instructions' => 'Shown when a logged out visitor tries to submit the form. Leave blank to use the default message.',
'form_closed_message' => 'This form is no longer accepting submissions.',
'form_require_login_message' => 'You must be logged in to submit this form.',
'form_create_description' => 'Get started by creating your first form.',
'form_builder' => 'Form Builder',
'form_builder_empty_inspector' => 'Drag fields onto the form to add them. Click a field, section, or page to edit its settings here.',
'form_export_filtered_description' => 'Exports submissions with current filters and visible columns.',
'form_fake_submissions_deleted' => 'Deleted :count fake submission.|Deleted :count fake submissions.',
'form_fake_submissions_delete_failed' => 'Fake submissions could not be deleted.',
'form_fake_submissions_form_not_found' => 'Form could not be found for deleting fake submissions.',
'form_fake_submissions_none_to_delete' => 'No fake submissions to delete.',
'form_fake_submissions_partial_delete' => ':success/:total fake submissions were deleted.',
'form_fake_submission_generation_disabled' => 'Generating fake submissions is disabled for this form.',
'form_fake_submission_cancelled' => 'Fake submission was cancelled by a form event listener.',
'form_fake_submission_generated' => 'Fake submission generated.',
'form_fields_instructions_instructions' => 'Additional field instructions like this.',
'form_navigation' => 'Form navigation',
'getting_started_widget_collections' => 'Collections hold the different content types that make up your site, helping you stay organized.',
'getting_started_widget_docs' => 'Discover everything Statamic can do, and learn how to use its powerful features the right way.',
'getting_started_widget_header' => 'Getting Started with Statamic',
Expand Down
10 changes: 8 additions & 2 deletions lang/en/permissions.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,14 @@
'group_forms' => 'Forms',
'configure_forms' => 'Configure forms',
'configure_forms_desc' => 'Grants access to all form related permissions',
'configure_form_fields' => 'Configure Form Fields',
'configure_form_fields_desc' => 'Ability to edit form blueprints, fieldsets, and their fields.',
'edit_forms' => 'Edit forms',
'edit_forms_desc' => 'Grants access to all forms, except their submissions',
'create_forms' => 'Create forms',
'delete_forms' => 'Delete forms',
'view_form_submissions' => 'View submissions',
'view_form_submissions_desc' => 'Grants access to submissions across all forms',
'delete_form_submissions' => 'Delete submissions',
'edit_{form}_form' => 'Edit :form form',
'view_{form}_form_submissions' => 'View :form submissions',
'delete_{form}_form_submissions' => 'Delete :form submissions',

Expand Down
15 changes: 15 additions & 0 deletions resources/css/components/fieldtypes/assets.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,21 @@
}
}

/* Single asset picker (e.g. Image Choice option image)
========================================================================== */

/* Remove the double border effect */
.single_asset-fieldtype .asset-tile {
outline: none;
img {
@apply rounded-[calc(var(--radius-sm)-1px)]!;
}
:has(> &) {
padding: 0;
padding-block-end: 3px;
}
}

/* In a Bard fieldtype
========================================================================== */

Expand Down
100 changes: 100 additions & 0 deletions resources/css/components/fieldtypes/star-rating.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
/* CSS-only star rating via range input — https://css-tricks.com/a-css-only-star-rating-component-and-more-part-1/ */

.star-rating-input {
--s: 1.5rem;
--star-rating-gap: 0.4rem;
--star-rating-max: 5;
--star-rating-step: 1;
--_cell: calc(var(--s) + var(--star-rating-gap));
--_pad: calc(var(--star-rating-step) * var(--_cell) / 2);
/* Thumb fill boundary: full steps use half a cell; half steps use half a star width. */
--_fill-offset: calc(var(--_cell) / 2);
--_fill: var(--color-primary, goldenrod);
--_empty: var(--color-gray-600, #52525b);
/* viewBox width = 14 + 14 * (--star-rating-gap / --s) = 17.7333; path from resources/svg/icons/star.svg */
--_star-stroke-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2017.7333%2014%22%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%220.75%22%20stroke-linejoin%3D%22round%22%20d%3D%22M9.26344%204.34844C8.94942%203.02262%208.45287%201.8971%207.7007%200.865168%207.34583%200.378308%206.65711%200.378311%206.302%200.864976%205.54897%201.89696%205.0506%203.02254%204.73655%204.34844c-1.27708-0.0475-2.4531%200.10502-3.61903%200.49806-0.567297%200.19124-0.797993%200.88418-0.460427%201.39727C1.35657%207.30695%202.22018%208.14266%203.33681%208.8471c-0.43299%201.2339-0.63943%202.4396-0.65185%203.7051-0.00626%200.6378%200.56948%201.0938%201.15274%200.9045%201.16232-0.3774%202.18286-0.9657%203.16091-1.8293%200.97815%200.8637%202.00043%201.452%203.16369%201.8294%200.5833%200.1892%201.159-0.2668%201.1527-0.9046-0.0124-1.2655-0.2188-2.4712-0.6518-3.7051%201.1166-0.70444%201.9802-1.54015%202.6797-2.60333%200.3376-0.51309%200.1069-1.20603-0.4604-1.39727-1.1659-0.39304-2.342-0.54556-3.61906-0.49806Z%22%2F%3E%3C%2Fsvg%3E");
--_star-fill-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2017.7333%2014%22%3E%3Cpath%20fill%3D%22%23000%22%20d%3D%22M9.26344%204.34844C8.94942%203.02262%208.45287%201.8971%207.7007%200.865168%207.34583%200.378308%206.65711%200.378311%206.302%200.864976%205.54897%201.89696%205.0506%203.02254%204.73655%204.34844c-1.27708-0.0475-2.4531%200.10502-3.61903%200.49806-0.567297%200.19124-0.797993%200.88418-0.460427%201.39727C1.35657%207.30695%202.22018%208.14266%203.33681%208.8471c-0.43299%201.2339-0.63943%202.4396-0.65185%203.7051-0.00626%200.6378%200.56948%201.0938%201.15274%200.9045%201.16232-0.3774%202.18286-0.9657%203.16091-1.8293%200.97815%200.8637%202.00043%201.452%203.16369%201.8294%200.5833%200.1892%201.159-0.2668%201.1527-0.9046-0.0124-1.2655-0.2188-2.4712-0.6518-3.7051%201.1166-0.70444%201.9802-1.54015%202.6797-2.60333%200.3376-0.51309%200.1069-1.20603-0.4604-1.39727-1.1659-0.39304-2.342-0.54556-3.61906-0.49806Z%22%2F%3E%3C%2Fsvg%3E");

position: relative;
display: block;
width: calc(var(--_cell) * var(--star-rating-max));
max-width: 100%;
height: var(--s);
/* Symmetric padding aligns thumb centres with star slots (CSS-Tricks). */
padding-inline: var(--_pad);
box-sizing: border-box;
appearance: none;
cursor: pointer;
background: transparent;
border: none;
mask-image: var(--_star-fill-mask);
mask-size: var(--_cell) var(--s);
mask-repeat: repeat;

&[style*='--star-rating-step: 0.5'] {
--_fill-offset: calc((var(--s) - var(--star-rating-gap)) / 4);
}

&::before {
content: '';
position: absolute;
inset: 0;
background-color: var(--_empty);
pointer-events: none;
mask-image: var(--_star-stroke-mask);
mask-size: var(--_cell) var(--s);
mask-repeat: repeat;
}

:where(.dark) & {
--_empty: var(--color-gray-500);
}

&:disabled {
cursor: not-allowed;
opacity: 0.6;
}

&::-webkit-slider-thumb {
appearance: none;
-webkit-appearance: none;
width: 1px;
height: 0;
background: transparent;
border: none;
border-image: conic-gradient(at calc(50% + var(--_fill-offset)), transparent 50%, var(--_fill) 0) fill 0 // var(--s) 500px;
}

&::-moz-range-thumb {
appearance: none;
width: 1px;
height: 0;
background: transparent;
border: none;
border-image: conic-gradient(at calc(50% + var(--_fill-offset)), transparent 50%, var(--_fill) 0) fill 0 // var(--s) 500px;
}

&.star-rating-input--unrated {
&::-webkit-slider-thumb {
border-image: conic-gradient(transparent 0) fill 0 // var(--s) 500px;
}

&::-moz-range-thumb {
border-image: conic-gradient(transparent 0) fill 0 // var(--s) 500px;
}
}

&::-webkit-slider-runnable-track {
appearance: none;
-webkit-appearance: none;
height: var(--s);
background: transparent;
}

&::-moz-range-track {
appearance: none;
height: var(--s);
background: transparent;
border: none;
}
}
12 changes: 10 additions & 2 deletions resources/css/components/fieldtypes/table.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Table Fieldtype
========================================================================== */

.table-contained {
@apply relative mb-4 w-full rounded-lg border shadow-ui-sm outline-hidden dark:border-gray-700 with-contrast:border-gray-500 text-start;
@apply relative mb-4 w-full rounded-lg bg-content-bg border shadow-ui-sm outline-hidden dark:border-gray-700 with-contrast:border-gray-500 text-start;
border-collapse: separate;
border-spacing: 0;
table-layout: fixed;
Expand Down Expand Up @@ -107,6 +107,10 @@ Table Fieldtype
@apply border-e-0;
}

&:has(+ .visibility-controls) {
@apply border-e-0;
}

&.table-drag-handle {
@apply w-3 p-2 bg-white dark:bg-gray-850;
&:hover {
Expand All @@ -122,9 +126,13 @@ Table Fieldtype
@apply border-none bg-white dark:bg-gray-900 text-sm shadow-none;
}

.row-controls {
.row-controls,
.visibility-controls {
@apply w-8 text-center ps-0;
vertical-align: middle;
}

.row-controls {
&:focus-within {
@apply bg-gray-100 dark:bg-gray-700;
button {
Expand Down
Loading
Loading