Skip to content

Commit 3bd8e2d

Browse files
author
Theo Cochereau
committed
bu
1 parent b892a72 commit 3bd8e2d

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

examples/official-site/sqlpage/migrations/01_documentation.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ INSERT INTO parameter(component, name, description, type, top_level, optional) S
293293
('create_new', 'In a multiselect with a dropdown, this option allows the user to enter new values, that are not in the list of options.', 'BOOLEAN', FALSE, TRUE),
294294
('step', 'The increment of values in an input of type number. Set to 1 to allow only integers.', 'REAL', FALSE, TRUE),
295295
('description', 'A helper text to display near the input field.', 'TEXT', FALSE, TRUE),
296+
('description_md', 'A helper text to display near the input field - formatted using markdown.', 'TEXT', FALSE, TRUE),
296297
('pattern', 'A regular expression that the value must match. For instance, [0-9]{3} will only accept 3 digits.', 'TEXT', FALSE, TRUE),
297298
('autofocus', 'Automatically focus the field when the page is loaded', 'BOOLEAN', FALSE, TRUE),
298299
('width', 'Width of the form field, between 1 and 12.', 'INTEGER', FALSE, TRUE),

sqlpage/templates/form.handlebars

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131
{{#if description}}
3232
<small class="form-hint mt-0">{{description}}</small>
3333
{{/if}}
34+
{{#if description_md}}
35+
<small class="form-hint mt-0">{{description_md}}</small>
36+
{{/if}}
3437
</div>
3538
</div>
3639
</label>
@@ -123,6 +126,9 @@
123126
{{#if description}}
124127
<small class="form-hint mt-0">{{description}}</small>
125128
{{/if}}
129+
{{#if description_md}}
130+
<small class="form-hint mt-0">{{description_md}}</small>
131+
{{/if}}
126132
</label>
127133
{{/if}}
128134
{{/if}}

0 commit comments

Comments
 (0)