Wiki source code of Books
Version 7.2 by Jip-jan Alunkel on April 09, 16:55
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
3.11 | 1 | {{velocity}} |
![]() |
5.2 | 2 | #set($discard = $services.localization.use('document', 'cases.Code.translations')) |
3 | #set($discard = $services.localization.use('document', 'assets.formMaker.translations')) | ||
4 | #set($discard = $xwiki.ssx.use('assets.formMaker.WebHome')) | ||
5 | #set($discard = $xwiki.jsx.use('assets.formMaker.WebHome', {'minify' : false})) | ||
![]() |
3.11 | 6 | {{/velocity}} |
![]() |
3.14 | 7 | |
![]() |
1.1 | 8 | All about books |
![]() |
2.2 | 9 | |
![]() |
5.2 | 10 | {{include reference="assets.formMaker.macros" /}} |
![]() |
2.2 | 11 | |
12 | {{velocity}} | ||
![]() |
3.16 | 13 | {{html}} |
![]() |
3.13 | 14 | |
![]() |
6.3 | 15 | #createFormStart("homeoworld_form" "book") |
![]() |
3.12 | 16 | |
![]() |
6.2 | 17 | #set($booktype = { |
18 | "id" : "booktype", | ||
![]() |
2.2 | 19 | "type" : "select", |
![]() |
7.2 | 20 | "required" : "true", |
![]() |
6.2 | 21 | "label" : "Type of book", |
![]() |
2.2 | 22 | "aria-label" : "Select the locality", |
23 | "data-error-response-type" : "use_label_defined_1", | ||
24 | "data-set-space" : "true", | ||
![]() |
3.43 | 25 | "placeholder" : "$services.localization.render('cases.word.locality_select.placeholder')", |
![]() |
6.1 | 26 | "space-reference" : "books", |
![]() |
6.2 | 27 | "help-block" : "Choose the type of book you would like to enter." |
![]() |
2.2 | 28 | }) |
![]() |
3.13 | 29 | |
![]() |
6.2 | 30 | #createFormElement($booktype) |
![]() |
3.13 | 31 | |
![]() |
3.9 | 32 | #set($main_complaint = { |
33 | "id" : "main_complaint", | ||
34 | "type" : "text", | ||
![]() |
7.2 | 35 | "required" : "true", |
![]() |
3.9 | 36 | "label" : "Main complaint", |
37 | "aria-label" : "Enter the main complaint", | ||
![]() |
3.43 | 38 | "placeholder" : "$services.localization.render('cases.wordgroup.main_complaint.placeholder')", |
![]() |
3.9 | 39 | "data-error-response-type" : "use_label_defined_1", |
40 | "data-query-type" : "XWQL.matchTitle", | ||
![]() |
6.1 | 41 | "data-query-scope" : "books", |
![]() |
3.9 | 42 | "data-query-list-type" : "suggest-negate", |
![]() |
3.43 | 43 | "data-suggest-list-header" : "$services.localization.render('cases.line.suggest_negate_list')", |
![]() |
3.9 | 44 | "data-query-list-contents" : "value", |
45 | "data-create-page" : "true", | ||
![]() |
3.23 | 46 | "help-block" : 'Please be as concise as possible when you describe the main complaint. For example:<br />"chronic headache with bowel complaints,"<br />"intermittend fever" or<br />"diarrhea."' |
![]() |
3.9 | 47 | }) |
![]() |
3.13 | 48 | |
![]() |
3.9 | 49 | #createFormElement($main_complaint) |
50 | |||
![]() |
3.24 | 51 | #set($remedy = { |
52 | "id" : "remedy", | ||
53 | "type" : "text", | ||
![]() |
7.2 | 54 | "required" : "true", |
![]() |
3.24 | 55 | "label" : "Remedy", |
56 | "aria-label" : "Choose the remedy", | ||
![]() |
3.43 | 57 | "placeholder" : "$services.localization.render('cases.word.remedy.placeholder')", |
![]() |
3.24 | 58 | "data-error-response-type" : "use_label_undefined", |
59 | "data-query-type" : "JSON.remedies", | ||
60 | "data-query-list-type" : "suggest-select", | ||
![]() |
3.42 | 61 | "data-suggest-list-header" : "$services.localization.render('cases.line.suggest_select_list')", |
![]() |
3.24 | 62 | "data-query-list-contents" : "value/key", |
63 | "data-create-xobj" : "true", | ||
![]() |
6.1 | 64 | "data-xobj-classname" : "books.WebHome", |
![]() |
3.24 | 65 | "data-xobj-fieldname" : "remedy", |
![]() |
3.26 | 66 | "help-block" : 'Select the remedy that is central in this case.' |
![]() |
3.24 | 67 | }) |
68 | |||
69 | #createFormElement($remedy) | ||
70 | |||
![]() |
3.27 | 71 | #set($extra_info = { |
72 | "id" : "extra_info", | ||
73 | "type" : "checkbox", | ||
74 | "required" : "no", | ||
75 | "label" : "Extra information (optional)", | ||
76 | "value" : "yes" | ||
77 | }) | ||
78 | |||
79 | #createFormElement($extra_info) | ||
80 | |||
![]() |
3.30 | 81 | #createExpandStart("extra_info" "yes") |
![]() |
3.28 | 82 | |
![]() |
3.31 | 83 | #set($author = { |
![]() |
3.32 | 84 | "id" : "author", |
![]() |
3.31 | 85 | "type" : "text", |
![]() |
7.2 | 86 | "required" : "false", |
![]() |
3.32 | 87 | "label" : "Author", |
88 | "aria-label" : "Enter the author name", | ||
![]() |
3.43 | 89 | "placeholder" : "$services.localization.render('cases.word.author.placeholder')", |
![]() |
3.32 | 90 | "data-query-type" : "XWQL.matchObject", |
![]() |
6.1 | 91 | "data-query-scope" : "books", |
![]() |
3.31 | 92 | "data-query-list-type" : "suggest-select", |
![]() |
3.43 | 93 | "data-suggest-list-header" : "$services.localization.render('cases.line.suggest_select_list')", |
![]() |
3.32 | 94 | "data-query-list-contents" : "value", |
![]() |
3.31 | 95 | "data-create-xobj" : "true", |
![]() |
6.1 | 96 | "data-xobj-classname" : "books.WebHome", |
![]() |
3.32 | 97 | "data-xobj-fieldname" : "author", |
98 | "help-block" : 'Select the author of this case.' | ||
![]() |
3.31 | 99 | }) |
![]() |
3.29 | 100 | |
![]() |
3.33 | 101 | #createFormElement($author) |
102 | |||
![]() |
3.30 | 103 | #createExpandEnd() |
![]() |
3.28 | 104 | |
![]() |
3.13 | 105 | #createFormEnd() |
106 | |||
![]() |
3.16 | 107 | {{/html}} |
![]() |
2.2 | 108 | {{/velocity}} |