summaryrefslogtreecommitdiff
path: root/plugins/tasklist/skins/larry/templates/mainview.html
blob: 52463e04a39e21f99d799828f4000cdd33d22dc2 (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
<roundcube:object name="doctype" value="html5" />
<html>
<head>
<title><roundcube:object name="pagetitle" /></title>
<roundcube:include file="/includes/links.html" />
<!--[if lte IE 8]><link rel="stylesheet" type="text/css" href="/this/iehacks.css" /><![endif]-->
</head>
<body class="tasklistview noscroll">

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

<div id="mainscreen">
	<div id="sidebar">
		<div id="taskstoolbar" class="toolbar">
			<roundcube:button command="newtask" type="link" class="button newtask disabled" classAct="button newtask" classSel="button newtask pressed" label="tasklist.newtask" title="tasklist.newtask" />
			<roundcube:container name="toolbar" id="taskstoolbar" />
		</div>

		<div id="tagsbox" class="uibox listbox">
			<h2 class="boxtitle"><roundcube:label name="tasklist.tags" id="taglist" /></h2>
			<div class="scroller">
				<roundcube:object name="plugin.tagslist" id="tagslist" />
			</div>
		</div>

		<div id="tasklistsbox" class="uibox listbox">
			<h2 class="boxtitle"><roundcube:label name="tasklist.lists" /></h2>
			<div class="scroller withfooter">
			<roundcube:object name="plugin.tasklists" id="tasklists" class="listing" />
			</div>
			<div class="boxfooter">
				<roundcube:button command="list-create" type="link" title="tasklist.createlist" class="listbutton add disabled" classAct="listbutton add" innerClass="inner" content="+" /><roundcube:button name="tasklistoptionslink" id="tasklistoptionsmenulink" type="link" title="tasklist.listactions" class="listbutton groupactions" onclick="UI.show_popup('tasklistoptionsmenu', undefined, { above:true });return false" innerClass="inner" content="&#9881;" />
			</div>
		</div>
	</div>
	
	<div id="mainview-right">
	
	<div id="quickaddbox">
		<roundcube:object name="plugin.quickaddform" />
	</div>

	<div id="quicksearchbar">
		<roundcube:object name="plugin.searchform" id="quicksearchbox" />
		<a id="searchmenulink" class="iconbutton searchoptions" > </a>
		<roundcube:button command="reset-search" id="searchreset" class="iconbutton reset" title="resetsearch" content=" " />
	</div>

	<div id="tasksview" class="uibox">
		<div class="boxtitle buttonbar">
			<ul id="taskselector">
				<li class="all selected"><a href="#all"><roundcube:label name="tasklist.all" /><span class="count"></span></a></li>
				<li class="overdue inactive"><a href="#overdue"><roundcube:label name="tasklist.overdue" /><span class="count"></span></a></li>
				<li class="flagged"><a href="#flagged"><roundcube:label name="tasklist.flagged" /><span class="count"></span></a></li>
				<li class="today"><a href="#today"><roundcube:label name="tasklist.today" /><span class="count"></span></a></li>
				<li class="tomorrow"><a href="#tomorrow"><roundcube:label name="tasklist.tomorrow" /><span class="count"></span></a></li>
				<li class="week"><a href="#week"><roundcube:label name="tasklist.next7days" /></a></li>
				<li class="later"><a href="#later"><roundcube:label name="tasklist.later" /></a></li>
				<li class="nodate"><a href="#nodate"><roundcube:label name="tasklist.nodate" ucfirst="true" /></a></li>
				<li class="complete"><a href="#complete"><roundcube:label name="tasklist.complete" /><span class="count"></span></a></li>
			</ul>

			<div class="buttonbar-right">
				<roundcube:button name="taskviewmenulink" id="taskviewmenulink" type="link" title="tasklist.viewoptions" class="listmenu viewoptions" onclick="UI.show_popup('taskviewmenu');return false" innerClass="inner" content="&#9881;" />
			</div>
		</div>
		
		<div class="scroller">
			<roundcube:object name="plugin.tasks" id="thelist" />
			<div id="listmessagebox"></div>
		</div>
		<div id="rootdroppable"></div>
		<roundcube:object name="message" id="message" class="statusbar" />
	</div>
	
	</div>

</div>

<div id="taskitemmenu" class="popupmenu">
	<ul class="toolbarmenu iconized">
		<li><roundcube:button name="edit" type="link" onclick="rctasks.edit_task(rctasks.selected_task.id, 'edit'); return false" label="edit" class="icon active" innerclass="icon edit" /></li>
		<li><roundcube:button name="delete" type="link" onclick="rctasks.delete_task(rctasks.selected_task.id); return false" label="delete" class="icon active" innerclass="icon delete" /></li>
		<li><roundcube:button name="addchild" type="link" onclick="rctasks.add_childtask(rctasks.selected_task.id); return false" label="tasklist.addsubtask" class="icon active" innerclass="icon add" /></li>
	</ul>
</div>

<div id="tasklistoptionsmenu" class="popupmenu">
	<ul class="toolbarmenu">
		<li><roundcube:button command="list-edit" label="edit" classAct="active" /></li>
		<li><roundcube:button command="list-remove" label="delete" classAct="active" /></li>
		<!--<li><roundcube:button command="list-import" label="tasklist.import" classAct="active" /></li>-->
		<roundcube:if condition="env:tasklist_driver == 'kolab'" />
		<li><roundcube:button command="folders" task="settings" type="link" label="managefolders" classAct="active" /></li>
		<roundcube:endif />
	</ul>
</div>

<div id="taskviewmenu" class="popupmenu">
	<ul class="toolbarmenu">
		<li><roundcube:button command="expand-all" label="expand-all" class="icon" classAct="icon active" innerclass="icon expand" /></li>
		<li><roundcube:button command="collapse-all" label="collapse-all" class="icon" classAct="icon active" innerclass="icon collapse" /></li>
	</ul>
</div>

<div id="taskshow">
	<div class="form-section" id="task-parent-title"></div>
	<div class="form-section">
		<h2 id="task-title"></h2>
	</div>
	<div id="task-description" class="form-section">
	</div>
	<div id="task-tags" class="form-section">
		<label><roundcube:label name="tasklist.tags" /></label>
		<span class="task-text"></span>
	</div>
	<div id="task-start" class="form-section">
		<label><roundcube:label name="tasklist.start" /></label>
		<span class="task-text"></span>
		<span id="task-starttime"></span>
	</div>
	<div id="task-date" class="form-section">
		<label><roundcube:label name="tasklist.datetime" /></label>
		<span class="task-text"></span>
		<span id="task-time"></span>
	</div>
	<div id="task-alarm" class="form-section">
		<label><roundcube:label name="tasklist.alarms" /></label>
		<span class="task-text"></span>
	</div>
	<div id="task-list" class="form-section">
		<label><roundcube:label name="tasklist.list" /></label>
		<span class="task-text"></span>
	</div>
	<div id="task-completeness" class="form-section">
		<label><roundcube:label name="tasklist.complete" /></label>
		<span class="task-text"></span>
	</div>
	<div id="task-attachments" class="form-section">
		<label><roundcube:label name="attachments" /></label>
		<div class="task-text"></div>
	</div>
</div>

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

<div id="tasklistform" class="uidialog">
	<roundcube:object name="plugin.tasklist_editform" />
</div>

<script type="text/javascript">

// UI startup
var UI = new rcube_mail_ui();

$(document).ready(function(e){
	UI.init();
	new rcube_splitter({ id:'taskviewsplitter', p1:'#sidebar', p2:'#mainview-right',
		orientation:'v', relative:true, start:240, min:180, size:16, offset:2 }).init();
	new rcube_splitter({ id:'taskviewsplitterv', p1:'#tagsbox', p2:'#tasklistsbox',
		orientation:'h', relative:true, start:242, min:120, size:16, offset:6 }).init();
});

</script>

</body>
</html>