Ophir LOJKINE
cc8848f614
Adjust form spacing without submit buttons ( #1215 )
2026-02-28 22:03:56 +01:00
setop
2840e1ab7c
add form buttons icons, closes #821 ( #1210 )
2026-02-04 09:23:29 +01:00
lovasoa
c5fbb4be54
form select: loose equality testing for option values
...
the form component now considers numbers and their string representation as equal when comparing the `value` parameter and the values from the `options` parameter in dropdowns
see https://github.com/sqlpage/SQLPage/discussions/1002
2025-08-30 18:16:53 +02:00
olivierauverlot
29f64479b5
form improvements with new types of field: header and switch ( #906 )
...
* form improvements with new types of field: header and switch
* added checked toggle switch example
* add names to the switch checkboxes
* update form header margins
* trailing whitespace
* docs
---------
Co-authored-by: lovasoa <contact@ophir.dev >
2025-05-20 00:54:05 +02:00
lovasoa
ae10f377f1
remove whitespace
2025-04-20 05:30:08 +02:00
lovasoa
92790048bd
fix markdown rendering in form
...
@theochr72
2025-02-11 23:56:35 +01:00
theochr72
3a03b92ffc
feature/add_markdown_to_forms ( #809 )
...
add description_md to the form component
---------
Co-authored-by: Theo Cochereau <tcochereau@cosium.com >
Co-authored-by: Théo Cochereau <theotheboss@MacBook-Air-de-Theo.local >
2025-02-11 22:23:03 +01:00
lovasoa
8ba15fdcc5
form select
2025-02-05 18:06:32 +01:00
lovasoa
69b3207f04
new auto_submit parameter in the form component
2025-02-05 13:54:25 +01:00
lovasoa
521328f678
Fix an issue with radio buttons default state
...
fixes https://github.com/sqlpage/SQLPage/issues/751
2024-12-30 13:26:42 +01:00
lovasoa
75462bd664
checked = value for checkboxes
2024-12-25 12:27:09 +01:00
Xylle
d18954ec8a
add empty_option to the form component ( #694 )
...
* Update form.handlebars
Add empty option to select
* Update 01_documentation.sql
Add documentation
* Update examples/official-site/sqlpage/migrations/01_documentation.sql
* Update sqlpage/templates/form.handlebars
* add empty_option example
* empty_option
---------
Co-authored-by: Ophir LOJKINE <contact@ophir.dev >
2024-11-17 11:13:23 +01:00
lovasoa
ce1b59f7d1
fix slight misalignment and sizing issues of checkboxes and radio buttons
...
fix https://github.com/lovasoa/SQLpage/discussions/613
2024-09-23 20:52:27 +02:00
Andrews Innovations
9896c91d1d
Fix textarea and select components ignoring class attribute
...
How to use:
select 'form' as component;
-- should have a big margin below and a padding
select
'select' as type,
'Test Label' as label,
'mb-4 p-3' as class,
'[{"label":"Test Label","value":"test"}]' as options;
select 'test' as name;
-- should have a big margin before and a big margin after
select 'textarea' as type, 'mb-4 mt-4' as class;
select 'test2' as name;
2024-09-09 17:34:49 -05:00
lovasoa
0a66c403a1
fix 0 values not being displayed in forms
2024-07-31 21:55:34 +02:00
Ophir LOJKINE
032109ddd0
Merge pull request #459 from djyotta/daniel/458-allow-set-formenctype
...
#458 - allow user to set formenctype
2024-06-27 10:19:16 +00:00
Daniel Sheffield
96636f2ff5
Update form.handlebars
...
Revert accidental change
2024-06-27 11:55:25 +12:00
Daniel Sheffield
7492e2f7f4
update docs and add caution on formenctype behaviour for file type input
2024-06-26 10:47:22 +12:00
Daniel Sheffield
4ded1d1c5f
apply only to textarea
2024-06-25 14:13:16 +12:00
Daniel Sheffield
a5e8664218
restore conditional on file type
2024-06-25 13:09:03 +12:00
Daniel Sheffield
e37b63b47d
just set on each component
2024-06-25 13:07:58 +12:00
Daniel Sheffield
9b8d2f1fd1
#458 - allow user to set formenctype
2024-06-25 13:00:45 +12:00
Daniel Sheffield
56701d5427
readonly doesn't work with select dropdown
2024-06-24 18:12:47 +12:00
Daniel Sheffield
35d221567d
add readonly and disabled params to select
2024-06-24 17:58:59 +12:00
Daniel Sheffield
02cd4d6acd
add readonly and disabled params to textarea
2024-06-24 17:58:46 +12:00
lovasoa
2830939623
Prevent form validation and give a helpful error message when an user tries to submit a form with a file upload field that is above the maximum file size.
2024-06-18 00:45:07 +02:00
lovasoa
63e8d1e7a8
new multi-step form example
2024-05-18 14:19:11 +02:00
lovasoa
a016cdb815
embed prefix addition in the static_path helper
2024-05-14 00:17:20 +02:00
Daniel Sheffield
013eb8f6c4
require trailing slash on site_prefix to avoid multiple strip_prefix calls
2024-05-13 21:28:19 +12:00
Daniel Sheffield
e09e1dbb5a
support site prefix for use with reverse proxy
2024-05-12 18:57:15 +12:00
lovasoa
490711abd7
add "searchable" as an alias for dropdown in the form component
...
thanks @c-classen
https://github.com/lovasoa/SQLpage/issues/297
2024-05-01 13:26:43 +02:00
lovasoa
fe268f45ed
bundle tomselect with sqlpage
2024-04-14 18:52:59 +02:00
lovasoa
12cc7cf0eb
add a dropdown form item that allows multiple selection
...
fixes https://github.com/lovasoa/SQLpage/issues/221
fixes https://github.com/lovasoa/SQLpage/discussions/281
see https://github.com/lovasoa/SQLpage/discussions/220
2024-04-14 18:31:31 +02:00
olivierauverlot
edb7bf4d0f
A unique identifier for the input, which can then be used to select and manage the field with Javascript code. ( #250 )
...
Co-authored-by: Olivier Auverlot <oauv@duck.com >
2024-03-04 16:08:17 +01:00
olivierauverlot
2d68c6b767
forms: allow creating input groups with icons and text around form fields
...
* New prefix and suffix attributes to create prepended and appended form fields
* fix indentation
* improve documentation
* add prefix_icon
* update changelog
---------
Co-authored-by: Olivier Auverlot <oauv@duck.com >
Co-authored-by: lovasoa <pere.jobs@gmail.com >
2024-02-11 10:58:29 +01:00
Lorefnon
1fa4f9364a
Add id/class to the components ( #182 )
2024-01-12 23:05:38 +01:00
lovasoa
3bc76da105
selected in multiselect options
...
see https://github.com/lovasoa/SQLpage/discussions/147
2023-12-07 00:45:34 +01:00
lovasoa
76b835eee8
fix a bug with input number min
2023-11-26 13:42:31 +01:00
Ophir LOJKINE
332420bc18
Files ( #139 )
...
* document future file functions
* make forms multipart when they contain a file field
* extract http request data reading logic
* start work on file upload
* multipart post data parsing
* millisecond precision in logs
* implement customizable upload file size limits
* wip: add file handling functions
* file handling pseudo-functions
* clippy
* fmt
2023-11-24 23:49:53 +01:00
lovasoa
499b9f11db
improve form hidden fields
...
fixes https://github.com/lovasoa/SQLpage/issues/130
2023-11-16 01:03:11 +01:00
lovasoa
ec0e580a95
Form submission with button component. #113
2023-11-06 23:07:55 +01:00
lovasoa
cb440827bd
docuementation + fix width
2023-11-02 23:23:12 +01:00
William Cronje
8ab25c81b6
Update form.handlebars
2023-10-30 10:26:45 +02:00
William Cronje
3677fa36e9
Update form.handlebars
2023-10-30 09:56:26 +02:00
William Cronje
ecddc47402
Update form.handlebars
2023-10-30 09:55:02 +02:00
lovasoa
7a05be7aa4
checked attribute for checkboxes and radio buttons
2023-07-15 20:03:21 +02:00
lovasoa
dab88f6570
Bugfix: "value" was ignored in textarea fields
...
Fix the form component.
Signed-off-by: Frank Endres <frank.endres@ac-nantes.fr >
2023-07-14 22:13:23 +02:00
lovasoa
01ecc9514b
add a "pattern" prop to the form component
2023-07-10 23:23:25 +02:00
lovasoa
b5e6464f99
fix a bug with checkboxes marked as "required" in the form component
2023-07-07 01:42:05 +02:00
lovasoa
5151749d34
add support for <select> as a form input
...
Closes https://github.com/lovasoa/SQLpage/issues/5
2023-06-11 02:10:48 +02:00