summaryrefslogtreecommitdiff
path: root/plugins/kolab_notes/skins/larry/templates/dialogview.html
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-04-15 14:01:52 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2014-04-15 14:01:52 (GMT)
commit9b38634115ae6e685e3eabe6878db1b54d944075 (patch)
treec4695ab465f2435bef75f718b73ec91c9589109e /plugins/kolab_notes/skins/larry/templates/dialogview.html
parentee269df7ae566bfefbb4b6934abf74a7aaee2f6e (diff)
downloadroundcubemail-plugins-kolab-9b38634115ae6e685e3eabe6878db1b54d944075.tar.gz
Add missing file for notes in mail integration
Diffstat (limited to 'plugins/kolab_notes/skins/larry/templates/dialogview.html')
-rw-r--r--plugins/kolab_notes/skins/larry/templates/dialogview.html61
1 files changed, 61 insertions, 0 deletions
diff --git a/plugins/kolab_notes/skins/larry/templates/dialogview.html b/plugins/kolab_notes/skins/larry/templates/dialogview.html
new file mode 100644
index 0000000..1acab5b
--- /dev/null
+++ b/plugins/kolab_notes/skins/larry/templates/dialogview.html
@@ -0,0 +1,61 @@
+<roundcube:object name="doctype" value="html5" />
+<html>
+<head>
+<title><roundcube:object name="pagetitle" /></title>
+<roundcube:include file="/includes/links.html" />
+</head>
+<body class="iframe notesview notesdialog noscroll">
+
+<div id="notedetailsbox">
+ <div id="notesdialogheader" class="boxtitle">
+ <roundcube:object name="plugin.notetitle" id="notedetailstitle" />
+ <div class="notebookselect" style="display:none">
+ <label for="notebook"><roundcube:label name="kolab_notes.savein" /></label>
+ <roundcube:object name="plugin.notebooks" id="kolab-notebook" type="select" />
+ </div>
+ </div>
+ <roundcube:object name="plugin.editform" id="noteform" />
+ <roundcube:object name="plugin.detailview" id="notedetails" class="scroller" />
+ <div id="notereferences">
+ <roundcube:object name="plugin.attachments_list" id="attachment-list" class="attachmentslist" />
+ </div>
+</div>
+
+<script type="text/javascript">
+
+// UI startup
+var UI = new rcube_mail_ui();
+
+$(document).ready(function(e){
+ UI.init();
+
+ function layout_view()
+ {
+ var form = $('#noteform, #notedetails'),
+ content = $('#notecontent'),
+ header = $('#notesdialogheader'),
+ w, h;
+
+ form.css('top', header.outerHeight()+'px');
+
+ w = form.outerWidth();
+ h = form.outerHeight();
+ content.width(w).height(h);
+
+ $('#notecontent_tbl').width(w+'px').height('').css('margin-top', '-1px');
+ $('#notecontent_ifr').width(w+'px').height((h-54)+'px');
+ }
+
+ $(window).resize(function(e){
+ layout_view();
+ });
+
+ rcmail.addEventListener('kolab_notes_render', function(p){
+ $('#notesdialogheader .notebookselect')[p.readonly ? 'hide' : 'show']();
+ });
+});
+
+</script>
+
+</body>
+</html>