Changes for page Books
Last modified by Jip-jan Alunkel on November 23, 10:59
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Class properties (0 modified, 4 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,71 +1,73 @@ 1 1 {{velocity}} 2 -#set ($discard = $services.localization.use('document', 'cases.Code.translations')) 3 -#set( $discard = $xwiki.ssx.use('cases.WebHome') ) 4 -#set( $discard = $xwiki.jsx.use('cases.WebHome', {'minify' : false}) ) 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})) 5 5 {{/velocity}} 6 6 7 7 All about books 8 8 9 -{{include reference="assets.formMaker.macros"/}} 10 +{{include reference="assets.formMaker.macros" /}} 10 10 11 11 {{velocity}} 12 12 {{html}} 13 13 14 -#createFormStart("homeoworld_form" " case")15 +#createFormStart("homeoworld_form" "book") 15 15 16 -#set($ locality = {17 - "id" : " locality",17 +#set($booktype = { 18 + "id" : "booktype", 18 18 "type" : "select", 19 - "required" : " yes",20 - "label" : " Locality ofthe main complaint",21 - "aria-label" : "Select the locality",22 - "data-error-response-type" : "use_label_define d_1",20 + "required" : "true", 21 + "label" : "Type of book", 22 + "aria-label" : "Select the type of book", 23 + "data-error-response-type" : "use_label_definite_1", 23 23 "data-set-space" : "true", 24 - "placeholder" : " $services.localization.render('cases.word.locality_select.placeholder')",25 - "space-reference" : " cases",26 - "help-block" : " In which physiological or psychologicalepicentercanthemain complaintbeplaced?Select the bestfittingoptionfromthislist."25 + "placeholder" : "Type", 26 + "space-reference" : "books", 27 + "help-block" : "Choose the type of book you would like to add." 27 27 }) 28 28 29 -#createFormElement($ locality)30 +#createFormElement($booktype) 30 30 31 -#set($ main_complaint = {32 - "id" : " main_complaint",32 +#set($book_title = { 33 + "id" : "book_title", 33 33 "type" : "text", 34 - "required" : " yes",35 - "label" : " Maincomplaint",36 - "aria-label" : "Enter the maincomplaint",37 - "placeholder" : " $services.localization.render('cases.wordgroup.main_complaint.placeholder')",38 - "data-error-response-type" : "use_label_define d_1",35 + "required" : "true", 36 + "label" : "Title of the book", 37 + "aria-label" : "Enter the title of the book", 38 + "placeholder" : "Title", 39 + "data-error-response-type" : "use_label_definite_1", 39 39 "data-query-type" : "XWQL.matchTitle", 40 - "data-query-scope" : " cases",41 + "data-query-scope" : "books", 41 41 "data-query-list-type" : "suggest-negate", 42 - "data- suggest-list-header" : "$services.localization.render('cases.line.suggest_negate_list')",43 + "data-query-list-header" : "$services.localization.render('formMaker.line.suggest_negate_list')", 43 43 "data-query-list-contents" : "value", 44 44 "data-create-page" : "true", 45 - "help-block" : ' Pleasebe as conciseaspossiblewhen youdescribethemaincomplaint.Forexample:<br/>"chronic headachewithbowelcomplaints,"<br/>"intermittendfever"or<br />"diarrhea."'46 + "help-block" : 'When providing a title of a common type of book, please also provide the authorʼs last name, viz. Boericke Materia Medica.' 46 46 }) 47 47 48 -#createFormElement($ main_complaint)49 +#createFormElement($book_title) 49 49 50 -#set($r emedy= {51 - "id" : "r emedy",51 +#set($author = { 52 + "id" : "author", 52 52 "type" : "text", 53 - "required" : " yes",54 - "label" : " Remedy",55 - "aria-label" : " Choose the remedy",56 - "placeholder" : " $services.localization.render('cases.word.remedy.placeholder')",57 - "data-er ror-response-type" : "use_label_undefined",58 - "data-query- type" : "JSON.remedies",54 + "required" : "true", 55 + "label" : "Author of the book", 56 + "aria-label" : "Enter the author of the book", 57 + "placeholder" : "Author", 58 + "data-query-type" : "XWQL.matchObject", 59 + "data-query-scope" : "books", 59 59 "data-query-list-type" : "suggest-select", 60 - "data-suggest-list-header" : "$services.localization.render('cases.line.suggest_select_list')", 61 - "data-query-list-contents" : "value/key", 61 + "data-query-list-header" : "$services.localization.render('formMaker.line.suggest_select_list')", 62 + "data-query-list-contents" : "value", 63 + "data-query-list-editable" : "false", 62 62 "data-create-xobj" : "true", 63 - "data-xobj-classname" : " cases.Code.casesClass",64 - "data-xobj-fieldname" : "r emedy",65 - "help-block" : 'Select the remedy thatis centralinthis case.'65 + "data-xobj-classname" : "books.WebHome", 66 + "data-xobj-fieldname" : "author", 67 + "help-block" : 'Select the author of this case.' 66 66 }) 67 67 68 -#createFormElement($r emedy)70 +#createFormElement($author) 69 69 70 70 #set($extra_info = { 71 71 "id" : "extra_info", ... ... @@ -79,25 +79,20 @@ 79 79 80 80 #createExpandStart("extra_info" "yes") 81 81 82 -#set($author = { 83 - "id" : "author", 84 - "type" : "text", 85 - "required" : "no", 86 - "label" : "Author", 87 - "aria-label" : "Enter the author name", 88 - "placeholder" : "$services.localization.render('cases.word.author.placeholder')", 89 - "data-query-type" : "XWQL.matchObject", 90 - "data-query-scope" : "cases", 91 - "data-query-list-type" : "suggest-select", 92 - "data-suggest-list-header" : "$services.localization.render('cases.line.suggest_select_list')", 93 - "data-query-list-contents" : "value", 84 +#set($publish_year = { 85 + "id" : "publish_year", 86 + "type" : "number", 87 + "required" : "true", 88 + "label" : "Year of publishing", 89 + "aria-label" : "Enter the year of publishing", 90 + "placeholder" : "Year", 91 + "data-error-response-type" : "use_label_definite_1", 94 94 "data-create-xobj" : "true", 95 - "data-xobj-classname" : "cases.Code.casesClass", 96 - "data-xobj-fieldname" : "author", 97 - "help-block" : 'Select the author of this case.' 93 + "data-xobj-classname" : "books.WebHome", 94 + "data-xobj-fieldname" : "publish_year" 98 98 }) 99 99 100 -#createFormElement($ author)97 +#createFormElement($publish_year) 101 101 102 102 #createExpandEnd() 103 103
- author
-
- Number
-
... ... @@ -1,0 +1,1 @@ 1 +4 - Size
-
... ... @@ -1,0 +1,1 @@ 1 +30 - Pretty Name
-
... ... @@ -1,0 +1,1 @@ 1 +author - Name
-
... ... @@ -1,0 +1,1 @@ 1 +author
- remedy
-
- Number
-
... ... @@ -1,0 +1,1 @@ 1 +3 - Size
-
... ... @@ -1,0 +1,1 @@ 1 +30 - Pretty Name
-
... ... @@ -1,0 +1,1 @@ 1 +remedy - Name
-
... ... @@ -1,0 +1,1 @@ 1 +remedy
- title
-
- Number
-
... ... @@ -1,0 +1,1 @@ 1 +1 - Size
-
... ... @@ -1,0 +1,1 @@ 1 +30 - Pretty Name
-
... ... @@ -1,0 +1,1 @@ 1 +title - Name
-
... ... @@ -1,0 +1,1 @@ 1 +title - Use Suggest
-
... ... @@ -1,0 +1,1 @@ 1 +1
- type
-
- Number
-
... ... @@ -1,0 +1,1 @@ 1 +2 - Size
-
... ... @@ -1,0 +1,1 @@ 1 +30 - Pretty Name
-
... ... @@ -1,0 +1,1 @@ 1 +type - Name
-
... ... @@ -1,0 +1,1 @@ 1 +type - Use Suggest
-
... ... @@ -1,0 +1,1 @@ 1 +1