Wiki-Quellcode von <b>FORMCYCLE V6 Hilfe</b>
Zeige letzte Bearbeiter
author | version | line-number | content |
---|---|---|---|
1 | {{include reference="Help.Code.VelocityMacros"/}} | ||
2 | |||
3 | {{velocity output="false"}} | ||
4 | #macro (MainMenuCard $data) | ||
5 | #set ($documentationURL = $NULL) | ||
6 | #if ($data.documentation) | ||
7 | #set ($externalDocumentation = $data.documentation.contains('://')) | ||
8 | #if ($externalDocumentation) | ||
9 | #set ($documentationURL = $data.documentation) | ||
10 | #else | ||
11 | #set ($documentationURL = $xwiki.getURL($data.documentation)) | ||
12 | #end | ||
13 | #end | ||
14 | #set ($examplesURL = $NULL) | ||
15 | #if ($data.examples) | ||
16 | #if ($data.examples.startsWith('/')) | ||
17 | ## Relative internal URL | ||
18 | #set ($examplesURL = $data.examples) | ||
19 | #else | ||
20 | ## Page reference | ||
21 | #set ($examplesURL = $xwiki.getURL($data.examples)) | ||
22 | #end | ||
23 | #set ($url = $examplesURL) | ||
24 | #else | ||
25 | #set ($url = $documentationURL) | ||
26 | #end | ||
27 | <div class="well"> | ||
28 | #if ($data.icon) | ||
29 | <span class="icon $data.icon" style="color:#504e4c"></span> | ||
30 | #end | ||
31 | #if ($data.iconfc) | ||
32 | ##{{ficon name="$data.iconfc" size="1em"/}} title="$title" | ||
33 | <span class="ico-fc-$data.iconfc" style="font-size:3em"></span> | ||
34 | #end | ||
35 | <h6> | ||
36 | <a href="$!url"> | ||
37 | $escapetool.xml($data.title) | ||
38 | </a> | ||
39 | </h6> | ||
40 | #if ($data.description) | ||
41 | <p class="noitems" style="height:4em"> | ||
42 | $data.description | ||
43 | </p> | ||
44 | #end | ||
45 | #if (($data.examples && $data.documentation) || !$data.thumbnail) | ||
46 | <ul class="noitems"> | ||
47 | #if ($data.examples) | ||
48 | <li> | ||
49 | <a href="$examplesURL">$services.localization.render('help.example.label')</a> | ||
50 | </li> | ||
51 | #end | ||
52 | #if ($data.documentation) | ||
53 | <li> | ||
54 | <a href="$documentationURL"#if ($externalDocumentation) class="wikiexternallink"#end> | ||
55 | ##ervices.localization.render('help.more.label') | ||
56 | Mehr erfahren | ||
57 | </a> | ||
58 | </li> | ||
59 | #end | ||
60 | </ul> | ||
61 | #end | ||
62 | #if ($data.thumbnail) | ||
63 | <a href="$!url"> | ||
64 | #set ($attachmentReference = $services.model.resolveAttachment($data.thumbnail)) | ||
65 | <img src="$xwiki.getURL($attachmentReference)" class="thumbnail" | ||
66 | alt="$escapetool.xml($attachmentReference.name)" /> | ||
67 | </a> | ||
68 | #end | ||
69 | </div> | ||
70 | #end | ||
71 | |||
72 | #macro (display4Cards $cards) | ||
73 | <div class="row"> | ||
74 | #foreach ($card in $cards) | ||
75 | ## See http://getbootstrap.com/css/#grid-responsive-resets . | ||
76 | #if ($foreach.index > 0 && $foreach.index % 2 == 0) | ||
77 | <div class="clearfix visible-sm-block "></div> | ||
78 | #end | ||
79 | #if ($foreach.index > 0 && $foreach.index % 3 == 0) | ||
80 | <div class="clearfix visible-md-block"></div> | ||
81 | #end | ||
82 | #if ($foreach.index > 0 && $foreach.index % 4 == 0) | ||
83 | <div class="clearfix visible-lg-block"></div> | ||
84 | #end | ||
85 | <div class="col-xs-12 col-sm-6 col-md-4 col-lg-3 card-main"> | ||
86 | #MainMenuCard($card) | ||
87 | ##helpExampleCard($card) | ||
88 | </div> | ||
89 | #end | ||
90 | </div> | ||
91 | #end | ||
92 | |||
93 | ##'icon': 'fa fa-support', | ||
94 | ##square-edit-outline | ||
95 | #set ($howToCards = [{ | ||
96 | 'iconfc': 'square-edit-outline', | ||
97 | 'title': 'Formulardesigner', | ||
98 | 'description': 'Arbeiten mit dem Formulardesigner', | ||
99 | 'documentation': "Formcycle.FormDesigner" | ||
100 | }, { | ||
101 | 'iconfc': 'wrench', | ||
102 | 'title': 'Verwaltung', | ||
103 | 'description': 'Benutzerverwaltung, LDAP, Datenbanken, Dateien, Templates und vieles mehr', | ||
104 | 'documentation': 'Formcycle.UserInterface' | ||
105 | }, { | ||
106 | 'iconfc': 'inbox', | ||
107 | 'title': 'Posteingang', | ||
108 | 'description': 'Formulardaten organisieren', | ||
109 | 'documentation': 'Formcycle.Inbox' | ||
110 | }, { | ||
111 | 'iconfc': 'workflow-fill', | ||
112 | 'title': 'Workflow', | ||
113 | 'description': 'Formulardaten verarbeiten', | ||
114 | 'documentation': 'Formcycle.UserInterface.MyForms.WorkflowProcessing' | ||
115 | }]) | ||
116 | {{/velocity}} | ||
117 | |||
118 | {{velocity}} | ||
119 | {{html clean="false"}} | ||
120 | #display4Cards($howToCards) | ||
121 | {{/html}} | ||
122 | {{/velocity}} |