annotate examples/show2.html @ 22:d97e5e989c43

name change of methods new names now: getProjectsAndTagsAsCSV und getAllProjectsAndTagsAsCSV
author dwinter
date Wed, 29 Feb 2012 14:58:18 +0100
parents a85d5f111592
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
14
a85d5f111592 examples added
dwinter
parents:
diff changeset
1 <!DOCTYPE html>
a85d5f111592 examples added
dwinter
parents:
diff changeset
2 <!-- display the tags -->
a85d5f111592 examples added
dwinter
parents:
diff changeset
3 <html metal:use-macro="here/pro_sec_template/macros/page">
a85d5f111592 examples added
dwinter
parents:
diff changeset
4 <head>
a85d5f111592 examples added
dwinter
parents:
diff changeset
5 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
a85d5f111592 examples added
dwinter
parents:
diff changeset
6 <title>MPIWG Tags</title>
a85d5f111592 examples added
dwinter
parents:
diff changeset
7 <tal:block metal:fill-slot="head">
a85d5f111592 examples added
dwinter
parents:
diff changeset
8 <!--<link type="text/css"
a85d5f111592 examples added
dwinter
parents:
diff changeset
9 href="./jquery-ui/css/ui-lightness/jquery-ui-1.8.11.custom.css"
a85d5f111592 examples added
dwinter
parents:
diff changeset
10 rel="stylesheet" /> -->
a85d5f111592 examples added
dwinter
parents:
diff changeset
11 <link type="text/css" href="./jquery-mpiwg.css" rel="stylesheet" />
a85d5f111592 examples added
dwinter
parents:
diff changeset
12 <script type="text/javascript" src="./jquery-ui/js/jquery-1.5.1.min.js"></script>
a85d5f111592 examples added
dwinter
parents:
diff changeset
13 <script type="text/javascript" src="./jquery-ui/js/jquery-ui-1.8.11.custom.min.js"></script>
a85d5f111592 examples added
dwinter
parents:
diff changeset
14 <script type="text/javascript">
a85d5f111592 examples added
dwinter
parents:
diff changeset
15
a85d5f111592 examples added
dwinter
parents:
diff changeset
16 // open and close the tags
a85d5f111592 examples added
dwinter
parents:
diff changeset
17
a85d5f111592 examples added
dwinter
parents:
diff changeset
18 jQuery(document).ready(function(){
a85d5f111592 examples added
dwinter
parents:
diff changeset
19 $('#accordion h3').click(function() {
a85d5f111592 examples added
dwinter
parents:
diff changeset
20 $(this).next().toggle('slow');
a85d5f111592 examples added
dwinter
parents:
diff changeset
21 return false;
a85d5f111592 examples added
dwinter
parents:
diff changeset
22 }).next().hide();
a85d5f111592 examples added
dwinter
parents:
diff changeset
23 });
a85d5f111592 examples added
dwinter
parents:
diff changeset
24
a85d5f111592 examples added
dwinter
parents:
diff changeset
25 $(function(){
a85d5f111592 examples added
dwinter
parents:
diff changeset
26
a85d5f111592 examples added
dwinter
parents:
diff changeset
27
a85d5f111592 examples added
dwinter
parents:
diff changeset
28
a85d5f111592 examples added
dwinter
parents:
diff changeset
29 // Accordion
a85d5f111592 examples added
dwinter
parents:
diff changeset
30 //$("#accordion").accordion({ header: "h3" });
a85d5f111592 examples added
dwinter
parents:
diff changeset
31
a85d5f111592 examples added
dwinter
parents:
diff changeset
32
a85d5f111592 examples added
dwinter
parents:
diff changeset
33 $('.projectsWindow').hide();
a85d5f111592 examples added
dwinter
parents:
diff changeset
34
a85d5f111592 examples added
dwinter
parents:
diff changeset
35
a85d5f111592 examples added
dwinter
parents:
diff changeset
36 //open and close the projects
a85d5f111592 examples added
dwinter
parents:
diff changeset
37 $('.showApproach').click(function(){
a85d5f111592 examples added
dwinter
parents:
diff changeset
38
a85d5f111592 examples added
dwinter
parents:
diff changeset
39 var tp = $(this).parent();
a85d5f111592 examples added
dwinter
parents:
diff changeset
40 var wd= $(tp).find('div.projectsWindow');
a85d5f111592 examples added
dwinter
parents:
diff changeset
41 wd.toggle();
a85d5f111592 examples added
dwinter
parents:
diff changeset
42 /*$(tp).find('span.ui-icon').toggleClass('ui-icon-triangle-1-s');*/
a85d5f111592 examples added
dwinter
parents:
diff changeset
43
a85d5f111592 examples added
dwinter
parents:
diff changeset
44 return false;
a85d5f111592 examples added
dwinter
parents:
diff changeset
45 });
a85d5f111592 examples added
dwinter
parents:
diff changeset
46
a85d5f111592 examples added
dwinter
parents:
diff changeset
47 });
a85d5f111592 examples added
dwinter
parents:
diff changeset
48
a85d5f111592 examples added
dwinter
parents:
diff changeset
49
a85d5f111592 examples added
dwinter
parents:
diff changeset
50 </script>
a85d5f111592 examples added
dwinter
parents:
diff changeset
51 <style type="text/css">
a85d5f111592 examples added
dwinter
parents:
diff changeset
52 /*demo page css*/
a85d5f111592 examples added
dwinter
parents:
diff changeset
53 body{ font: 62.5% "Trebuchet MS", sans-serif; margin: 50px;}
a85d5f111592 examples added
dwinter
parents:
diff changeset
54
a85d5f111592 examples added
dwinter
parents:
diff changeset
55 .level1 {
a85d5f111592 examples added
dwinter
parents:
diff changeset
56 margin-left: 6em;
a85d5f111592 examples added
dwinter
parents:
diff changeset
57 }
a85d5f111592 examples added
dwinter
parents:
diff changeset
58
a85d5f111592 examples added
dwinter
parents:
diff changeset
59 .demoHeaders {
a85d5f111592 examples added
dwinter
parents:
diff changeset
60 margin-top: 2em;
a85d5f111592 examples added
dwinter
parents:
diff changeset
61 }
a85d5f111592 examples added
dwinter
parents:
diff changeset
62
a85d5f111592 examples added
dwinter
parents:
diff changeset
63 #dialog_link {padding: .4em 1em .4em 20px;text-decoration: none;position: relative;}
a85d5f111592 examples added
dwinter
parents:
diff changeset
64 #dialog_link span.ui-icon {margin: 0 5px 0 0;position:
a85d5f111592 examples added
dwinter
parents:
diff changeset
65 absolute;left: .2em;top: 50%;margin-top: -8px;}
a85d5f111592 examples added
dwinter
parents:
diff changeset
66
a85d5f111592 examples added
dwinter
parents:
diff changeset
67 .helpLink {padding: .4em 1em .4em 20px;text-decoration: none;position: relative;}
a85d5f111592 examples added
dwinter
parents:
diff changeset
68 .helpLink span.ui-icon {margin: 0 5px 0 0;position:
a85d5f111592 examples added
dwinter
parents:
diff changeset
69 absolute;left: .2em;top: 50%;margin-top: -8px;}
a85d5f111592 examples added
dwinter
parents:
diff changeset
70
a85d5f111592 examples added
dwinter
parents:
diff changeset
71 .level2 {margin-left:10pt}
a85d5f111592 examples added
dwinter
parents:
diff changeset
72 ul#icons {margin: 0; padding: 0;}
a85d5f111592 examples added
dwinter
parents:
diff changeset
73 ul#icons li {margin: 2px; position: relative; padding: 4px 0; cursor: pointer; float: left; list-style: none;}
a85d5f111592 examples added
dwinter
parents:
diff changeset
74 ul#icons span.ui-icon {float: left; margin: 0 4px;}
a85d5f111592 examples added
dwinter
parents:
diff changeset
75
a85d5f111592 examples added
dwinter
parents:
diff changeset
76 .level1_projects {margin-left: 50pt;
a85d5f111592 examples added
dwinter
parents:
diff changeset
77 background: url(../images/arr_right.gif) no-repeat #f5daaf;
a85d5f111592 examples added
dwinter
parents:
diff changeset
78 padding: 6px 6px 6px 20px;
a85d5f111592 examples added
dwinter
parents:
diff changeset
79 border-bottom: 1px solid #f3be7c;
a85d5f111592 examples added
dwinter
parents:
diff changeset
80 width:500px;
a85d5f111592 examples added
dwinter
parents:
diff changeset
81
a85d5f111592 examples added
dwinter
parents:
diff changeset
82 .arrowC
a85d5f111592 examples added
dwinter
parents:
diff changeset
83 }
a85d5f111592 examples added
dwinter
parents:
diff changeset
84
a85d5f111592 examples added
dwinter
parents:
diff changeset
85
a85d5f111592 examples added
dwinter
parents:
diff changeset
86
a85d5f111592 examples added
dwinter
parents:
diff changeset
87 .level2_projects {margin-left:50pt;
a85d5f111592 examples added
dwinter
parents:
diff changeset
88 background: url(../images/arr_right.gif) no-repeat #f5daaf;
a85d5f111592 examples added
dwinter
parents:
diff changeset
89 padding: 6px 6px 6px 20px;
a85d5f111592 examples added
dwinter
parents:
diff changeset
90 border-bottom: 1px solid #f3be7c;
a85d5f111592 examples added
dwinter
parents:
diff changeset
91 width:500px;
a85d5f111592 examples added
dwinter
parents:
diff changeset
92 }
a85d5f111592 examples added
dwinter
parents:
diff changeset
93
a85d5f111592 examples added
dwinter
parents:
diff changeset
94
a85d5f111592 examples added
dwinter
parents:
diff changeset
95 .level1_projects a{
a85d5f111592 examples added
dwinter
parents:
diff changeset
96
a85d5f111592 examples added
dwinter
parents:
diff changeset
97
a85d5f111592 examples added
dwinter
parents:
diff changeset
98 }
a85d5f111592 examples added
dwinter
parents:
diff changeset
99
a85d5f111592 examples added
dwinter
parents:
diff changeset
100
a85d5f111592 examples added
dwinter
parents:
diff changeset
101 .person_projects {
a85d5f111592 examples added
dwinter
parents:
diff changeset
102 padding-left:5pt;
a85d5f111592 examples added
dwinter
parents:
diff changeset
103 font-style:italic
a85d5f111592 examples added
dwinter
parents:
diff changeset
104 }
a85d5f111592 examples added
dwinter
parents:
diff changeset
105
a85d5f111592 examples added
dwinter
parents:
diff changeset
106 .showApproach {
a85d5f111592 examples added
dwinter
parents:
diff changeset
107 color:#EA8500;
a85d5f111592 examples added
dwinter
parents:
diff changeset
108 cursor:pointer;
a85d5f111592 examples added
dwinter
parents:
diff changeset
109 }
a85d5f111592 examples added
dwinter
parents:
diff changeset
110
a85d5f111592 examples added
dwinter
parents:
diff changeset
111 .showApproach:hover {
a85d5f111592 examples added
dwinter
parents:
diff changeset
112 text-decoration: underline;
a85d5f111592 examples added
dwinter
parents:
diff changeset
113 }
a85d5f111592 examples added
dwinter
parents:
diff changeset
114 </style>
a85d5f111592 examples added
dwinter
parents:
diff changeset
115 </tal:block>
a85d5f111592 examples added
dwinter
parents:
diff changeset
116 </head>
a85d5f111592 examples added
dwinter
parents:
diff changeset
117 <body>
a85d5f111592 examples added
dwinter
parents:
diff changeset
118 <div class="main" metal:fill-slot="center">
a85d5f111592 examples added
dwinter
parents:
diff changeset
119 <div class="center_wide dept">
a85d5f111592 examples added
dwinter
parents:
diff changeset
120
a85d5f111592 examples added
dwinter
parents:
diff changeset
121 <!-- Accordion -->
a85d5f111592 examples added
dwinter
parents:
diff changeset
122 <h3>This overview is currently under construction!</h3>
a85d5f111592 examples added
dwinter
parents:
diff changeset
123 <h2 class="demoHeaders">Project Categories</h2>
a85d5f111592 examples added
dwinter
parents:
diff changeset
124
a85d5f111592 examples added
dwinter
parents:
diff changeset
125 <div id="accordion">
a85d5f111592 examples added
dwinter
parents:
diff changeset
126 <div>
a85d5f111592 examples added
dwinter
parents:
diff changeset
127 <h3><a href="#">Approaches</a></h3>
a85d5f111592 examples added
dwinter
parents:
diff changeset
128 <div>
a85d5f111592 examples added
dwinter
parents:
diff changeset
129 <tal:x replace="structure python:here.getEntriesFormatted(here.getApproaches(),'approaches')"/>
a85d5f111592 examples added
dwinter
parents:
diff changeset
130 </div>
a85d5f111592 examples added
dwinter
parents:
diff changeset
131
a85d5f111592 examples added
dwinter
parents:
diff changeset
132 <h3><a href="#">Disciplines</a></h3>
a85d5f111592 examples added
dwinter
parents:
diff changeset
133 <div>
a85d5f111592 examples added
dwinter
parents:
diff changeset
134 <tal:x replace="structure python:here.getEntriesFormatted(here.getDisciplines(),'disciplines')"/>
a85d5f111592 examples added
dwinter
parents:
diff changeset
135 </div>
a85d5f111592 examples added
dwinter
parents:
diff changeset
136
a85d5f111592 examples added
dwinter
parents:
diff changeset
137
a85d5f111592 examples added
dwinter
parents:
diff changeset
138 <h3><a href="#">Periods</a></h3>
a85d5f111592 examples added
dwinter
parents:
diff changeset
139 <div>
a85d5f111592 examples added
dwinter
parents:
diff changeset
140 <tal:x replace="structure python:here.getEntriesFormatted(here.getPeriods(),'periods')"/>
a85d5f111592 examples added
dwinter
parents:
diff changeset
141 </div>
a85d5f111592 examples added
dwinter
parents:
diff changeset
142
a85d5f111592 examples added
dwinter
parents:
diff changeset
143
a85d5f111592 examples added
dwinter
parents:
diff changeset
144 <h3><a href="#">People</a></h3>
a85d5f111592 examples added
dwinter
parents:
diff changeset
145 <div>
a85d5f111592 examples added
dwinter
parents:
diff changeset
146 <div class="level1" tal:repeat="level1 python:here.getPersonsWithProjectIDs()[1]"><span class="showApproach" tal:content="python:here.getNamesFromID(level1)">Lorem</span>
a85d5f111592 examples added
dwinter
parents:
diff changeset
147 <div class="projectsWindow">
a85d5f111592 examples added
dwinter
parents:
diff changeset
148 <div class="level1_projects" tal:repeat="proj python:here.getPersonsWithProjectIDs()[0][level1]">
a85d5f111592 examples added
dwinter
parents:
diff changeset
149 <a tal:attributes="href python:proj[0]" tal:content="python:proj[1]">my proj</a>
a85d5f111592 examples added
dwinter
parents:
diff changeset
150 <tal:x define="person
a85d5f111592 examples added
dwinter
parents:
diff changeset
151 python:proj[2]"><span class="person_projects"
a85d5f111592 examples added
dwinter
parents:
diff changeset
152 tal:content="person"/></tal:x>
a85d5f111592 examples added
dwinter
parents:
diff changeset
153 </div>
a85d5f111592 examples added
dwinter
parents:
diff changeset
154 </div>
a85d5f111592 examples added
dwinter
parents:
diff changeset
155
a85d5f111592 examples added
dwinter
parents:
diff changeset
156 </div>
a85d5f111592 examples added
dwinter
parents:
diff changeset
157 </div>
a85d5f111592 examples added
dwinter
parents:
diff changeset
158
a85d5f111592 examples added
dwinter
parents:
diff changeset
159 <h3><a href="#">Spaces</a></h3>
a85d5f111592 examples added
dwinter
parents:
diff changeset
160 <div>
a85d5f111592 examples added
dwinter
parents:
diff changeset
161 <tal:x replace="structure python:here.getEntriesFormatted(here.getSpaces(),'spaces')"/>
a85d5f111592 examples added
dwinter
parents:
diff changeset
162 </div>
a85d5f111592 examples added
dwinter
parents:
diff changeset
163
a85d5f111592 examples added
dwinter
parents:
diff changeset
164
a85d5f111592 examples added
dwinter
parents:
diff changeset
165 <h3><a href="#">Objects</a></h3>
a85d5f111592 examples added
dwinter
parents:
diff changeset
166 <div>
a85d5f111592 examples added
dwinter
parents:
diff changeset
167 <div class="level1" tal:repeat="level1 python:here.getObjectsWithProjectIDsSortedkeys()"><span class="showApproach" tal:content="python:level1">Lorem</span>
a85d5f111592 examples added
dwinter
parents:
diff changeset
168 <div title="Projects" class="projectsWindow">
a85d5f111592 examples added
dwinter
parents:
diff changeset
169
a85d5f111592 examples added
dwinter
parents:
diff changeset
170 <div class="level1_projects" tal:repeat="proj python:here.getObjectsWithProjectIDs()[level1]">
a85d5f111592 examples added
dwinter
parents:
diff changeset
171 <a tal:attributes="href python:proj[0]" tal:content="python:proj[1]">my proj</a>
a85d5f111592 examples added
dwinter
parents:
diff changeset
172 <tal:x define="person
a85d5f111592 examples added
dwinter
parents:
diff changeset
173 python:proj[2]"><span class="person_projects"
a85d5f111592 examples added
dwinter
parents:
diff changeset
174 tal:content="person"/></tal:x>
a85d5f111592 examples added
dwinter
parents:
diff changeset
175 </div>
a85d5f111592 examples added
dwinter
parents:
diff changeset
176 </div>
a85d5f111592 examples added
dwinter
parents:
diff changeset
177
a85d5f111592 examples added
dwinter
parents:
diff changeset
178 </div>
a85d5f111592 examples added
dwinter
parents:
diff changeset
179 </div>
a85d5f111592 examples added
dwinter
parents:
diff changeset
180
a85d5f111592 examples added
dwinter
parents:
diff changeset
181 <h3><a href="#">Technologies</a></h3>
a85d5f111592 examples added
dwinter
parents:
diff changeset
182 <div>
a85d5f111592 examples added
dwinter
parents:
diff changeset
183 <tal:x replace="structure python:here.getEntriesFormatted(here.getTechnologies(),'technologies')"/>
a85d5f111592 examples added
dwinter
parents:
diff changeset
184 </div>
a85d5f111592 examples added
dwinter
parents:
diff changeset
185
a85d5f111592 examples added
dwinter
parents:
diff changeset
186
a85d5f111592 examples added
dwinter
parents:
diff changeset
187 <h3><a href="#">Knowledge Transfers</a></h3>
a85d5f111592 examples added
dwinter
parents:
diff changeset
188 <div>
a85d5f111592 examples added
dwinter
parents:
diff changeset
189 <tal:x replace="structure python:here.getEntriesFormatted(here.getKnowledgeTransfers(),'transfers')"/>
a85d5f111592 examples added
dwinter
parents:
diff changeset
190 </div>
a85d5f111592 examples added
dwinter
parents:
diff changeset
191
a85d5f111592 examples added
dwinter
parents:
diff changeset
192 </div>
a85d5f111592 examples added
dwinter
parents:
diff changeset
193 </div>
a85d5f111592 examples added
dwinter
parents:
diff changeset
194 </div>
a85d5f111592 examples added
dwinter
parents:
diff changeset
195 </div>
a85d5f111592 examples added
dwinter
parents:
diff changeset
196 </body>
a85d5f111592 examples added
dwinter
parents:
diff changeset
197 </html>