Wijzigen voor document Books

Laatst gewijzigd door Jip-jan Alunkel op november 23, 10:59

Van versie 8.23
gewijzigd door Jip-jan Alunkel
op april 11, 23:53
Opmerking bij wijziging: Updated class property
Naar versie 8.7
gewijzigd door Jip-jan Alunkel
op april 10, 15:53
Opmerking bij wijziging: Added class property

Samenvatting

Details

Paginaeigenschappen
Inhoud
... ... @@ -1,37 +3,16 @@
1 -{{include reference="assets.formMaker.macros" /}}
2 -
3 3  {{velocity}}
4 -{{html}}
5 5  #set($discard = $services.localization.use('document', 'cases.Code.translations'))
6 6  #set($discard = $services.localization.use('document', 'assets.formMaker.translations'))
7 7  #set($discard = $xwiki.ssx.use('assets.formMaker.WebHome'))
8 8  #set($discard = $xwiki.jsx.use('assets.formMaker.WebHome', {'minify' : false}))
9 -<p>
6 +{{/velocity}}
7 +
10 10  All about books
11 -</p>
12 -<h2 class="livetable">Overview of all books</h2>
13 -<div id="livetable">
14 14  
15 -#set ($columns = ["doc.title", "author", "doc.space"])
16 -#set ($columnsProperties = {
17 - "doc.title": {"type": "text", "filterable" : true, "sortable": true, "link": "view"},
18 - "remedy" : {"type": "text", "filterable" : true, "sortable": true, "size" : 4},
19 - "doc.space" : {"type": "text", "filterable" : true, "sortable": true, "size" : 4, "link": "space"}
20 -})
21 -#set ($options = {
22 - "className" : "books.WebHome",
23 - "translationPrefix" : "books.livetable.",
24 - "queryFilters" : "currentlanguage",
25 - "rowCount": 10
26 -})
27 -#livetable("books" $columns $columnsProperties $options)
10 +{{include reference="assets.formMaker.macros" /}}
28 28  
29 -</div>
30 -<h3>Add a book to this wiki</h3>
31 -<p>
32 - Do you know of any books that can be of value to people who would like to learn more about homeopathy?
33 - Please feel free to share these books with our readers. However, to make sure your case is correctly filed in this wiki it is necessary that you answer a few simple questions about the case.
34 -</p>
12 +{{velocity}}
13 +{{html}}
35 35  
36 36  #createFormStart("homeoworld_form" "book")
37 37  
... ... @@ -40,10 +40,10 @@
40 40   "type" : "select",
41 41   "required" : "true",
42 42   "label" : "Type of book",
43 - "aria-label" : "Select the type of book",
44 - "placeholder" : "Type",
22 + "aria-label" : "Select the locality",
45 45   "data-error-response-type" : "use_label_definite_1",
46 46   "data-set-space" : "true",
25 + "placeholder" : "Type",
47 47   "space-reference" : "books",
48 48   "help-block" : "Choose the type of book you would like to add."
49 49  })
... ... @@ -61,51 +61,34 @@
61 61   "data-query-type" : "XWQL.matchTitle",
62 62   "data-query-scope" : "books",
63 63   "data-query-list-type" : "suggest-negate",
64 - "data-query-list-header" : "$services.localization.render('formMaker.line.suggest_negate_list')",
43 + "data-query-list-header" : "$services.localization.render('cases.line.suggest_negate_list')",
65 65   "data-query-list-contents" : "value",
66 66   "data-create-page" : "true",
67 - "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 + "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."'
68 68  })
69 69  
70 70  #createFormElement($book_title)
71 71  
72 -#set($author = {
73 - "id" : "author",
51 +#set($remedy = {
52 + "id" : "remedy",
74 74   "type" : "text",
75 75   "required" : "true",
76 - "label" : "Author of the book",
77 - "aria-label" : "Enter the author of the book",
78 - "placeholder" : "Author",
55 + "label" : "Remedy",
56 + "aria-label" : "Choose the remedy",
57 + "placeholder" : "$services.localization.render('cases.word.remedy.placeholder')",
79 79   "data-error-response-type" : "use_label_definite_1",
80 - "data-query-type" : "XWQL.matchObject",
81 - "data-query-scope" : "books",
59 + "data-query-type" : "JSON.remedies",
82 82   "data-query-list-type" : "suggest-select",
83 - "data-query-list-header" : "$services.localization.render('formMaker.line.suggest_select_list')",
84 - "data-query-list-contents" : "value",
85 - "data-query-list-editable" : "true",
61 + "data-query-list-header" : "$services.localization.render('cases.line.suggest_select_list')",
62 + "data-query-list-contents" : "value/key",
86 86   "data-create-xobj" : "true",
87 87   "data-xobj-classname" : "books.WebHome",
88 - "data-xobj-fieldname" : "author",
89 - "help-block" : 'Select the author of this case.'
65 + "data-xobj-fieldname" : "remedy",
66 + "help-block" : 'Select the remedy that is central in this case.'
90 90  })
91 91  
92 -#createFormElement($author)
69 +#createFormElement($remedy)
93 93  
94 -#set($publish_year = {
95 - "id" : "publish_year",
96 - "type" : "number",
97 - "required" : "true",
98 - "label" : "Year of publishing",
99 - "aria-label" : "Enter the year of publishing",
100 - "placeholder" : "Year",
101 - "data-error-response-type" : "use_label_definite_1",
102 - "data-create-xobj" : "true",
103 - "data-xobj-classname" : "books.WebHome",
104 - "data-xobj-fieldname" : "publish_year"
105 -})
106 -
107 -#createFormElement($publish_year)
108 -
109 109  #set($extra_info = {
110 110   "id" : "extra_info",
111 111   "type" : "checkbox",
... ... @@ -118,15 +118,28 @@
118 118  
119 119  #createExpandStart("extra_info" "yes")
120 120  
121 -#createExpandEnd()
122 -
123 -#set($submit = {
124 - "id" : "create_book",
125 - "button-text" : "Create book",
126 - "help-block" : ""
83 +#set($author = {
84 + "id" : "author",
85 + "type" : "text",
86 + "required" : "false",
87 + "label" : "Author",
88 + "aria-label" : "Enter the author name",
89 + "placeholder" : "$services.localization.render('cases.word.author.placeholder')",
90 + "data-query-type" : "XWQL.matchObject",
91 + "data-query-scope" : "books",
92 + "data-query-list-type" : "suggest-select",
93 + "data-query-list-header" : "$services.localization.render('cases.line.suggest_select_list')",
94 + "data-query-list-contents" : "value",
95 + "data-create-xobj" : "true",
96 + "data-xobj-classname" : "books.WebHome",
97 + "data-xobj-fieldname" : "author",
98 + "help-block" : 'Select the author of this case.'
127 127  })
128 -#createSubmit($submit)
129 129  
101 +#createFormElement($author)
102 +
103 +#createExpandEnd()
104 +
130 130  #createFormEnd()
131 131  
132 132  {{/html}}
author
Use Suggest
... ... @@ -1,1 +1,0 @@
1 -1
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
publish_year
Number
... ... @@ -1,1 +1,0 @@
1 -2
Number Type
... ... @@ -1,1 +1,0 @@
1 -long
Size
... ... @@ -1,1 +1,0 @@
1 -30
Pretty Name
... ... @@ -1,1 +1,0 @@
1 -publish_year
Name
... ... @@ -1,1 +1,0 @@
1 -publish_year