source: github/skins/larry/templates/contactedit.html @ 0be8bd1

HEAD
Last change on this file since 0be8bd1 was 0be8bd1, checked in by Thomas Bruederli <thomas@…>, 11 months ago

Enable drag & drop file upload for contact photos

  • Property mode set to 100644
File size: 2.6 KB
Line 
1<roundcube:object name="doctype" value="html5" />
2<html>
3<head>
4<title><roundcube:object name="pagetitle" /></title>
5<roundcube:include file="/includes/links.html" />
6</head>
7<body class="iframe footerbuttons">
8
9<h1 class="boxtitle">
10        <roundcube:if condition="env:action=='add'" /><roundcube:label name="addcontact" />
11        <roundcube:else /><roundcube:label name="editcontact" />
12<roundcube:endif /></h1>
13
14<form name="editform" method="post" action="./" id="contact-details" class="boxcontent">
15        <roundcube:if condition="strlen(env:sourcename)" />
16                <div id="sourcename"><roundcube:label name="addressbook" />: <roundcube:var name="env:sourcename" condition="env:action!='add'" /><roundcube:object name="sourceselector" id="sourceselect" condition="env:action=='add'" /></div>
17        <roundcube:endif />
18
19        <div id="contactphoto">
20                <roundcube:object name="contactphoto" id="contactpic" placeholder="/images/contactpic.png" />
21                <roundcube:if condition="env:photocol" />
22                <roundcube:object name="fileDropArea" id="contactpic" />
23                <div class="formlinks">
24                        <roundcube:button command="upload-photo" id="uploadformlink" type="link" label="replacephoto" class="iconlink upload disabled" classAct="iconlink upload active" onclick="UI.show_uploadform();return false" condition="env:photocol" /><br/>
25                        <roundcube:button command="delete-photo" type="link" label="delete" class="iconlink delete disabled" classAct="iconlink delete active" condition="env:photocol" />
26                </div>
27                <roundcube:endif />
28        </div>
29
30        <roundcube:object name="contactedithead" id="contacthead" size="16" form="editform" />
31        <br style="clear:both" />
32
33        <div id="contacttabs" class="tabbed">
34                <roundcube:object name="contacteditform" size="40" textareacols="60" form="editform" />
35        </div>
36
37</form>
38
39<div class="footerbuttons formbuttons">
40        <roundcube:button command="save" type="input" class="button mainaction" label="save" />
41        <roundcube:button command="show" type="input" class="button" label="cancel" condition="env:action=='edit'" />
42        <roundcube:button name="cancel" type="input" class="button" label="cancel" onclick="history.back()" condition="env:action=='add'" />
43</div>
44
45<div id="upload-dialog" class="propform popupdialog" title="<roundcube:label name='uploadphoto' />">
46        <roundcube:object name="photoUploadForm" id="upload-form" size="30" buttons="no" />
47        <div class="formbuttons">
48                <roundcube:button command="upload-photo" type="input" class="button mainaction" label="upload" />
49                <roundcube:button name="close" type="input" class="button" label="cancel" onclick="UI.show_uploadform()" />
50        </div>
51</div>
52
53<roundcube:include file="/includes/footer.html" />
54
55</body>
56</html>
Note: See TracBrowser for help on using the repository browser.