Code source wiki de Cases
Modifié par Jip-jan Alunkel le mai 21, 15:57
Afficher les derniers auteurs
author | version | line-number | content |
---|---|---|---|
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}) ) | ||
5 | {{html wiki="true" clean="false"}} | ||
6 | <div class="intro-text"> | ||
7 | <p class="intro-text"> | ||
8 | <span class="saying"> | ||
9 | The true healing art is in its nature a pure science of experience, and can and must rest on clear facts and on the sensible phenomena pertaining to their sphere of action, for all the subjects it has to deal with are clearly and satisfactorily cognizable by the senses through experience. | ||
10 | </span> | ||
11 | <span class="sayee">Samuel Hahnemann</span> | ||
12 | </p> | ||
13 | </div> | ||
14 | <p> | ||
15 | As the homeopathic case develops, the case taker gains insight on (a certain timeframe of) a patient's life. While proceding to document the realities of a particular moment, the complement of all documented interactions can be seen as a story.<br /> | ||
16 | It is well known that storytelling is of great use in preserving and spreading information. This gives the publication of homeopathic cases a tremendous potential to teach and inspire.<br /> | ||
17 | With this in mind, we are convinced that cases will be a great addition to this wiki. | ||
18 | </p> | ||
19 | <div id="liveTable"> | ||
20 | #set ($columns = ['doc.title', "remedy", 'doc.space']) | ||
21 | #set ($columnsProperties = { | ||
22 | 'doc.title': {"type": "text", "filterable" : true, "sortable": true, "link": "view"}, | ||
23 | "remedy" : {"type": "text", "filterable" : true, "sortable": true, "size" : 4}, | ||
24 | "doc.space" : {"type": "text", "filterable" : true, "sortable": true, "size" : 4, "link": "space"} | ||
25 | }) | ||
26 | #set ($options = { | ||
27 | 'className' : "cases.Code.casesClass", | ||
28 | 'translationPrefix' : 'cases.livetable.', | ||
29 | 'rowCount': 5 | ||
30 | }) | ||
31 | #livetable('cases' $columns $columnsProperties $options) | ||
32 | </div> | ||
33 | <h3>Add a case to this wiki</h3> | ||
34 | <p> | ||
35 | Do you know of any cases that can be of value to people who would like to learn more about homeopathy? | ||
36 | Please feel free to share these cases 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. | ||
37 | </p> | ||
38 | <form action="" id="homeoworld_form" method="post" class="formMaker" novalidate="novalidate"> | ||
39 | <p class="required"> | ||
40 | <label for="locality_select"> | ||
41 | Locality of the main complaint | ||
42 | <span class="input-wrap select-wrap"> | ||
43 | <select class="form-select form-control" aria-label="Select the locality" required="required" aria-required="true" data-error-response-type="use_label_defined_1" data-docref-create-space="true" name="locality_select" id="locality_select"> | ||
44 | <option value="" disabled="" selected="" hidden="hidden">$services.localization.render('cases.word.locality_select.placeholder')</option> | ||
45 | #set($xwql = "select doc.fullName from Document doc, doc.object(AppWithinMinutes.MetadataClass) met where doc.space like 'cases.%' order by met.dataSpaceName asc") | ||
46 | #set($results = $services.query.xwql($xwql).addFilter('unique').execute()) | ||
47 | #foreach ($item in $results) | ||
48 | #set ($document = $xwiki.getDocument($item)) | ||
49 | <option value="$document.space">$document.getTitle()</option> | ||
50 | #end | ||
51 | </select> | ||
52 | <span id="helpBlock" class="help-block">Please select the best suited physiological or psychological epicenter that the main complaint of the case hinges on.</span> | ||
53 | <span class="required-input-field"></span> | ||
54 | <span role="alert" class="form-not-valid-tip"></span> | ||
55 | </span> | ||
56 | </label> | ||
57 | </p> | ||
58 | <p class="required" contenteditable="true"> | ||
59 | <label for="main_complaint_textinput"> | ||
60 | Main complaint | ||
61 | <span class="input-wrap"> | ||
62 | <input type="text" class="form-control full" name="main_complaint_textinput" id="main_complaint_textinput" placeholder="${services.localization.render('cases.wordgroup.main_complaint.placeholder')}" aria-describedby="helpBlock" aria-required="true" required="required" data-error-response-type="use_label_defined_1" data-rest-query-scope="cases" data-rest-query-type="XWQL.match" data-rest-query-list-type="suggest-negate" data-rest-xobj-fieldname="main_complaint" data-docref-create-page="true" autocomplete="off"> | ||
63 | <span id="helpBlock" class="help-block">Please be as concise as possible when you describe the main complaint. For example: "chronic headache", "intermittend fever" or "diarrhea"</span> | ||
64 | <span class="required-input-field"></span> | ||
65 | <span role="alert" class="form-not-valid-tip"></span> | ||
66 | </span> | ||
67 | </label> | ||
68 | </p> | ||
69 | <p class="required" contenteditable="true"> | ||
70 | <label for="remedy_textinput"> | ||
71 | Remedy | ||
72 | <span class="input-wrap"> | ||
73 | <input type="text" class="form-control full" name="remedy_textinput" id="remedy_textinput" placeholder="${services.localization.render('cases.word.remedy.placeholder')}" aria-describedby="helpBlock" aria-required="true" required="required" data-error-response-type="use_label_defined_1" data-rest-query-scope="" data-rest-query-type="JSON.remedies" data-rest-query-list-type="suggest-select" data-rest-xobj-docref="" data-rest-xobj-classname="cases.Code.casesClass" data-rest-xobj-fieldname="remedy" autocomplete="off"> | ||
74 | <span id="helpBlock" class="help-block">Select the remedy that is central in this case.</span> | ||
75 | <span class="required-input-field"></span> | ||
76 | <span role="alert" class="form-not-valid-tip"></span> | ||
77 | </span> | ||
78 | </label> | ||
79 | </p> | ||
80 | <div class="clearfix"> | ||
81 | <p class="alert alert-warning alert-button-float-right"> | ||
82 | <span class="alert-button pull-right"> | ||
83 | #if ($xcontext.user != 'XWiki.XWikiGuest') | ||
84 | <input type="submit" class="btn btn-primary" id="create_case" name="create_case" value="Create new case" /> | ||
85 | #else | ||
86 | <a data-toggle="modal" data-target="#displayLogin" href="#" class="btn btn-primary">$services.localization.render('login')</a> | ||
87 | #end | ||
88 | </span> | ||
89 | <span class="alert-text"> | ||
90 | Please remind yourself to always anonymize the case. | ||
91 | </span> | ||
92 | </p> | ||
93 | </div> | ||
94 | <div role="alert" class="form-response-output form-validation-errors" style="display: none"> | ||
95 | <p> | ||
96 | $services.localization.render('cases.line.global_error_msg') | ||
97 | </p> | ||
98 | </div> | ||
99 | <div role="alert" class="form-response-output form-validation-ok" style="display: none"> | ||
100 | <p> | ||
101 | $services.localization.render('cases.line.global_ok_msg') | ||
102 | </p> | ||
103 | </div> | ||
104 | </form> | ||
105 | {{/html}} | ||
106 | {{/velocity}} |