Código fuente wiki de homeopathsSheet

Versión 1.1 por Jip-jan Alunkel el marzo 05, 20:08

Mostrar los últimos autores
1 {{include reference="assets.pagemaker.macros"/}}
2
3 {{velocity}}
4 {{html wiki="true" clean="false"}}
5 #if(!$isGuest)
6 <script>
7 var pagemakerOffspring = "disable";
8 </script>
9 #end
10 #set($discard = $services.localization.use('document', 'homeopaths.Code.translations'))
11 #set($discard = $services.localization.use('document', 'assets.pagemaker.translations'))
12 #set($discard = $xwiki.ssx.use('assets.pagemaker.WebHome', {'minify': false}))
13 #set($discard = $xwiki.jsx.use('assets.pagemaker.WebHome', {'minify': false, 'language': $context.language, 'myParameter': 'value'}))
14 #set($countrydoc = $xwiki.getDocument("${doc.fullName}").getTranslatedDocument())
15 #set($isInline = $xcontext.action == 'edit' && $request.get('editor') == 'inline')
16 $countrydoc.getContent()
17 ##<input type="hidden" name="pagemakerOffspring" value="homeopaths" id="pagemakerOffspring">
18 #if(!$isGuest)
19 <p class="buttons text-align-right">
20 <a class="btn btn-primary" title="Edit" href="$doc.getURL("edit")?editor=wysiwyg" role="button" rel="nofollow">
21 <span class="fa fa-pencil"></span>
22 <span class="btn-label">Edit contents</span>
23 </a>
24 </p>
25 #end
26 #set($spaceReference = $services.model.resolveDocument('', 'default', $doc.documentReference.lastSpaceReference).parent)
27 #set($spaceTitle = $spaceReference.getName())
28 <div class="clearfix"></div>
29 ## Get/Create object (important for sheet binding, do not remove)
30 #set($countryObj = $doc.getObject("homeopaths.Code.homeopathsCountryClass", true))
31 #if($xcontext.action == "view")
32 <div id="${spaceTitle}" class="box sheet_properties">
33 <h2>Details</h2>
34 <div id="non_free_occupation">
35 <p class="property">
36 <span class="property-name">Medical degree mandatory</span> <span class="property-value">$doc.display('non_free_occupation')</span>
37 </p>
38 <p class="help-block">
39 Countries over the world have different rules regarding the neccessity of a medical degree to practice homeopathy.
40 </p>
41 </div>
42 #if(!$isGuest)
43 <p class="buttons text-align-right">
44 <a class="btn btn-secondary" title="Edit" data-toggle="modal" data-target="#detailsModal" role="button" rel="nofollow">
45 <span class="btn-label">Edit details</span>
46 </a>
47 </p>
48 #end
49 </div>
50 #if(!$isGuest)
51 #set($form_start = {
52 "id": "homeopathsCountry_form",
53 "product": "country details",
54 "method": "post",
55 "url": "",
56 "use_captcha": "false"
57 })
58 #set($non_free_occupation = {
59 "id": "non_free_occupation",
60 "type": "checkbox",
61 "required" : "false",
62 "label" : "Medical degree mandatory",
63 "data-create-xobj" : "true",
64 "data-xobj-classname" : "homeopaths.Code.homeopathsCountryClass",
65 "data-xobj-fieldname" : "non_free_occupation",
66 "value": "$doc.getObject('homeopaths.Code.homeopathsCountryClass').getProperty('non_free_occupation').value"
67 })
68 #set($submit = {
69 "id" : "edit_details",
70 "button-text" : "Save changes",
71 "clean": "true",
72 "help-block" : ""
73 })
74 #set($form_end = {
75 "use_captcha": "false"
76 })
77 <div class="modal fade" id="detailsModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
78 <div class="modal-dialog modal-dialog-centered" role="document">
79 <div class="modal-content">
80 #createFormStart($form_start)
81 <div class="modal-header">
82 <h3 class="modal-title">Details</h3>
83 <button type="button" class="close" data-dismiss="modal" aria-label="Close">
84 <span aria-hidden="true">&times;</span>
85 </button>
86 </div>
87 <div class="modal-body">
88 #createFormElement($non_free_occupation)
89 </div>
90 <div class="modal-footer">
91 <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
92 #createSubmit($submit)
93 </div>
94 #createFormEnd($form_end)
95 </div>
96 </div>
97 </div>
98 #end
99 #end
100 {{/html}}
101 {{/velocity}}