-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmodel.html
More file actions
127 lines (121 loc) · 4.39 KB
/
model.html
File metadata and controls
127 lines (121 loc) · 4.39 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<template name="model">
<table>
{{> modelChangedRow}}
<tr>
<th align="right">Name:</th><td>{{> edit nameContext}} <span class="id">({{id}})</span></td>
</tr>
<tr>
<th align="right">Description:</th><td>{{> edit descriptionContext}}</td>
</tr>
<tr>
<th align="right">Last Changed:</th><td>{{timeStamp}}</td>
</tr>
<tr>
<th align="right">Owner:</th><td>{{owner}} {{> valueInfo description=aclInfo}}</td>
</tr>
{{#if inputs}}
<tr valign="top">
<th align="right">Inputs:</th><td>
<table>
{{#each inputs}}
{{> editValue this}}
{{/each}}
</table>
</td>
</tr>
{{/if}}
<tr>
<td colspan="2"><button class="btn btn-mini toggle-advanced-view">toggle</button></td>
</tr>
{{#if advancedView}}
<tr valign="top">
<th align="right">Definition:</th><td>
<table>
<tr valign="top"><th>Arguments</th>
<td>
{{#each args}}
{{> modelArgView this}}
{{/each}}
</td>
</tr>
<tr valign="top"><th>Result</th>
<td>
{{#each result}}
{{> modelArgView this}}
{{/each}}
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<th align="right">Body:</th><td>
{{> aceEditor functionBody.code}}
<button class="btn btn-mini edit-code" type="button">Edit code</button>
</td>
</tr>
{{#if inputDefinitions}}
<tr valign="top">
<th align="right">Inputs:</th><td>
<table>
{{#each inputDefinitions}}
{{> modelInputDefinition}}
{{/each}}
</table>
</td>
</tr>
{{/if}}
{{/if}}
</table>
{{runModelHelper}}
</template>
<template name="modelChangedRow">
<tr>
<td></td>
<td>
<button class="btn btn-mini {{class}} save" type="button">Save changes</button>
{{#if isModel}}
<a href="#" role="button" class="btn btn-mini modelRun">run Model</a>
{{/if}}
</td>
</tr>
</template>
<template name="modelInputDefinition">
<tr valign="top">
<td>{{name}}</td>
<td>{{> objectType}}</td>
</tr>
</template>
<template name="objectType">
{{#with schema}}
<span class="typeSignature"><span class="objectType">{{objectType}}</span>/<span class="version">{{version}}</span></span>
<span class="description">({{description}})</span>
{{else}}
<table>
<tr><th>Arguments</th><th>Result</th></tr>
<tr valign="top">
<td>
<table>
{{#each args}}
{{this}}
{{/each}}
</table>
</td>
<td>
<table>
{{#each result}}
{{this}}
{{/each}}
</table>
</td>
</tr>
</table>
{{/with}}
</template>
<template name="modelRunArgsBottom">
<tr valign="top"><td align="right">job title:</td><td><input class="span3" type="text" name="job-title" value=""></td></tr>
<tr valign="top"><td align="right">job description:</td><td><textarea class="span3" rows="3" name="job-description">{{defaultJobDescription}}</textarea></td></tr>
</template>
<template name="modelArgView">
<span class="badge badge-{{class}}" data-toggle="tooltip" data-original-title="{{infoText}}">{{name}}{{#if type}}: {{type}}{{/if}}{{#if infoText}} <a href="#" class="value-info"><i class="icon-info-sign"></i></a>{{/if}}</span>
</template>