|
| 1 | +-- Exercise every form layout that renders a field description: |
| 2 | +-- standard controls, the legacy checkbox/radio controls, and switches. |
| 3 | +SELECT |
| 4 | + 'form' AS component, |
| 5 | + 'Form description markdown' AS title, |
| 6 | + '' AS validate; |
| 7 | + |
| 8 | +SELECT |
| 9 | + 'modern_text' AS name, |
| 10 | + 'Modern text field' AS label, |
| 11 | + '**Bold text** and *italic text*.' AS description_md; |
| 12 | + |
| 13 | +SELECT |
| 14 | + 'modern_textarea' AS name, |
| 15 | + 'Modern textarea' AS label, |
| 16 | + 'textarea' AS type, |
| 17 | + '**Bold textarea** and *italic textarea*.' AS description_md; |
| 18 | + |
| 19 | +SELECT |
| 20 | + 'modern_select' AS name, |
| 21 | + 'Modern select' AS label, |
| 22 | + 'select' AS type, |
| 23 | + '[{"label":"Option","value":"option"}]' AS options, |
| 24 | + '**Bold select** and *italic select*.' AS description_md; |
| 25 | + |
| 26 | +SELECT |
| 27 | + 'legacy_radio' AS name, |
| 28 | + 'Legacy radio' AS label, |
| 29 | + 'radio' AS type, |
| 30 | + 'radio' AS value, |
| 31 | + '**Bold radio** and *italic radio*.' AS description_md; |
| 32 | + |
| 33 | +SELECT |
| 34 | + 'legacy_checkbox' AS name, |
| 35 | + 'Legacy checkbox' AS label, |
| 36 | + 'checkbox' AS type, |
| 37 | + 'checkbox' AS value, |
| 38 | + '**Bold checkbox** and *italic checkbox*.' AS description_md; |
| 39 | + |
| 40 | +SELECT |
| 41 | + 'modern_switch' AS name, |
| 42 | + 'Modern switch' AS label, |
| 43 | + 'switch' AS type, |
| 44 | + 'switch' AS value, |
| 45 | + '**Bold switch** and *italic switch*.' AS description_md; |
0 commit comments