-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.tt2
93 lines (67 loc) · 2.82 KB
/
test.tt2
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
[%# /* vim: set filetype=tt2html : */ -%]
[% META title = 'Package Listing' %]
<link rel="stylesheet" type="text/css"
href="[% c.uri_for('/static/js/dojo/1.4/dojox/grid/resources/Grid.css') %]" />
<link rel="stylesheet" type="text/css"
href="[% c.uri_for('/static/js/dojo/1.4/dojox/grid/resources/tundraGrid.css') %]" />
<link rel="stylesheet" type="text/css"
href="[% c.uri_for('/static/js/dojo/1.4/dojox/grid/enhanced/resources/tundraEnhancedGrid.css') %]" />
<link rel="stylesheet" type="text/css"
href="[% c.uri_for('/static/js/dojo/1.4/dojox/grid/enhanced/resources/EnhancedGrid_rtl.css') %]" />
<style type="text/css">
/*
@import "[% c.uri_for('/static/js/dojo/1.4/dojox/grid/resources/Grid.css') %]";
@import "[% c.uri_for('/static/js/dojo/1.4/dojox/grid/resources/tundraGrid.css') %]";
@import "/static/js/dojo/1.4/dojox/grid/enhanced/resources/tundraEnhancedGrid.css";
@import "/static/js/dojo/1.4/dojox/grid/enhanced/resources/EnhancedGrid_rtl.css";
*/
#grid1, #grid2, #grid3 {
width: 85.2em;
height: 50em;
}
/* .dojoxGrid td, .dojoxGrid th {
#gridDiv td, #gridDiv th { */
#content .dojoxGridCell {
border-color:transparent #D5CDB5 #D5CDB5 transparent;
}
/* this feels.... wrong. */
#content table.dojoxGridRowTable th, #content table.dojoxGridRowTable td { border-width: 0px; }
</style>
<script language="javascript">
dojo.require("dojox.data.JsonQueryRestStore");
dojo.require("dojox.grid.EnhancedGrid");
dojo.require("dojox.grid.enhanced.plugins.DnD");
dojo.require("dojox.grid.enhanced.plugins.Menu");
dojo.require("dojox.grid.enhanced.plugins.NestedSorting");
dojo.require("dojox.grid.enhanced.plugins.IndirectSelection");
dojo.require("dijit.layout.BorderContainer");
dojo.require("dijit.layout.ContentPane");
dojo.require("dijit.form.FilteringSelect");
dojo.ready(function() {
dojo.connect(dojo.byId("side_package_search"), "onchange",
function(value) {
pkgGrid.setQuery({ name: dijit.byId('side_package_search').value });
}
);
});
function format_cell(dist, value) {
var item = packagesStore.getItem(row.index);
if (item) {
var upstream = packagesStore.getValue(item, "upstream_ga", null);
var rawhide = packagesStore.getValue(item, "rawhide", null);
}
}
function format_rawhide(value) { format_cell('rawhide', value); }
function no_sort(index) { return index < 3 }
dojo.require("dojox.fx");
dojo.require("dojox.widget.CalendarFx");
dojo.require("dojox.widget.Calendar");
dojo.require("dojox.widget.DailyCalendar");
</script>
<div dojoType="dojox.widget.DailyCalendar" id="calLimits" value="2008-12-25" constraints="{min:'2008-12-12',max:'2009-01-15'}">
<script type="dojo/connect" event="onValueSelected" args="value">
log("Date Value selected: " + value);
</script>
</div>
<!-- begin packages -->
<!-- end packages -->