You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,7 @@
14
14
- The `dynamic` component now properly displays error messages when its properties are invalid. There used to be a bug where errors would be silently ignored, making it hard to debug invalid dynamic components.
15
15
- New [`sqlpage.request_method`](https://sql.ophir.dev/functions.sql?function=request_method#function) function to get the HTTP method used to access the current page. This is useful to create pages that behave differently depending on whether they are accessed with a GET request (to display a form, for instance) or a POST request (to process the form).
16
16
- include the trailing semicolon as a part of the SQL statement sent to the database. This doesn't change anything in most databases, but Microsoft SQL Server requires a trailing semicolon after certain statements, such as `MERGE`. Fixes [issue #318](https://github.com/lovasoa/SQLpage/issues/318)
17
+
- New `readonly` and `disabled` attributes in the [form](https://sql.ophir.dev/documentation.sql?component=form#component) component to make form fields read-only or disabled. This is useful to prevent the user from changing some fields.
Not a single line of *HTML*, *CSS*, *JavaScript*, *Python*, *PHP* or *Ruby* was written to implement
38
+
SQLPage Airlines'' multi-step, conditional booking process. How is this even possible ?
39
+
40
+
The entire form and result page are dynamically generated by a few simple SQL queries, that
41
+
select graphical components from [SQLPage''s component library](/documentation.sql).
42
+
43
+
You can find the [**full source code** of this example on GitHub](https://github.com/lovasoa/SQLpage/blob/main/examples/official-site/examples/multistep-form).
Copy file name to clipboardExpand all lines: examples/official-site/sqlpage/migrations/01_documentation.sql
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -241,6 +241,8 @@ INSERT INTO parameter(component, name, description, type, top_level, optional) S
241
241
('prefix_icon','Icon to display on the left side of the input field, on the same line.','ICON',FALSE,TRUE),
242
242
('prefix','Text to display on the left side of the input field, on the same line.','TEXT',FALSE,TRUE),
243
243
('suffix','Short text to display after th input, on the same line. Useful to add units or a currency symbol to an input.','TEXT',FALSE,TRUE),
244
+
('readonly','Set to true to prevent the user from modifying the value of the input field.','BOOL',FALSE,TRUE),
245
+
('disabled','Set to true to prevent the user from interacting with the input field.','BOOL',FALSE,TRUE),
244
246
('id','A unique identifier for the input, which can then be used to select and manage the field with Javascript code. Usefull for advanced using as setting client side event listeners, interactive control of input field (disabled, visibility, read only, e.g.) and AJAX requests.','TEXT',FALSE,TRUE)
245
247
) x;
246
248
INSERT INTO example(component, description, properties) VALUES
@@ -792,6 +794,7 @@ You see the [page layouts demo](./examples/layouts.sql) for a live example of th
0 commit comments