summaryrefslogtreecommitdiff
path: root/plugins/calendar/skins/classic/templates/calendar.html
blob: a78e76fcfb59ce48adbe599d01bc1b7cf52fbbfb (plain)
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><roundcube:object name="pagetitle" /></title>
<roundcube:include file="/includes/links.html" />
<script type="text/javascript" src="/functions.js"></script>
<!--[if lte IE 7]><link rel="stylesheet" type="text/css" href="./plugins/calendar/skins/classic/iehacks.css" /><![endif]-->
</head>
<body class="calendarmain">

<roundcube:include file="/includes/taskbar.html" />
<roundcube:include file="/includes/header.html" />

<div id="main">
  <div id="calendarsidebar">
    <div id="datepicker"></div>
    <div id="calendars" style="visibility:hidden">
      <div class="boxtitle"><roundcube:label name="calendar.calendars" /></div>
      <div class="boxlistcontent">
      <roundcube:object name="plugin.calendar_list" id="calendarslist" />
      </div>
      <div class="boxfooter">
        <roundcube:button command="calendar-create" type="link" title="calendar.createcalendar" class="buttonPas addgroup" classAct="button addgroup" content=" " />
        <roundcube:button name="calendaroptionslink" id="calendaroptionslink" type="link" title="moreactions" class="button groupactions" onclick="rcmail_ui.show_popup('calendaroptions');return false" content=" " />
      </div>
    </div>
  </div>
  <div id="calendarsidebartoggle"></div>
  <div id="calendar">
    <roundcube:object name="plugin.angenda_options" class="boxfooter" id="agendaoptions" />
  </div>
</div>

<div id="calendaroptionsmenu" class="popupmenu">
  <ul>
    <li><roundcube:button command="calendar-edit" label="calendar.edit" classAct="active" /></li>
    <li><roundcube:button command="calendar-remove" label="calendar.remove" classAct="active" /></li>
    <li><roundcube:button command="calendar-showurl" label="calendar.showurl" classAct="active" /></li>
    <li><roundcube:button command="events-import" label="calendar.importevents" classAct="active" /></li>
    <roundcube:if condition="env:calendar_driver == 'kolab'" />
    <li class="separator_above"><roundcube:button command="folders" task="settings" type="link" label="managefolders" classAct="active" /></li>
    <roundcube:endif />
  </ul>
</div>

<div id="eventshow" class="uidialog">
  <h1 id="event-title">Event Title</h1>
  <div class="event-section" id="event-location">Location</div>
  <div class="event-section" id="event-date">From-To</div>
  <div class="event-section" id="event-description">
    <h5 class="label"><roundcube:label name="calendar.description" /></h5>
    <div class="event-text"></div>
  </div>
  <div class="event-section" id="event-url">
    <h5 class="label"><roundcube:label name="calendar.url" /></h5>
    <div class="event-text"></div>
  </div>
  <div class="event-section" id="event-repeat">
    <h5 class="label"><roundcube:label name="calendar.repeat" /></h5>
    <div class="event-text"></div>
  </div>
  <div class="event-section" id="event-alarm">
    <h5 class="label"><roundcube:label name="calendar.alarms" /></h5>
    <div class="event-text"></div>
  </div>
  <div class="event-section" id="event-attendees">
    <h5 class="label"><roundcube:label name="calendar.tabattendees" /></h5>
    <div class="event-text"></div>
  </div>
  <div class="event-line" id="event-calendar">
    <label><roundcube:label name="calendar.calendar" /></label>
    <span class="event-text">Default</span>
  </div>
  <div class="event-line" id="event-category">
    <label><roundcube:label name="calendar.category" /></label>
    <span class="event-text"></span>
  </div>
  <div class="event-line" id="event-free-busy">
    <label><roundcube:label name="calendar.freebusy" /></label>
    <span class="event-text"></span>
  </div>
  <div class="event-line" id="event-priority">
    <label><roundcube:label name="calendar.priority" /></label>
    <span class="event-text"></span>
  </div>
  <div class="event-line" id="event-sensitivity">
    <label><roundcube:label name="calendar.sensitivity" /></label>
    <span class="event-text"></span>
  </div>
  <div class="event-section" id="event-attachments">
    <label><roundcube:label name="attachments" /></label>
    <div class="event-text attachments-list"></div>
  </div>
  
  <roundcube:object name="plugin.event_rsvp_buttons" id="event-rsvp" style="display:none" />
</div>

<roundcube:include file="/templates/eventedit.html" />

<div id="eventfreebusy" class="uidialog">
  <roundcube:object name="plugin.attendees_freebusy_table" id="attendees-freebusy-table" cellspacing="0" cellpadding="0" border="0" />
  
  <div class="schedule-options">
    &nbsp;
    <div class="schedule-buttons">
      <button id="shedule-freebusy-prev" title="<roundcube:label name='previouspage' />">&#9668;</button><button id="shedule-freebusy-next" title="<roundcube:label name='nextpage' />">&#9658;</button>
    </div>
  </div>
  
  <div style="float:left; width:28em">
    <div class="form-section">
      <label for="schedule-startdate"><roundcube:label name="calendar.start" /></label>
      <input type="text" name="startdate" size="11" id="schedule-startdate" disabled="true" /> &nbsp;
      <input type="text" name="starttime" size="6" id="schedule-starttime" disabled="true" />
    </div>
    <div class="form-section">
      <label for="schedule-enddate"><roundcube:label name="calendar.end" /></label>
      <input type="text" name="enddate" size="11" id="schedule-enddate" disabled="true" /> &nbsp;
      <input type="text" name="endtime" size="6"  id="schedule-endtime" disabled="true" />
    </div>
  </div>
  <div style="float:left">
    <div class="schedule-find-buttons">
      <button id="shedule-find-prev">&#9668; <roundcube:label name="calendar.prevslot" /></button>
      <button id="shedule-find-next"><roundcube:label name="calendar.nextslot" /> &#9658;</button>
    </div>
    <div class="schedule-options">
      <label><input type="checkbox" id="schedule-freebusy-workinghours" value="1" /><roundcube:label name="calendar.onlyworkinghours" /></label>
    </div>
  </div>
  <br style="clear:both;" />
  
  <roundcube:include file="/templates/freebusylegend.html" />
  <div class="attendees-list">
    <span class="attendee organizer"><roundcube:label name="calendar.roleorganizer" /></span>
    <span class="attendee req-participant"><roundcube:label name="calendar.rolerequired" /></span>
    <span class="attendee opt-participant"><roundcube:label name="calendar.roleoptional" /></span>
    <span class="attendee chair"><roundcube:label name="calendar.rolechair" /></span>
  </div>
</div>

<div id="calendarform" class="uidialog">
  <roundcube:label name="loading" />
</div>

<div id="eventsimport" class="uidialog">
  <roundcube:object name="plugin.events_import_form" id="events-import-form" uploadFieldSize="30" />
</div>

<div id="calendarurlbox" class="uidialog">
  <p><roundcube:label name="calendar.showurldescription" /></p>
  <textarea id="calfeedurl" rows="2" readonly="readonly"></textarea>
</div>

<div id="calendartoolbar">
  <roundcube:button command="addevent" type="link" class="buttonPas addevent" classAct="button addevent" classSel="button addeventSel" title="calendar.new_event" content=" " />
  <roundcube:button command="print" type="link" class="buttonPas print" classAct="button print" classSel="button printSel" title="calendar.print" content=" " />
  <roundcube:button command="export" type="link" class="buttonPas export" classAct="button export" classSel="button exportSel" title="calendar.export" content=" " />
  <roundcube:container name="toolbar" id="calendartoolbar" />
</div>

<div id="quicksearchbar">
<roundcube:button name="searchmenulink" id="searchmenulink" image="/images/icons/glass.png" />
<roundcube:object name="plugin.searchform" id="quicksearchbox" />
<roundcube:button command="reset-search" id="searchreset" image="/images/icons/reset.gif" title="resetsearch" />
</div>

<roundcube:object name="plugin.calendar_css" />

<script type="text/javascript">

// use skin functions to handle popup-menus
rcube_init_mail_ui();
rcmail_ui.popups.calendaroptions = { id:'calendaroptionsmenu', above:1, obj:$('#calendaroptionsmenu') };

$(document).ready(function(e){
  // initialize sidebar toggle
  $('#calendarsidebartoggle').click(function() {
    var width = $(this).data('sidebarwidth');
    var offset = $(this).data('offset');
    var $sidebar = $('#calendarsidebar'), time = 250;
    
    if ($sidebar.is(':visible')) {
      $sidebar.animate({ left:'-'+(width+10)+'px' }, time, function(){ $('#calendarsidebar').hide(); });
      $(this).animate({ left:'8px'}, time, function(){ $('#calendarsidebartoggle').addClass('sidebarclosed') });
      $('#calendar').animate({ left:'20px'}, time, function(){ $(this).fullCalendar('render'); });
    }
    else {
      $sidebar.show().animate({ left:'10px' }, time);
      $(this).animate({ left:offset+'px'}, time, function(){ $('#calendarsidebartoggle').removeClass('sidebarclosed'); });
      $('#calendar').animate({ left:(width+16)+'px'}, time, function(){ $(this).fullCalendar('render'); });
    }
  })
  .data('offset', $('#calendarsidebartoggle').position().left)
  .data('sidebarwidth', $('#calendarsidebar').width() + $('#calendarsidebar').position().left);
});

</script>

</body>
</html>