summaryrefslogtreecommitdiffstats
path: root/application/views/scripts/event/index.phtml
diff options
context:
space:
mode:
authorSebastian Wagner2011-09-06 20:05:28 +0200
committerSebastian Wagner2011-09-06 20:05:28 +0200
commit93b1996514bea3631fd4e04e736dd3bc465c87b6 (patch)
tree31d621ebcda31097ec0517de8c1b41ce8cf8e5f7 /application/views/scripts/event/index.phtml
parentqtip implemented, dayView now shows more detailed events (diff)
downloadpoolctrl-93b1996514bea3631fd4e04e736dd3bc465c87b6.tar.gz
poolctrl-93b1996514bea3631fd4e04e736dd3bc465c87b6.tar.xz
poolctrl-93b1996514bea3631fd4e04e736dd3bc465c87b6.zip
boot- and shutdownEvents defaultSize = 5min
Diffstat (limited to 'application/views/scripts/event/index.phtml')
-rw-r--r--application/views/scripts/event/index.phtml20
1 files changed, 16 insertions, 4 deletions
diff --git a/application/views/scripts/event/index.phtml b/application/views/scripts/event/index.phtml
index fec85a4..ec180dd 100644
--- a/application/views/scripts/event/index.phtml
+++ b/application/views/scripts/event/index.phtml
@@ -60,7 +60,7 @@ var lastview;
var calendar = $('#calendar').fullCalendar({
header: {
- default: 'week',
+ default: 'week',
left: 'title',
center: 'prev,next today',
right: 'agendaWeek,agendaDay'
@@ -76,6 +76,7 @@ var lastview;
allowCalEventOverlap: false,
overlapEventsSeparate: false,
slotMinutes: 30,
+ defaultEventMinutes: 5,
events: "/event/eventlist",
@@ -152,15 +153,26 @@ var lastview;
eventRender: function(event, element, view) {
if (view.name == 'agendaWeek') {
element.qtip({
- content: 'Note: ' + event.note + '\n' +
- 'Participants: ' + event.participants
+ content:
+ 'Title: ' + event.title + '<br/>' +
+ 'Type: ' + event.category + '<br/>' +
+ 'Note: ' + event.note + '<br/>' +
+ 'Participants: ' + event.participants
});
}
if (view.name == 'agendaDay') {
//alert(options.slotMinutes);
//options['slotMinutes'] = 10;
//opt.slotMinutes = 10;
- element.find('.fc-event-title').append("<br/> Note: " + event.note + "<br/> Participants: " + event.participants);
+ //slotMinutes: 5,
+ element.qtip({
+ content:
+ 'Title: ' + event.title + '<br/>' +
+ 'Type: ' + event.category + '<br/>' +
+ 'Note: ' + event.note + '<br/>' +
+ 'Participants: ' + event.participants
+ });
+ element.find('.fc-event-title').append("<br/> Type: " + event.category + "<br/> Note: " + event.note + "<br/> Participants: " + event.participants);
}
},