Cambios para el documento Books
Última modificación por Jip-jan Alunkel el noviembre 23, 10:59
Desde la versión 3.12
editado por Jip-jan Alunkel
el marzo 28, 16:09
el marzo 28, 16:09
Cambiar el comentario:
No hay comentario para esta versión
Hasta la versión 3.31
editado por Jip-jan Alunkel
el marzo 28, 23:34
el marzo 28, 23:34
Cambiar el comentario:
No hay comentario para esta versión
Resumen
-
Propiedades de página (1 modificado, 0 añadido, 0 eliminado)
Detalles
- Propiedades de página
-
- Contenido
-
... ... @@ -1,20 +2,22 @@ 1 - 2 2 {{velocity}} 3 3 #set ($discard = $services.localization.use('document', 'cases.Code.translations')) 4 4 #set( $discard = $xwiki.ssx.use('cases.WebHome') ) 5 5 #set( $discard = $xwiki.jsx.use('cases.WebHome', {'minify' : false}) ) 6 6 {{/velocity}} 6 + 7 7 All about books 8 8 9 9 {{include reference="assets.macros.form-elements" /}} 10 10 11 11 {{velocity}} 12 +{{html}} 13 + 12 12 #createFormStart("homeoworld_form" "case") 13 13 14 14 #set($locality = { 15 15 "id" : "locality", 16 16 "type" : "select", 17 - "required" : true,19 + "required" : "yes", 18 18 "label" : "Locality of the main complaint", 19 19 "aria-label" : "Select the locality", 20 20 "data-error-response-type" : "use_label_defined_1", ... ... @@ -23,11 +23,13 @@ 23 23 "space-reference" : "cases", 24 24 "help-block" : "In which physiological or psychological epicenter can the main complaint be placed? Select the best fitting option from this list." 25 25 }) 28 + 26 26 #createFormElement($locality) 30 + 27 27 #set($main_complaint = { 28 28 "id" : "main_complaint", 29 29 "type" : "text", 30 - "required" : true,34 + "required" : "yes", 31 31 "label" : "Main complaint", 32 32 "aria-label" : "Enter the main complaint", 33 33 "placeholder" : "cases.wordgroup.main_complaint.placeholder", ... ... @@ -37,10 +37,78 @@ 37 37 "data-query-list-type" : "suggest-negate", 38 38 "data-query-list-contents" : "value", 39 39 "data-create-page" : "true", 40 - "help-block" : "In which physiologicalorpsychologicalepicentercanthe main complaintbeplaced?Selectthebestfitting option fromthis 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."' 41 41 }) 46 + 42 42 #createFormElement($main_complaint) 43 -#createFormEnd 44 44 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 +}) 65 + 66 +#createFormElement($remedy) 67 + 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 +<input type="text" class="form-control full" 81 +name="author_text" 82 +id="author_text" 83 +placeholder="${services.localization.render('cases.word.author.placeholder')}" 84 +aria-describedby="author_helpBlock" 85 +aria-label="Enter the author name" 86 +data-query-type="XWQL.matchObject" 87 +data-query-scope="cases" 88 +data-query-list-type="suggest-select" 89 +data-query-list-contents="value" 90 +data-query-list-editable="true" 91 +data-create-xobj="true" 92 +data-xobj-classname="cases.Code.casesClass" 93 +data-xobj-fieldname="author" 94 +autocomplete="off"> 95 +#set($author = { 96 + "id" : "remedy", 97 + "type" : "text", 98 + "required" : "yes", 99 + "label" : "Remedy", 100 + "aria-label" : "Choose the remedy", 101 + "placeholder" : "cases.word.remedy.placeholder", 102 + "data-error-response-type" : "use_label_undefined", 103 + "data-query-type" : "JSON.remedies", 104 + "data-query-list-type" : "suggest-select", 105 + "data-query-list-contents" : "value/key", 106 + "data-create-xobj" : "true", 107 + "data-xobj-classname" : "cases.Code.casesClass", 108 + "data-xobj-fieldname" : "remedy", 109 + "help-block" : 'Select the remedy that is central in this case.' 110 +}) 111 + 112 +#createExpandEnd() 113 + 114 +#createFormEnd() 115 + 116 +{{/html}} 45 45 {{/velocity}} 46 46