forked from angular-gantt/angular-gantt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
245 lines (225 loc) · 16.3 KB
/
index.html
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
<!-- build:css(.) styles/vendor.css -->
<!-- bower:css -->
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css" />
<link rel="stylesheet" href="bower_components/angular-motion/dist/angular-motion.min.css" />
<link rel="stylesheet" href="bower_components/font-awesome/css/font-awesome.css" />
<link rel="stylesheet" href="bower_components/angular-gantt/assets/gantt.css" />
<!-- endbower -->
<!-- endbuild -->
<!-- build:css(.tmp) styles/main.css -->
<link rel="stylesheet" href="styles/main.css">
<!-- endbuild -->
</head>
<body ng-app="angularGanttDemoApp">
<!--[if lt IE 7]>
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<!-- Add your site or application content here -->
<a href="https://github.com/angular-gantt/angular-gantt" target="_blank"><img style="position: absolute; z-index:10000; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub"></a>
<div ng-controller="MainCtrl">
<div class="navbar navbar-default" role="navigation" bs-navbar>
<div class="navbar-header">
<a class="navbar-brand" href="#">angular-gantt - The gantt chart directive for AngularJS</a>
</div>
</div>
<div class="container-content" ng-show="false">
<div class="container-fluid">
<div class="row top-buffer">
<div class="col-md-12">
<i class="fa fa-cog fa-spin"></i> Loading angular-gantt demo ...
</div>
</div>
</div>
</div>
<div class="container-content" ng-cloak="true">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="panel-group" bs-collapse>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a href="" bs-collapse-toggle>Options</a>
</h4>
</div>
<div class="panel-collapse" bs-collapse-target>
<div class="panel-body">
<div class="container-fluid">
<div class="row">
<div class="form-inline">
<div class="form-group text-center">
<label class="control-label"><i class="fa fa-search"></i> Scale</label><br>
<button type="button" style="width: 5em; text-align: left" class="btn btn-default" ng-model="options.scale" ng-options="s for s in ['hour', 'day', 'week', 'month']" bs-select></button>
</div>
<div class="form-group text-center">
<label class="control-label"><i class="fa fa-sort"></i> Sort</label><br>
<button type="button" style="width: 6em; text-align: left" class="btn btn-default" ng-model="options.mode" ng-options="m for m in ['name', 'from', 'to', 'custom']" bs-select></button>
</div>
<div class="form-group input-append text-center">
<label class="control-label"><i class="fa fa-filter"></i> Filter Tasks</label><br>
<input type="text" class="form-control" style="width: 8em; text-align: left" ng-model="options.filterTask">
</div>
<div class="form-group input-append text-center">
<label class="control-label"><i class="fa fa-filter"></i> Filter Rows</label><br>
<input type="text" class="form-control" style="width: 8em; text-align: left" ng-model="options.filterRow">
</div>
<div class="form-group text-center">
<label class="control-label"><i class="fa fa-clock-o"></i> Today</label><br>
<button type="button" style="width: 6em; text-align: left" class="btn btn-default" ng-model="options.currentDate" ng-options="d for d in ['none', 'line', 'column']" bs-select></button>
</div>
<div class="form-group text-center">
<label class="control-label"><i class="fa fa-expand"></i> Expand</label><br>
<button type="button" style="width: 6em; text-align: left" class="btn btn-default" ng-model="options.autoExpand" ng-options="e for e in ['none', 'both', 'left', 'right']" bs-select></button>
</div>
<div class="form-group text-center">
<label class="control-label"><i class="fa fa-scissors"></i> Out of range</label><br>
<button type="button" style="width: 8em; text-align: left" class="btn btn-default" ng-model="options.taskOutOfRange" ng-options="e for e in ['expand', 'truncate']" bs-select></button>
</div>
<div class="form-group text-center">
<label class="control-label"><i class="fa fa-pencil-square-o"></i> Edit</label><br>
<button type="button" class="btn btn-default" ng-model="options.draw" bs-checkbox>Draw</button>
<button type="button" class="btn btn-default" ng-model="options.readOnly" bs-checkbox>Read Only</button>
</div>
<div class="form-group text-center">
<label class="control-label"><i class="fa fa-sun-o"></i> Working periods</label><br>
<div class="btn-group" bs-checkbox-group>
<button type="button" class="btn btn-default" ng-model="options.showWeekends" bs-checkbox>Weekends</button>
<button type="button" class="btn btn-default" ng-model="options.showNonWorkHours" bs-checkbox>Non working hours</button>
</div>
</div>
<div class="form-group text-center">
<label class="control-label"><i class="fa fa-crop"></i> Layout</label><br>
<div class="btn-group" bs-checkbox-group>
<button type="button" class="btn btn-default" ng-model="options.maxHeight" bs-checkbox>Height</button>
<button type="button" class="btn btn-default" ng-model="options.width" bs-checkbox>Width</button>
</div>
</div>
<div class="form-group text-center">
<label class="control-label"><i class="fa fa-calendar"></i> <i class="fa fa-arrows-h"></i> <i class="fa fa-calendar"></i> Date range</label><br>
<div class="form-group">
<input type="text" class="form-control" ng-model="options.fromDate" max-date="{{options.toDate}}" start-date="{{options.currentDateValue.toString()}}" start-week="1" placeholder="From" bs-datepicker>
</div>
<div class="form-group">
<input type="text" class="form-control" ng-model="options.toDate" min-date="{{options.fromDate}}" start-date="{{options.currentDateValue.toString()}}" start-week="1" placeholder="To" bs-datepicker>
</div>
</div>
<div class="form-group text-center">
<label class="control-label"><i class="fa fa-database"></i> Data actions</label><br>
<div class="btn-group">
<button class="btn btn-default" ng-click="addSamples()">Reload</button>
<button class="btn btn-default" ng-click="removeSomeSamples()">Remove</button>
<button class="btn btn-default" ng-click="removeSamples()">Clear</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row top-buffer">
<div class="col-md-12">
<div class="panel-group" bs-collapse>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a href="" bs-collapse-toggle>Gantt</a>
</h4>
</div>
<div class="panel-collapse" bs-collapse-target>
<div class="panel-body">
<gantt first-day-of-week="1"
filter-task="{'name': options.filterTask}"
filter-row="{'name': options.filterRow}"
load-data="loadData = fn"
load-timespans="loadTimespans = fn"
center-date="scrollToDate = fn"
remove-data="removeData = fn"
clear-data="clearData = fn"
allow-task-moving="!options.readOnly"
allow-task-resizing="!options.readOnly"
allow-task-row-switching="!options.readOnly"
sort-mode="options.mode"
view-scale="options.scale"
column-width="options.scale === 'month' && 200 || (options.scale === 'week' && 100 || 40)"
column-sub-scale="options.scale === 'week' && 7 || 6"
width="options.width && 160 || 0"
auto-expand="options.autoExpand"
task-out-of-range="options.taskOutOfRange"
from-date = "options.fromDate"
to-date = "options.toDate"
work-hours="[8,9,10,11,12,13,14,15]"
show-non-work-hours="options.showNonWorkHours"
weekend-days="[0,6]"
show-weekends="options.showWeekends"
current-date="options.currentDate"
current-date-value="options.currentDateValue"
max-height="options.maxHeight && 300 || 0"
on-scroll="scrollEvent(event)">
</gantt>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="container-content" ng-cloak="true">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<small>angular-gantt (github master) - The gantt chart directive for AngularJS | MIT License | Copyright © 2014 Marco Schweighauser and Rémi Alvergnat</small>
</div>
</div>
</div>
</div>
</div>
<!-- Google Analytics: change UA-XXXXX-X to be your site's ID
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-XXXXX-X');
ga('send', 'pageview');
</script>
-->
<!-- build:js(.) scripts/oldieshim.js -->
<!--[if lt IE 9]>
<script src="bower_components/es5-shim/es5-shim.js"></script>
<script src="bower_components/json3/lib/json3.js"></script>
<![endif]-->
<!-- endbuild -->
<!-- build:js(.) scripts/vendor.js -->
<!-- bower:js -->
<script src="bower_components/jquery/dist/jquery.js"></script>
<script src="bower_components/angular/angular.js"></script>
<script src="bower_components/angular-animate/angular-animate.js"></script>
<script src="bower_components/bootstrap/dist/js/bootstrap.js"></script>
<script src="bower_components/angular-strap/dist/angular-strap.js"></script>
<script src="bower_components/angular-strap/dist/angular-strap.tpl.js"></script>
<script src="bower_components/moment/moment.js"></script>
<script src="bower_components/angular-moment/angular-moment.js"></script>
<script src="bower_components/angular-gantt/assets/angular-gantt.js"></script>
<!-- endbower -->
<!-- endbuild -->
<!-- build:js({.tmp,app}) scripts/scripts.js -->
<script src="scripts/app.js"></script>
<script src="scripts/controllers/main.js"></script>
<script src="scripts/services/uuid.js"></script>
<script src="scripts/services/sample.js"></script>
<!-- endbuild -->
</body>
</html>