-
Notifications
You must be signed in to change notification settings - Fork 223
/
calendar.html
439 lines (397 loc) · 18.2 KB
/
calendar.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
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Calendar // Soft Admin</title>
<!-- Default Styles (DO NOT TOUCH) -->
<link rel="stylesheet" href="lib/css/font-awesome.min.css">
<link rel="stylesheet" href="lib/css/bootstrap.min.css">
<link rel="stylesheet" href="lib/css/fonts.css">
<link type="text/css" rel="stylesheet" href="lib/css/soft-admin.css"/>
<!-- Adjustable Styles -->
<link type="text/css" rel="stylesheet" href="lib/css/fullcalendar.css"/>
<link type="text/css" rel="stylesheet" href="lib/css/fullcalendar.print.css"/>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="lib/js/html5shiv.js"></script>
<script src="lib/js/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="cntnr">
<!-- RESPONSIVE LEFT SIDEBAR & LOGO -->
<div class="left hidden-xs">
<div class="logo"><img id="logo" src="lib/img/logo3.png" style="width:159px !important; height:52px; !important"></div>
<div class="sidebar">
<div>
<input class="typeahead" type="text" placeholder="Search">
<span id="search-icon" class="glyphicon glyphicon-search"></span>
</div>
<div class="accordion">
<div class="accordion-group">
<div class="accordion-heading">
<a class="sbtn btn-default" href="index.html">
<span class="fa fa-dashboard"></span>
Dashboard
</a>
</div>
</div>
<div class="accordion-group">
<div class="accordion-heading">
<a class="sbtn btn-default" href="typography.html">
<span class="icon icon-text-width"></span>
Typography
</a>
</div>
</div>
<div class="accordion-group">
<div class="accordion-heading">
<a class="sbtn btn-default" href="charts.html">
<span class="fa fa-bar-chart-o"></span>
Charts
</a>
</div>
</div>
<div class="accordion-group">
<div class="accordion-heading">
<a class="sbtn btn-default" href="widgets.html">
<span class="fa fa-list-alt"></span>
Widgets
</a>
</div>
</div>
<div class="accordion-group">
<div class="accordion-heading">
<a class="sbtn btn-default" data-toggle="collapse" href="#c-ui">
<span class="icon icon-credit-card"></span>
UI Elements
<span class="caret"></span>
</a>
</div>
<div id="c-ui" class="accordion-body collapse"><div class="accordion-inner">
<a href="alerts_notifications.html" class="sbtn sbtn-default">Alerts & Notifications <span class="label label-primary">9</span></a>
<a href="tabs_accordion.html" class="sbtn sbtn-default">Tabs & Accordions</a>
<a href="buttons.html" class="sbtn sbtn-default">Buttons & Icons</a>
</div></div>
</div>
<div class="accordion-group">
<div class="accordion-heading">
<a class="sbtn btn-default" href="gallery.html">
<span class="fa fa-picture-o"></span>
Gallery
</a>
</div>
</div>
<div class="accordion-group">
<div class="accordion-heading">
<a class="sbtn sbtn-default" data-toggle="collapse" href="#c-forms">
<span class="fa fa-pencil-square-o"></span>
Forms
<span class="caret"></span>
</a>
</div>
<div id="c-forms" class="accordion-body collapse"><div class="accordion-inner">
<a href="form_basic.html" class="sbtn sbtn-default">Basic Form Elements</a>
<a href="form_advanced.html" class="sbtn sbtn-default">Advanced Form Elements</a>
<a href="form_wysiwyg.html" class="sbtn sbtn-default">WYSIWYG</a>
<a href="form_validation.html" class="sbtn sbtn-default">Form Validation</a>
</div></div>
</div>
<div class="accordion-group">
<div class="accordion-heading">
<a class="sbtn btn-default" data-toggle="collapse" href="#c-tables">
<span class="fa fa-table"></span>
Tables
<span class="caret"></span>
</a>
</div>
<div id="c-tables" class="accordion-body collapse"><div class="accordion-inner">
<a href="table_static.html" class="sbtn sbtn-default">Static Tables <span class="label label-soft">2</span></a>
<a href="table_datatables.html" class="sbtn sbtn-default">jQuery Datatables</a>
</div></div>
</div>
<div class="accordion-group">
<div class="accordion-heading">
<a class="sbtn btn-default" href="storyboard.html">
<span class="fa fa-tasks"></span>
Storyboard
</a>
</div>
</div>
<div class="accordion-group">
<div class="accordion-heading">
<a class="sbtn btn-default active" href="calendar.html">
<span class="fa fa-calendar"></span>
Calendar
</a>
</div>
</div>
<div class="accordion-group">
<div class="accordion-heading">
<a class="sbtn btn-default" href="maps.html">
<span class="fa fa-map-marker"></span>
Maps
</a>
</div>
</div>
<div class="accordion-group">
<div class="accordion-heading">
<a class="sbtn btn-default" data-toggle="collapse" href="#c-pages">
<span class="fa fa-file-o"></span>
Pages
<span class="caret"></span>
</a>
</div>
<div id="c-pages" class="accordion-body collapse"><div class="accordion-inner">
<a href="login_register.html" class="sbtn sbtn-default">Login</a>
<a href="FAQ.html" class="sbtn sbtn-default">F.A.Q.</a>
<a href="grid.html" class="sbtn sbtn-default">Grid</a>
<a href="404.html" class="sbtn sbtn-default">404 Error</a>
<a href="invoice.html" class="sbtn sbtn-default">Invoice</a>
</div></div>
</div>
</div>
</div>
</div>
<!-- END LEFT SIDEBAR & LOGO -->
<!-- RESPONSIVE NAVIGATION -->
<div id="secondary" class="btn-group visible-xs">
<button type="button" class="btn btn-info btn-sm dropdown-toggle" data-toggle="dropdown"><span class="icon icon-th-large"></span> Navigation <span class="caret"></span></button>
<ul class="dropdown-menu dropdown-info pull-right" role="menu">
<li><a href="index.html">Dashboard</a></li>
<li><a href="#">Labels</a></li>
<li><a href="#">Admin</a></li>
<li class="divider" style="border-bottom:1px solid #ddd; margin:0px; margin-top:5px;"></li>
<li><a href="typography.html">Typography</a></li>
<li><a href="charts.html">Charts</a></li>
<li><a href="widgets.html">Widgets</a></li>
<li class="divider" style="border-bottom:1px solid #ddd; margin:0px; margin-top:5px;"></li>
<li class="dropdown-header">UI Elements</li>
<li><a href="alerts_notifications.html">Alerts & Notifications</a></li>
<li><a href="tabs_accordion.html">Tabs & Accordions</a></li>
<li><a href="buttons.html">Buttons & Icons</a></li>
<li class="divider" style="border-bottom:1px solid #ddd; margin:0px; margin-top:5px;"></li>
<li><a href="gallery.html">Gallery</a></li>
<li class="divider" style="border-bottom:1px solid #ddd; margin:0px; margin-top:5px;"></li>
<li class="dropdown-header">Forms</li>
<li><a href="form_basic.html">Basic Form Elements</a></li>
<li><a href="form_advanced.html">Advanced Form Elements</a></li>
<li><a href="form_wysiwyg.html">WYSIWYG</a></li>
<li><a href="form_validation.html">Form Validation</a></li>
<li class="divider" style="border-bottom:1px solid #ddd; margin:0px; margin-top:5px;"></li>
<li class="dropdown-header">Tables</li>
<li><a href="form_basic.html">Static Tables</a></li>
<li><a href="form_advanced.html">jQuery Datatables</a></li>
<li class="divider" style="border-bottom:1px solid #ddd; margin:0px; margin-top:5px;"></li>
<li><a href="storyboard.html">Storyboard</a></li>
<li><a href="calendar.html">Calendar</a></li>
<li><a href="maps.html">Maps</a></li>
<li class="divider" style="border-bottom:1px solid #ddd; margin:0px; margin-top:5px;"></li>
<li class="dropdown-header">Pages</li>
<li><a href="login.html">Login</a></li>
<li><a href="FAQ.html">F.A.Q.</a></li>
<li><a href="grid.html">Grid</a></li>
<li><a href="grid.html">404 Error Template</a></li>
<li><a href="invoice.html">Invoice</a></li>
</ul>
</div>
<div id="secondary-search" class="input-icon visible-xs">
<i class="icon icon-search"></i>
<input class="form-control form-warning input-sm" type="text">
</div>
<!-- END RESPONSIVE NAVIGATION -->
<!-- RIGHT NAV, CRUMBS, & CONTENT -->
<div class="right">
<div class="nav">
<div class="bar">
<!-- RESPONSIVE SMALL LOGO (HIDDEN BY DEFAULT) -->
<div class="logo-small visible-xs"><img src="lib/img/logo.png"></div>
<!-- NAV PILLS -->
<ul class="nav nav-pills hidden-xs">
<li class="active"><a href="index.html"><span class="fa fa-dashboard"></span>Dashboard</a></li>
<li><a href="#"><span class="icon icon-barcode"></span>Labels <span class="label label-primary">1,078</span></a></li>
<li><a href="#"><span class="icon icon-cog"></span>Admin</a></li>
</ul>
<!-- ICON DROPDOWNS -->
<div class="hov">
<div class="btn-group">
<a class="con" href="" data-toggle="dropdown"><span class="icon icon-bell"></span><span class="label label-danger">55</span></a>
<ul class="dropdown-menu pull-right dropdown-alerts" role="menu">
<li class="title"><span class="icon icon-bell"></span> There are 5 new alerts in the system...</li>
<li class="alert">
<div class="alert-icon alt-default"><span class="fa fa-check-square"></span></div>
<div class="alert-content">Quality check was successful</div>
<div class="alert-time">32 sec ago</div>
</li>
<li class="alert">
<div class="alert-icon alt-primary"><span class="fa fa-plus-square"></span></div>
<div class="alert-content">New user added (Bob Grassle)</div>
<div class="alert-time">11 min ago</div>
</li>
<li class="alert">
<div class="alert-icon alt-warning"><span class="fa fa-pencil-square"></span></div>
<div class="alert-content">User profile updated (Steve Jones)</div>
<div class="alert-time">3 hours ago</div>
</li>
<li class="alert">
<div class="alert-icon alt-danger"><span class="fa fa-warning"></span></div>
<div class="alert-content">System failure reported</div>
<div class="alert-time">2 days ago</div>
</li>
<li class="divider"></li>
<li><a href="#">View all recent alerts</a></li>
</ul>
</div>
<div class="btn-group">
<a class="con" href="" data-toggle="dropdown"><span class="icon icon-envelope"></span><span class="label label-success">5</span></a>
<ul class="dropdown-menu pull-right dropdown-messages" role="menu">
<li class="title"><span class="icon icon-envelope"></span> You have 13 new messages to read...</li>
<li class="message">
<div class="message-icon"><img src="lib/img/users/1.png"></div>
<div class="message-content"><a href="#">Steve</a> Lorem ipsum dolor sit amet...</div>
<div class="message-time">32 sec ago</div>
</li>
<li class="message">
<div class="message-icon"><img src="lib/img/users/2.png"></div>
<div class="message-content"><a href="#">John</a> Quisque commodo sed ipsum...</div>
<div class="message-time">11 min ago</div>
</li>
<li class="message">
<div class="message-icon"><img src="lib/img/users/3.png"></div>
<div class="message-content"><a href="#">Susan</a> Consectetur adipiscing elit...</div>
<div class="message-time">3 hours ago</div>
</li>
<li class="message">
<div class="message-icon"><img src="lib/img/users/4.png"></div>
<div class="message-content"><a href="#">Barbara</a> Quisque commodo sed ipsum...</div>
<div class="message-time">2 days ago</div>
</li>
<li class="divider"></li>
<li><a href="#">View all new messages...</a></li>
</ul>
</div>
<div class="btn-group">
<a class="con" href="" data-toggle="dropdown"><span class="icon icon-user"></span><span class="label label-primary">+5</span></a>
<ul class="dropdown-menu pull-right dropdown-profile" role="menu">
<li class="title"><span class="icon icon-user"></span> Welcome, Joseph!</li>
<li><a href="#"><span class="fa fa-gears"></span>Settings</a></li>
<li><a href="#"><span class="fa fa-user"></span>Profile</a></li>
<li><a href="#"><span class="icon icon-envelope"></span>Messages</a></li>
<li class="divider"></li>
<li><a href="#"><span class="fa fa-power-off"></span>Logout</a></li>
</ul>
</div>
</div>
</div>
<!-- BREADCRUMBS -->
<div class="crumbs">
<ol class="breadcrumb hidden-xs">
<li><i class="fa fa-home"></i> <a href="#">Home</a></li>
<li class="active">Calendar</li>
</ol>
</div>
</div>
<!-- BEGIN PAGE CONTENT -->
<div class="content">
<div class="page-h1">
<h1>Calendar <small>// FullCalendar.js</small></h1>
</div>
<div class="tbl">
<div class="col-md-2">
<div class="wdgt">
<div class="wdgt-header">Draggable Events</div>
<div class="wdgt-body" style="padding-bottom:10px;">
<div id='external-events'>
<div class='external-event event-default' data-class="event-default">Event 1</div>
<div class='external-event event-primary' data-class="event-primary">Event 2</div>
<div class='external-event event-warning' data-class="event-warning">Event 3</div>
<div class='external-event event-danger' data-class="event-danger">Event 4</div>
<div class='external-event event-success event-round' data-class="event-success event-round">Event 5</div>
<div class='external-event event-info event-round' data-class="event-info event-round">Event 6</div>
<div class='external-event event-soft event-round' data-class="event-soft event-round">Event 7</div>
<div class='external-event event-dark event-round' data-class="event-dark event-round">Event 8</div>
<div class='external-event event-bright event-round' data-class="event-bright event-round">Event 9</div>
<p>
<input type='checkbox' id='drop-remove' /> <label for='drop-remove'>Remove after drop</label>
</p>
</div>
</div>
</div>
</div>
<div class="col-md-10">
<div class="wdgt">
<div class="wdgt-header">Calendar</div>
<div class="wdgt-body" style="padding-bottom:10px;">
<div id='calendar'></div>
<div style='clear:both'></div>
</div>
</div>
</div>
</div>
</div>
<!-- END PAGE CONTENT -->
</div>
<!-- END NAV, CRUMBS, & CONTENT -->
</div>
<!-- Default JS (DO NOT TOUCH) -->
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery-ui.min.js"></script>
<script src="lib/js/bootstrap.min.js"></script>
<script src="lib/js/hogan.min.js"></script>
<script src="lib/js/typeahead.min.js"></script>
<script src="lib/js/typeahead-example.js"></script>
<!-- Adjustable JS -->
<script src="lib/js/fullcalendar.min.js"></script>
<script>
$(document).ready(function() {
/* initialize the external events
-----------------------------------------------------------------*/
$('#external-events div.external-event').each(function() {
// create an Event Object (http://arshaw.com/fullcalendar/docs/event_data/Event_Object/)
// it doesn't need to have a start or end
var eventObject = {
title: $.trim($(this).text()) // use the element's text as the event title
};
// store the Event Object in the DOM element so we can get to it later
$(this).data('eventObject', eventObject);
// make the event draggable using jQuery UI
$(this).draggable({
zIndex: 999,
revert: true, // will cause the event to go back to its
revertDuration: 0 // original position after the drag
});
});
/* initialize the calendar
-----------------------------------------------------------------*/
$('#calendar').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
editable: true,
droppable: true, // this allows things to be dropped onto the calendar !!!
drop: function(date, allDay) { // this function is called when something is dropped
// retrieve the dropped element's stored Event Object
var originalEventObject = $(this).data('eventObject');
var $extraEventClass = $(this).attr('data-class');
// we need to copy it, so that multiple events don't have a reference to the same object
var copiedEventObject = $.extend({}, originalEventObject);
// assign it the date that was reported
copiedEventObject.start = date;
copiedEventObject.allDay = allDay;
if($extraEventClass) copiedEventObject['className'] = [$extraEventClass];
// render the event on the calendar
// the last `true` argument determines if the event "sticks" (http://arshaw.com/fullcalendar/docs/event_rendering/renderEvent/)
$('#calendar').fullCalendar('renderEvent', copiedEventObject, true);
// is the "remove after drop" checkbox checked?
if ($('#drop-remove').is(':checked')) {
// if so, remove the element from the "Draggable Events" list
$(this).remove();
}
}
});
});
</script>
</body>
</html>