-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdataObjects.html
More file actions
105 lines (102 loc) · 3.95 KB
/
dataObjects.html
File metadata and controls
105 lines (102 loc) · 3.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<template name="dataObjects">
<table>
<tr valign="top">
<td>
{{#if schemas}}
<div class="dropdown">
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">{{#if currentTypeVersion}}{{currentTypeVersion}}{{else}}Bitte wählen{{/if}} <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu">
{{#each schemas}}
<li class="dropdown-submenu">
<a tabindex="-1" href="#">{{type}}</a>
<ul class="dropdown-menu">
{{#each versions}}
<li><a tabindex="-1" href="#">Version {{version}}</a></li>
{{/each}}
</ul>
</li>
{{/each}}
</ul>
</div>
{{else}}
{{> loading}}
{{/if}}
</td>
<td>
{{currentObjectName}}
</td>
</tr>
{{#if currentTypeVersion}}
<tr valign="top">
<td colspan="2">
{{pagination}}
</td>
</tr>
{{/if}}
<tr valign="top">
<td>
{{#if objects}}
<div class="objects">
{{#each objects}}
<a class="{{activeObjectClass _id}}" href="#">{{name}}</a><br />
{{/each}}
</div>
{{else}}
{{> loading}}
{{/if}}
</td>
<td>
{{#with currentObjectId}}
{{> dataObject}}
{{/with}}
</td>
</tr>
</table>
</template>
<template name="dataObject">
{{#with dataObject this}}
<table>
<tr><td>Type/Version:</td><td>{{objectType}} Version {{version}}</td></tr>
<tr><td>Description:</td><td>{{description}}</td></tr>
<tr><td>Tags:</td><td>{{#each tags}}{{this}}{{/each}}</td></tr>
<tr><td>Range:</td><td>
from ({{#each args start}}{{#if index}}, {{/if}}{{name}}={{value}}{{unit}}{{else}}{{> loadingImg}}{{/each}})
until ({{#each args end}}{{#if index}}, {{/if}}{{name}}={{value}}{{unit}}{{else}}{{> loadingImg}}{{/each}})
</td></tr>
{{#with source}}
<tr valign="top"><td>Source:</td><td>{{> source}}</td></tr>
{{/with}}
</table>
{{> parameterSets}}
{{else}}
{{> loading}}
{{/with}}
</template>
<template name="source">
<table>
<tr><td>Name:</td><td>{{Name}}</td></tr>
<tr><td>Description:</td><td>{{Description}}</td></tr>
<tr><td>Organisation:</td><td>{{Organisation}}</td></tr>
<tr><td>Address:</td><td>{{Address}}</td></tr>
<tr><td>Mail:</td><td><a href="mailto:{{source.Mail}}">{{MailEdit}}</a></td></tr>
<tr><td>www:</td><td><a target="_blank" href="{{source.www}}">{{wwwEdit}}</a></td></tr>
</table>
</template>
<template name="parameterSets">
{{pagination}}
<table class="parameterSets table table-hover table-striped table-bordered table-condensed">
{{#each setValues}}
<tr>
{{#each this}}
{{#if header}}
<th title="{{description}}{{#if unit}} in {{unit}}{{/if}}">{{value}}</th>
{{else}}
<td title="{{description}}{{#if unit}} in {{unit}}{{/if}}">{{value}}</td>
{{/if}}
{{/each}}
</tr>
{{else}}
<tr><td>{{> loading}}</td></tr>
{{/each}}
</table>
</template>