Cambios para el documento Books

Última modificación por Jip-jan Alunkel el noviembre 23, 10:59

Desde la versión 3.15
editado por Jip-jan Alunkel
el marzo 28, 16:17
Cambiar el comentario: No hay comentario para esta versión
Hasta la versión 3.34
editado por Jip-jan Alunkel
el marzo 29, 16:40
Cambiar el comentario: No hay comentario para esta versión

Resumen

Detalles

Propiedades de página
Contenido
... ... @@ -1,4 +2,3 @@
1 -
2 2  {{velocity}}
3 3  #set ($discard = $services.localization.use('document', 'cases.Code.translations'))
4 4  #set( $discard = $xwiki.ssx.use('cases.WebHome') )
... ... @@ -10,6 +10,7 @@
10 10  {{include reference="assets.macros.form-elements" /}}
11 11  
12 12  {{velocity}}
12 +{{html}}
13 13  
14 14  #createFormStart("homeoworld_form" "case")
15 15  
... ... @@ -16,7 +16,7 @@
16 16  #set($locality = {
17 17   "id" : "locality",
18 18   "type" : "select",
19 - "required" : true,
19 + "required" : "yes",
20 20   "label" : "Locality of the main complaint",
21 21   "aria-label" : "Select the locality",
22 22   "data-error-response-type" : "use_label_defined_1",
... ... @@ -31,7 +31,7 @@
31 31  #set($main_complaint = {
32 32   "id" : "main_complaint",
33 33   "type" : "text",
34 - "required" : true,
34 + "required" : "yes",
35 35   "label" : "Main complaint",
36 36   "aria-label" : "Enter the main complaint",
37 37   "placeholder" : "cases.wordgroup.main_complaint.placeholder",
... ... @@ -41,13 +41,65 @@
41 41   "data-query-list-type" : "suggest-negate",
42 42   "data-query-list-contents" : "value",
43 43   "data-create-page" : "true",
44 - "help-block" : "In which physiological or psychological epicenter can the main complaint be placed? Select the best fitting option from this list."
44 + "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."'
45 45  })
46 46  
47 47  #createFormElement($main_complaint)
48 48  
49 -#createFormEnd()
49 +#set($remedy = {
50 + "id" : "remedy",
51 + "type" : "text",
52 + "required" : "yes",
53 + "label" : "Remedy",
54 + "aria-label" : "Choose the remedy",
55 + "placeholder" : "cases.word.remedy.placeholder",
56 + "data-error-response-type" : "use_label_undefined",
57 + "data-query-type" : "JSON.remedies",
58 + "data-query-list-type" : "suggest-select",
59 + "data-query-list-contents" : "value/key",
60 + "data-create-xobj" : "true",
61 + "data-xobj-classname" : "cases.Code.casesClass",
62 + "data-xobj-fieldname" : "remedy",
63 + "help-block" : 'Select the remedy that is central in this case.'
64 +})
50 50  
66 +#createFormElement($remedy)
51 51  
68 +#set($extra_info = {
69 + "id" : "extra_info",
70 + "type" : "checkbox",
71 + "required" : "no",
72 + "label" : "Extra information (optional)",
73 + "value" : "yes"
74 +})
75 +
76 +#createFormElement($extra_info)
77 +
78 +#createExpandStart("extra_info" "yes")
79 +
80 +#set($author = {
81 + "id" : "author",
82 + "type" : "text",
83 + "required" : "no",
84 + "label" : "Author",
85 + "aria-label" : "Enter the author name",
86 + "placeholder" : "cases.word.author.placeholder",
87 + "data-query-type" : "XWQL.matchObject",
88 + "data-query-scope" : "cases",
89 + "data-query-list-type" : "suggest-select",
90 + "data-query-list-contents" : "value",
91 + "data-create-xobj" : "true",
92 + "data-xobj-classname" : "cases.Code.casesClass",
93 + "data-xobj-fieldname" : "author",
94 + "help-block" : 'Select the author of this case.'
95 +})
96 +
97 +#createFormElement($author)
98 +
99 +#createExpandEnd()
100 +
101 +#createFormEnd()
102 +
103 +{{/html}}
52 52  {{/velocity}}
53 53