2013-02-28 16:53:51 +01:00
|
|
|
<form class="float" id="file_upload_form" action="<?php print_unescaped(OCP\Util::linkTo('contacts', 'ajax/uploadphoto.php')); ?>" method="post" enctype="multipart/form-data" target="file_upload_target">
|
2013-04-08 22:40:53 +02:00
|
|
|
<input type="hidden" name="contactid" value="">
|
|
|
|
<input type="hidden" name="addressbookid" value="">
|
|
|
|
<input type="hidden" name="backend" value="">
|
2013-02-28 17:21:45 +01:00
|
|
|
<input type="hidden" name="requesttoken" value="<?php p($_['requesttoken']) ?>">
|
|
|
|
<input type="hidden" name="MAX_FILE_SIZE" value="<?php p($_['uploadMaxFilesize']) ?>" id="max_upload">
|
2013-02-28 17:35:22 +01:00
|
|
|
<input type="hidden" class="max_human_file_size" value="(max <?php p($_['uploadMaxHumanFilesize']); ?>)">
|
2012-10-15 21:33:21 +02:00
|
|
|
<input id="contactphoto_fileupload" type="file" accept="image/*" name="imagefile" />
|
|
|
|
</form>
|
2012-11-05 12:37:05 +01:00
|
|
|
<iframe name="file_upload_target" id='file_upload_target' src=""></iframe>
|
2012-12-17 21:27:01 +01:00
|
|
|
<div id="groupsheader">
|
2013-02-28 16:27:14 +01:00
|
|
|
<button class="addgroup icon-plus text"><?php p($l->t('New Group')); ?></button>
|
2012-12-17 21:27:01 +01:00
|
|
|
</div>
|
2012-10-05 05:05:49 +02:00
|
|
|
<div id="leftcontent" class="loading">
|
2012-09-17 16:15:31 +02:00
|
|
|
<nav id="grouplist">
|
|
|
|
</nav>
|
2012-11-13 16:59:22 +01:00
|
|
|
<div id="contacts-settings">
|
2013-02-28 16:27:14 +01:00
|
|
|
<h3 class="settings action text" tabindex="0" role="button" title="<?php p($l->t('Settings')); ?>"></h3>
|
2013-03-17 10:35:22 +01:00
|
|
|
<h2 data-id="addressbooks" tabindex="0" role="button"><?php p($l->t('Address books')); ?></h2>
|
2013-04-12 12:34:03 +02:00
|
|
|
<ul class="hidden addressbooklist">
|
2012-11-27 02:42:17 +01:00
|
|
|
</ul>
|
2013-03-14 23:14:48 +01:00
|
|
|
<button class="addaddressbook icon-plus text"><?php p($l->t('New')); ?></button>
|
|
|
|
<ul class="hidden">
|
|
|
|
<li><input class="addaddressbookinput" type="text" placeholder="<?php p($l->t('Display name')); ?>" /></li>
|
|
|
|
<li>
|
|
|
|
<button class="addaddressbookok"><?php p($l->t('OK')); ?></button>
|
|
|
|
<button class="addaddressbookcancel"><?php p($l->t('Cancel')); ?></button>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2013-03-14 23:14:48 +01:00
|
|
|
<ul class="hidden">
|
|
|
|
<li><input class="addaddressbookinput" type="text" placeholder="<?php p($l->t('Display name')); ?>" /></li>
|
|
|
|
<li>
|
|
|
|
<button class="addaddressbookok"><?php p($l->t('OK')); ?></button>
|
|
|
|
<button class="addaddressbookcancel"><?php p($l->t('Cancel')); ?></button>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2013-03-17 10:35:22 +01:00
|
|
|
<h2 data-id="import" tabindex="0" role="button"><?php p($l->t('Import')); ?></h2>
|
2013-02-12 22:04:59 +01:00
|
|
|
<ul class="hidden">
|
2012-12-05 00:59:04 +01:00
|
|
|
<li class="import-upload">
|
2013-03-29 05:00:03 +01:00
|
|
|
<form
|
|
|
|
id="import_upload_form"
|
|
|
|
data-upload-id="1"
|
|
|
|
action="<?php print_unescaped(OCP\Util::linkTo('contacts', 'ajax/uploadimport.php')); ?>"
|
|
|
|
method="post" enctype="multipart/form-data"
|
|
|
|
target="import_upload_target_1">
|
2013-02-28 17:21:45 +01:00
|
|
|
<input type="hidden" name="MAX_FILE_SIZE" value="<?php p($_['uploadMaxFilesize']) ?>" id="max_upload">
|
2013-03-29 05:00:03 +01:00
|
|
|
<label for="import_upload_start"><?php p($l->t('Select files to import')); ?>
|
2013-02-28 16:27:14 +01:00
|
|
|
<button class="import-upload-button" title="<?php p($l->t('Select files')); ?>"></button>
|
2012-12-05 03:39:16 +01:00
|
|
|
</label>
|
2013-03-29 05:00:03 +01:00
|
|
|
<input id="import_upload_start" type="file" accept="text/vcard,text/x-vcard,text/directory" multiple="multiple" name="file" />
|
2012-12-03 19:39:28 +01:00
|
|
|
</form>
|
2013-03-29 05:00:03 +01:00
|
|
|
<!-- iframe name="import_upload_target" id='import_upload_target' src=""></iframe -->
|
2012-11-22 00:27:25 +01:00
|
|
|
</li>
|
2013-02-28 16:27:14 +01:00
|
|
|
<li class="import-select hidden"><label><?php p($l->t('Import into:')); ?></label></li>
|
2012-12-07 14:55:14 +01:00
|
|
|
<li class="import-select hidden">
|
2013-02-28 16:27:14 +01:00
|
|
|
<select id="import_into" title="<?php p($l->t('Import into:')); ?>">
|
2012-12-07 14:55:14 +01:00
|
|
|
</select>
|
2013-02-28 16:27:14 +01:00
|
|
|
<button class="doImport"><?php p($l->t('OK')); ?></button>
|
2012-12-05 00:59:04 +01:00
|
|
|
</li>
|
|
|
|
<li>
|
2012-12-05 03:39:16 +01:00
|
|
|
<label id="import-status-text"></label>
|
2012-12-05 00:59:04 +01:00
|
|
|
<div id="import-progress"></div>
|
2012-11-22 00:27:25 +01:00
|
|
|
</li>
|
|
|
|
</ul>
|
2012-11-13 16:59:22 +01:00
|
|
|
</div>
|
2012-09-17 16:15:31 +02:00
|
|
|
</div>
|
|
|
|
<div id="contactsheader">
|
2013-02-28 16:27:14 +01:00
|
|
|
<input type="checkbox" id="toggle_all" title="<?php p($l->t('(De-)select all')); ?>" />
|
2012-10-05 05:05:49 +02:00
|
|
|
<div class="actions">
|
2013-02-28 16:27:14 +01:00
|
|
|
<button class="add svg icon-plus action text"><?php p($l->t('New Contact')); ?></button>
|
|
|
|
<button class="download svg action text"><?php p($l->t('Download Contact(s)')); ?></button>
|
2012-12-14 16:35:10 +01:00
|
|
|
<select class="groups svg action text button" name="groups">
|
2013-02-28 16:27:14 +01:00
|
|
|
<option value="-1" disabled="disabled" selected="selected"><?php p($l->t('Groups')); ?></option>
|
2012-10-05 05:05:49 +02:00
|
|
|
</select>
|
2013-02-28 16:27:14 +01:00
|
|
|
<button class="favorite action svg inactive control" title="<?php p($l->t('Favorite')); ?>"></button>
|
2013-04-03 16:43:18 +02:00
|
|
|
<button class="merge"><?php p($l->t('Merge selected')); ?></button>
|
2013-02-28 16:27:14 +01:00
|
|
|
<a class="delete action" title="<?php p($l->t('Delete Contact')); ?>"></a>
|
2012-09-17 16:15:31 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="rightcontent" class="loading">
|
2012-10-05 05:05:49 +02:00
|
|
|
<table id="contactlist">
|
|
|
|
</table>
|
2012-11-15 02:40:47 +01:00
|
|
|
<div class="hidden popup" id="ninjahelp">
|
2013-02-28 16:27:14 +01:00
|
|
|
<a class="close" tabindex="0" role="button" title="<?php p($l->t('Close')); ?>"></a>
|
|
|
|
<h2><?php p($l->t('Keyboard shortcuts')); ?></h2>
|
2012-11-15 02:40:47 +01:00
|
|
|
<div class="help-section">
|
2013-02-28 16:27:14 +01:00
|
|
|
<h3><?php p($l->t('Navigation')); ?></h3>
|
2012-11-15 02:40:47 +01:00
|
|
|
<dl>
|
|
|
|
<dt>j/Down</dt>
|
2013-02-28 16:27:14 +01:00
|
|
|
<dd><?php p($l->t('Next contact in list')); ?></dd>
|
2012-11-15 02:40:47 +01:00
|
|
|
<dt>k/Up</dt>
|
2013-02-28 16:27:14 +01:00
|
|
|
<dd><?php p($l->t('Previous contact in list')); ?></dd>
|
2012-11-15 02:40:47 +01:00
|
|
|
<dt>o</dt>
|
2013-02-28 16:27:14 +01:00
|
|
|
<dd><?php p($l->t('Expand/collapse current addressbook')); ?></dd>
|
2012-11-15 02:40:47 +01:00
|
|
|
<dt>n/PageDown</dt>
|
2013-02-28 16:27:14 +01:00
|
|
|
<dd><?php p($l->t('Next addressbook')); ?></dd>
|
2012-11-15 02:40:47 +01:00
|
|
|
<dt>p/PageUp</dt>
|
2013-02-28 16:27:14 +01:00
|
|
|
<dd><?php p($l->t('Previous addressbook')); ?></dd>
|
2012-11-15 02:40:47 +01:00
|
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
<div class="help-section">
|
2013-02-28 16:27:14 +01:00
|
|
|
<h3><?php p($l->t('Actions')); ?></h3>
|
2012-11-15 02:40:47 +01:00
|
|
|
<dl>
|
|
|
|
<dt>r</dt>
|
2013-02-28 16:27:14 +01:00
|
|
|
<dd><?php p($l->t('Refresh contacts list')); ?></dd>
|
2012-11-15 02:40:47 +01:00
|
|
|
<dt>a</dt>
|
2013-02-28 16:27:14 +01:00
|
|
|
<dd><?php p($l->t('Add new contact')); ?></dd>
|
2012-11-15 02:40:47 +01:00
|
|
|
<!-- dt>Shift-a</dt>
|
2013-02-28 16:27:14 +01:00
|
|
|
<dd><?php p($l->t('Add new addressbook')); ?></dd -->
|
2012-11-15 02:40:47 +01:00
|
|
|
<dt>Shift-Delete</dt>
|
2013-02-28 16:27:14 +01:00
|
|
|
<dd><?php p($l->t('Delete current contact')); ?></dd>
|
2012-11-15 02:40:47 +01:00
|
|
|
</dl>
|
|
|
|
</div>
|
2012-10-05 05:05:49 +02:00
|
|
|
</div>
|
2012-11-15 02:40:47 +01:00
|
|
|
<div id="firstrun" class="hidden">
|
2013-02-28 18:26:55 +01:00
|
|
|
<?php print_unescaped($l->t('<h3>You have no contacts in your addressbook.</h3>'
|
|
|
|
. '<p>Add a new contact or import existing contacts from a VCF file.</p>')) ?>
|
2012-11-15 02:40:47 +01:00
|
|
|
<div id="selections">
|
2013-02-28 16:27:14 +01:00
|
|
|
<button class="addcontact icon-plus text"><?php p($l->t('Add contact')) ?></button>
|
|
|
|
<button class="import icon text"><?php p($l->t('Import')) ?></button>
|
2012-11-15 02:40:47 +01:00
|
|
|
</div>
|
2012-10-05 05:05:49 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2012-10-15 21:33:21 +02:00
|
|
|
<script id="cropBoxTemplate" type="text/template">
|
|
|
|
<form id="cropform"
|
|
|
|
class="coords"
|
|
|
|
method="post"
|
|
|
|
enctype="multipart/form-data"
|
|
|
|
target="crop_target"
|
2013-02-28 18:26:55 +01:00
|
|
|
action="<?php print_unescaped(OCP\Util::linkToAbsolute('contacts', 'ajax/savecrop.php')); ?>">
|
2013-04-05 04:11:53 +02:00
|
|
|
<input type="hidden" id="contactid" name="contactid" value="{contactid}" />
|
|
|
|
<input type="hidden" id="addressbookid" name="addressbookid" value="{addressbookid}" />
|
|
|
|
<input type="hidden" id="backend" name="backend" value="{backend}" />
|
2012-10-15 21:33:21 +02:00
|
|
|
<input type="hidden" id="tmpkey" name="tmpkey" value="{tmpkey}" />
|
|
|
|
<fieldset id="coords">
|
|
|
|
<input type="hidden" id="x1" name="x1" value="" />
|
|
|
|
<input type="hidden" id="y1" name="y1" value="" />
|
|
|
|
<input type="hidden" id="x2" name="x2" value="" />
|
|
|
|
<input type="hidden" id="y2" name="y2" value="" />
|
|
|
|
<input type="hidden" id="w" name="w" value="" />
|
|
|
|
<input type="hidden" id="h" name="h" value="" />
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
</script>
|
|
|
|
|
2012-10-24 20:29:44 +02:00
|
|
|
<script id="addGroupTemplate" type="text/template">
|
2013-02-28 16:27:14 +01:00
|
|
|
<div id="dialog-form" title="<?php p($l->t('Add group')); ?>">
|
2012-10-24 20:29:44 +02:00
|
|
|
<fieldset>
|
|
|
|
<input type="text" name="name" id="name" />
|
|
|
|
</fieldset>
|
|
|
|
</div>
|
|
|
|
</script>
|
|
|
|
|
2013-04-03 16:43:18 +02:00
|
|
|
<script id="mergeContactsTemplate" type="text/template">
|
|
|
|
<div id="dialog-merge-contacts" title="<?php p($l->t('Merge contacts')); ?>">
|
2013-04-05 19:06:26 +02:00
|
|
|
<p><?php p($l->t('Which contact should the data be merged into?')); ?></p>
|
2013-04-03 16:43:18 +02:00
|
|
|
<fieldset>
|
2013-04-05 22:21:08 +02:00
|
|
|
<ul class="mergelist">
|
|
|
|
<li><input id="mergee_{idx}" type="radio" name="contact" value="{id}"><label for="mergee_{idx}" >{displayname}</label></li>
|
|
|
|
</ul>
|
2013-04-03 16:43:18 +02:00
|
|
|
</fieldset>
|
|
|
|
<p>
|
|
|
|
<input type="checkbox" id="delete_other" name="delete_other" />
|
2013-04-05 18:27:41 +02:00
|
|
|
<label for="delete_other"><?php p($l->t('Delete the other(s) after successful merge?')); ?></label>
|
2013-04-03 16:43:18 +02:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</script>
|
|
|
|
|
2012-09-17 16:15:31 +02:00
|
|
|
<script id="contactListItemTemplate" type="text/template">
|
|
|
|
<tr class="contact" data-id="{id}">
|
2013-03-23 01:59:44 +01:00
|
|
|
<td class="name thumbnail">
|
2012-11-13 22:42:55 +01:00
|
|
|
<input type="checkbox" name="id" value="{id}" /><span class="nametext">{name}</span>
|
2012-09-17 16:15:31 +02:00
|
|
|
</td>
|
|
|
|
<td class="email">
|
2012-10-15 21:33:21 +02:00
|
|
|
<a href="mailto:{email}">{email}</a>
|
2013-02-28 16:27:14 +01:00
|
|
|
<a class="svg mailto hidden" title="<?php p($l->t('Compose mail')); ?>"></a>
|
2012-09-17 16:15:31 +02:00
|
|
|
</td>
|
|
|
|
<td class="tel">{tel}</td>
|
|
|
|
<td class="adr">{adr}</td>
|
|
|
|
<td class="categories">{categories}</td>
|
|
|
|
</tr>
|
|
|
|
</script>
|
|
|
|
|
2013-03-12 00:28:41 +01:00
|
|
|
<script id="contactDragItemTemplate" type="text/template">
|
2013-04-06 17:13:18 +02:00
|
|
|
<div class="dragContact thumbnail" data-id="{id}">
|
2013-03-12 00:28:41 +01:00
|
|
|
{name}
|
|
|
|
</div>
|
|
|
|
</script>
|
|
|
|
|
2012-09-17 16:15:31 +02:00
|
|
|
<script id="groupListItemTemplate" type="text/template">
|
2012-11-22 19:32:47 +01:00
|
|
|
<h3 class="group" data-type="{type}" data-id="{id}">
|
|
|
|
{name}
|
2013-02-28 16:27:14 +01:00
|
|
|
<a class="action delete tooltipped rightwards" title="<?php p($l->t('Delete group')); ?>"></a>
|
2012-11-22 19:32:47 +01:00
|
|
|
<span class="action numcontacts">{num}</span>
|
|
|
|
</h3>
|
2012-09-17 16:15:31 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<script id="contactFullTemplate" type="text/template">
|
2013-02-28 16:53:51 +01:00
|
|
|
<form action="<?php print_unescaped(OCP\Util::linkTo('contacts', 'index.php')); ?>" method="post" enctype="multipart/form-data">
|
2012-09-17 16:15:31 +02:00
|
|
|
<section id="contact" data-id="{id}">
|
2012-12-10 00:04:06 +01:00
|
|
|
<span class="arrow"></span>
|
2012-10-05 05:05:49 +02:00
|
|
|
<ul>
|
|
|
|
<li>
|
2012-10-15 21:33:21 +02:00
|
|
|
<div id="photowrapper" class="propertycontainer" data-element="photo">
|
|
|
|
<ul id="phototools" class="transparent hidden">
|
2013-02-23 22:59:47 +01:00
|
|
|
<li><a class="action delete" title="<?php echo $l->t('Delete current photo'); ?>"></a></li>
|
|
|
|
<li><a class="action edit" title="<?php echo $l->t('Edit current photo'); ?>"></a></li>
|
|
|
|
<li><a class="action upload" title="<?php echo $l->t('Upload new photo'); ?>"></a></li>
|
|
|
|
<li><a class="action cloud icon-cloud" title="<?php echo $l->t('Select photo from ownCloud'); ?>"></a></li>
|
2012-10-15 21:33:21 +02:00
|
|
|
</ul>
|
2012-12-10 00:04:06 +01:00
|
|
|
<a class="favorite action {favorite}"></a>
|
2012-10-15 21:33:21 +02:00
|
|
|
</div>
|
|
|
|
<div class="singleproperties">
|
2012-11-13 22:42:55 +01:00
|
|
|
<input data-element="fn" class="fullname value propertycontainer" type="text" name="value" value="{name}" required />
|
2012-10-24 20:29:44 +02:00
|
|
|
<a class="action edit"></a>
|
2013-01-15 11:02:19 +01:00
|
|
|
<fieldset class="n hidden editor propertycontainer" data-element="n">
|
2012-11-22 04:09:52 +01:00
|
|
|
<ul>
|
|
|
|
<li>
|
2012-12-10 20:58:34 +01:00
|
|
|
<input class="value tooltipped rightwards onfocus" type="text" id="n_1" name="value[1]" value="{n1}"
|
2013-02-28 16:27:14 +01:00
|
|
|
placeholder="<?php p($l->t('First name')); ?>"
|
|
|
|
title="<?php p($l->t('First name')); ?>" />
|
2012-11-22 04:09:52 +01:00
|
|
|
</li>
|
|
|
|
<li>
|
2012-12-10 20:58:34 +01:00
|
|
|
<input class="value tooltipped rightwards onfocus" type="text" id="n_2" name="value[2]" value="{n2}"
|
2013-02-28 16:27:14 +01:00
|
|
|
placeholder="<?php p($l->t('Additional names')); ?>"
|
|
|
|
title="<?php p($l->t('Additional names')); ?>" />
|
2012-11-22 04:09:52 +01:00
|
|
|
</li>
|
|
|
|
<li>
|
2012-12-10 20:58:34 +01:00
|
|
|
<input class="value tooltipped rightwards onfocus" type="text" id="n_0" name="value[0]" value="{n0}"
|
2013-02-28 16:27:14 +01:00
|
|
|
placeholder="<?php p($l->t('Last name')); ?>"
|
|
|
|
title="<?php p($l->t('Last name')); ?>" />
|
2012-11-22 04:09:52 +01:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<input class="value" type="hidden" id="n_3" name="value[3]" value="{n3}" />
|
|
|
|
<input class="value" type="hidden" id="n_4" name="value[4]" value="{n4}" />
|
|
|
|
</fieldset>
|
2013-01-16 13:34:30 +01:00
|
|
|
<div class="groupscontainer propertycontainer" data-element="categories">
|
2013-02-28 16:27:14 +01:00
|
|
|
<select id="contactgroups" title="<?php p($l->t('Select groups')); ?>" name="value" multiple></select>
|
2013-01-16 13:34:30 +01:00
|
|
|
</div>
|
2013-03-25 17:09:29 +01:00
|
|
|
<div>
|
|
|
|
<select class="hidden" id="contactaddressbooks" title="<?php p($l->t('Select address book')); ?>" name="value" multiple></select>
|
|
|
|
</div>
|
2012-09-17 16:15:31 +02:00
|
|
|
<dl class="form">
|
2012-10-05 05:05:49 +02:00
|
|
|
<dt data-element="nickname">
|
2013-02-28 16:27:14 +01:00
|
|
|
<?php p($l->t('Nickname')); ?>
|
2012-09-17 16:15:31 +02:00
|
|
|
</dt>
|
2012-10-05 05:05:49 +02:00
|
|
|
<dd data-element="nickname" class="propertycontainer">
|
2013-02-28 16:27:14 +01:00
|
|
|
<input class="value tooltipped rightwards onfocus" type="text" name="value" value="{nickname}" title="<?php p($l->t('Enter nickname')); ?>" required />
|
|
|
|
<a role="button" class="action delete" title="<?php p($l->t('Delete')); ?>"></a>
|
2012-09-17 16:15:31 +02:00
|
|
|
</dd>
|
2012-10-05 05:05:49 +02:00
|
|
|
<dt data-element="title">
|
2013-02-28 16:27:14 +01:00
|
|
|
<?php p($l->t('Title')); ?>
|
2012-09-17 16:15:31 +02:00
|
|
|
</dt>
|
2012-10-05 05:05:49 +02:00
|
|
|
<dd data-element="title" class="propertycontainer">
|
2013-02-28 16:27:14 +01:00
|
|
|
<input class="value tooltipped rightwards onfocus" type="text" name="value" value="{title}" title="<?php p($l->t('Enter title')); ?>" required />
|
|
|
|
<a role="button" class="action delete" title="<?php p($l->t('Delete')); ?>"></a>
|
2012-09-17 16:15:31 +02:00
|
|
|
</dd>
|
2012-10-05 05:05:49 +02:00
|
|
|
<dt data-element="org">
|
2013-02-28 16:27:14 +01:00
|
|
|
<?php p($l->t('Organization')); ?>
|
2012-09-17 16:15:31 +02:00
|
|
|
</dt>
|
2012-10-05 05:05:49 +02:00
|
|
|
<dd data-element="org" class="propertycontainer">
|
2013-02-28 16:27:14 +01:00
|
|
|
<input class="value tooltipped rightwards onfocus" type="text" name="value" value="{org}" title="<?php p($l->t('Enter organization')); ?>" required />
|
|
|
|
<a role="button" class="action delete" title="<?php p($l->t('Delete')); ?>"></a>
|
2012-09-17 16:15:31 +02:00
|
|
|
</dd>
|
2012-10-05 05:05:49 +02:00
|
|
|
<dt data-element="bday">
|
2013-02-28 16:27:14 +01:00
|
|
|
<?php p($l->t('Birthday')); ?>
|
2012-09-17 16:15:31 +02:00
|
|
|
</dt>
|
2012-10-05 05:05:49 +02:00
|
|
|
<dd data-element="bday" class="propertycontainer">
|
2012-12-10 20:58:34 +01:00
|
|
|
<input class="value tooltipped rightwards onfocus" type="text" name="value" value="{bday}" required />
|
2013-02-28 16:27:14 +01:00
|
|
|
<a role="button" class="action delete" title="<?php p($l->t('Delete')); ?>"></a>
|
2012-09-17 16:15:31 +02:00
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
</div>
|
2012-10-05 05:05:49 +02:00
|
|
|
</li>
|
|
|
|
<li>
|
2012-09-17 16:15:31 +02:00
|
|
|
<ul class="email propertylist hidden">
|
|
|
|
</ul>
|
2012-10-05 05:05:49 +02:00
|
|
|
</li>
|
|
|
|
<li>
|
2012-09-17 16:15:31 +02:00
|
|
|
<ul class="tel propertylist hidden">
|
|
|
|
</ul>
|
2012-10-05 05:05:49 +02:00
|
|
|
</li>
|
|
|
|
<li>
|
2012-09-17 16:15:31 +02:00
|
|
|
<ul class="adr propertylist hidden">
|
|
|
|
</ul>
|
2012-10-05 05:05:49 +02:00
|
|
|
</li>
|
|
|
|
<li>
|
2012-09-17 16:15:31 +02:00
|
|
|
<ul class="url propertylist hidden">
|
|
|
|
</ul>
|
2012-10-05 05:05:49 +02:00
|
|
|
</li>
|
|
|
|
<li>
|
2012-09-17 16:15:31 +02:00
|
|
|
<ul class="impp propertylist hidden">
|
|
|
|
</ul>
|
2012-10-05 05:05:49 +02:00
|
|
|
</li>
|
|
|
|
<li>
|
2012-12-10 00:04:06 +01:00
|
|
|
<section class="note propertycontainer" data-element="note">
|
2013-02-28 16:27:14 +01:00
|
|
|
<textarea class="value" placeholder="<?php p($l->t('Notes go here...')); ?>">{note}</textarea>
|
2012-10-05 05:05:49 +02:00
|
|
|
</section>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<footer>
|
2013-02-28 16:27:14 +01:00
|
|
|
<button class="cancel action text tooltipped downwards" title="<?php p($l->t('Cancel')); ?>"><?php p($l->t('Cancel')); ?></button>
|
|
|
|
<button class="close text tooltipped downwards" title="<?php p($l->t('Close')); ?>"><?php p($l->t('Close')); ?></button>
|
|
|
|
<button class="export action text tooltipped downwards" title="<?php p($l->t('Export as VCF')); ?>"><?php p($l->t('Download')); ?></button>
|
2013-02-27 14:22:10 +01:00
|
|
|
<select class="add action text button" id="addproperty">
|
2013-02-28 16:27:14 +01:00
|
|
|
<option value=""><?php p($l->t('Add')); ?></option>
|
|
|
|
<option value="ORG"><?php p($l->t('Organization')); ?></option>
|
|
|
|
<option value="TITLE"><?php p($l->t('Title')); ?></option>
|
|
|
|
<option value="NICKNAME"><?php p($l->t('Nickname')); ?></option>
|
|
|
|
<option value="BDAY"><?php p($l->t('Birthday')); ?></option>
|
|
|
|
<option value="TEL"><?php p($l->t('Phone')); ?></option>
|
|
|
|
<option value="EMAIL"><?php p($l->t('Email')); ?></option>
|
|
|
|
<option value="IMPP"><?php p($l->t('Instant Messaging')); ?></option>
|
|
|
|
<option value="ADR"><?php p($l->t('Address')); ?></option>
|
|
|
|
<option value="NOTE"><?php p($l->t('Note')); ?></option>
|
|
|
|
<option value="URL"><?php p($l->t('Web site')); ?></option>
|
2012-12-10 20:58:34 +01:00
|
|
|
</select>
|
2013-02-28 16:27:14 +01:00
|
|
|
<button class="delete action text float right tooltipped downwards" title="<?php p($l->t('Delete contact')); ?>"><?php p($l->t('Delete')); ?></button>
|
2012-10-05 05:05:49 +02:00
|
|
|
</footer>
|
2012-12-10 00:04:06 +01:00
|
|
|
</section>
|
2012-10-05 05:05:49 +02:00
|
|
|
</form>
|
2012-09-17 16:15:31 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<script id="contactDetailsTemplate" class="hidden" type="text/template">
|
2013-04-03 16:52:56 +02:00
|
|
|
<div class="email" type="text/template">
|
2012-09-17 16:15:31 +02:00
|
|
|
<li data-element="email" data-checksum="{checksum}" class="propertycontainer">
|
2012-12-10 20:58:34 +01:00
|
|
|
<span class="parameters">
|
|
|
|
<select class="rtl type parameter" data-parameter="TYPE" name="parameters[TYPE][]">
|
2013-03-02 00:13:51 +01:00
|
|
|
<?php print_unescaped(OCP\html_select_options($_['email_types'], array())) ?>
|
2012-12-10 20:58:34 +01:00
|
|
|
</select>
|
2013-02-28 17:21:45 +01:00
|
|
|
<input type="checkbox" class="parameter tooltipped rightwards" data-parameter="TYPE" name="parameters[TYPE][]" value="PREF" title="<?php p($l->t('Preferred')); ?>" />
|
2012-12-10 20:58:34 +01:00
|
|
|
</span>
|
2013-02-28 16:27:14 +01:00
|
|
|
<input type="email" class="nonempty value" name="value" value="{value}" x-moz-errormessage="<?php p($l->t('Please specify a valid email address.')); ?>" placeholder="<?php p($l->t('someone@example.com')); ?>" required />
|
2012-10-15 21:33:21 +02:00
|
|
|
<span class="listactions">
|
2013-02-28 16:27:14 +01:00
|
|
|
<a class="action mail tooltipped leftwards" title="<?php p($l->t('Mail to address')); ?>"></a>
|
|
|
|
<a role="button" class="action delete tooltipped leftwards" title="<?php p($l->t('Delete email address')); ?>"></a>
|
2012-10-15 21:33:21 +02:00
|
|
|
</span>
|
2012-09-17 16:15:31 +02:00
|
|
|
</li>
|
|
|
|
</div>
|
2013-04-03 16:52:56 +02:00
|
|
|
<div class="tel" type="text/template">
|
2012-09-17 16:15:31 +02:00
|
|
|
<li data-element="tel" data-checksum="{checksum}" class="propertycontainer">
|
2012-12-10 20:58:34 +01:00
|
|
|
<span class="parameters">
|
|
|
|
<select class="rtl type parameter" data-parameter="TYPE" name="parameters[TYPE][]">
|
2013-02-28 17:21:45 +01:00
|
|
|
<?php print_unescaped(OCP\html_select_options($_['phone_types'], array())) ?>
|
2012-12-10 20:58:34 +01:00
|
|
|
</select>
|
2013-02-28 17:21:45 +01:00
|
|
|
<input type="checkbox" class="parameter tooltipped rightwards" data-parameter="TYPE" name="parameters[TYPE][]" value="PREF" title="<?php p($l->t('Preferred')); ?>" />
|
2012-12-10 20:58:34 +01:00
|
|
|
</span>
|
2013-02-28 16:27:14 +01:00
|
|
|
<input type="tel" class="nonempty value" name="value" value="{value}" placeholder="<?php p($l->t('Enter phone number')); ?>" required />
|
2012-09-17 16:15:31 +02:00
|
|
|
<span class="listactions">
|
2013-02-28 16:27:14 +01:00
|
|
|
<a role="button" class="action delete tooltipped leftwards" title="<?php p($l->t('Delete phone number')); ?>"></a>
|
2012-10-15 21:33:21 +02:00
|
|
|
</span>
|
2012-09-17 16:15:31 +02:00
|
|
|
</li>
|
|
|
|
</div>
|
2013-04-03 16:52:56 +02:00
|
|
|
<div class="url" type="text/template">
|
2012-09-17 16:15:31 +02:00
|
|
|
<li data-element="url" data-checksum="{checksum}" class="propertycontainer">
|
2012-12-10 20:58:34 +01:00
|
|
|
<span class="parameters">
|
|
|
|
<select class="rtl type parameter" data-parameter="TYPE" name="parameters[TYPE][]">
|
2013-02-28 17:21:45 +01:00
|
|
|
<?php print_unescaped(OCP\html_select_options($_['email_types'], array())) ?>
|
2012-12-10 20:58:34 +01:00
|
|
|
</select>
|
2013-02-28 17:21:45 +01:00
|
|
|
<input type="checkbox" class="parameter tooltipped rightwards" data-parameter="TYPE" name="parameters[TYPE][]" value="PREF" title="<?php p($l->t('Preferred')); ?>" />
|
2012-12-10 20:58:34 +01:00
|
|
|
</span>
|
2012-10-23 06:54:19 +02:00
|
|
|
<input type="url" class="nonempty value" name="value" value="{value}" placeholder="http://www.example.com/" required />
|
2012-09-17 16:15:31 +02:00
|
|
|
<span class="listactions">
|
2013-02-28 16:27:14 +01:00
|
|
|
<a role="button" class="action globe tooltipped leftwards" title="<?php p($l->t('Go to web site')); ?>">
|
|
|
|
<a role="button" class="action delete tooltipped leftwards" title="<?php p($l->t('Delete URL')); ?>"></a>
|
2012-10-15 21:33:21 +02:00
|
|
|
</span>
|
2012-09-17 16:15:31 +02:00
|
|
|
</li>
|
|
|
|
</div>
|
2013-04-03 16:52:56 +02:00
|
|
|
<div class="adr" type="text/template">
|
2013-02-28 16:53:43 +01:00
|
|
|
<li data-element="adr" data-checksum="{checksum}" data-lang="<?php p(OCP\Config::getUserValue(OCP\USER::getUser(), 'core', 'lang', 'en')); ?>" class="propertycontainer">
|
2012-11-22 08:17:57 +01:00
|
|
|
<span class="float display">
|
2012-12-10 20:58:34 +01:00
|
|
|
<label class="meta parameters"></label>
|
2012-11-22 08:17:57 +01:00
|
|
|
<span class="adr">{value}</span>
|
|
|
|
</span>
|
2012-09-17 16:15:31 +02:00
|
|
|
<span class="listactions">
|
2013-02-28 16:27:14 +01:00
|
|
|
<a class="action globe tooltipped leftwards" title="<?php p($l->t('View on map')); ?>"></a>
|
|
|
|
<a class="action delete tooltipped leftwards" title="<?php p($l->t('Delete address')); ?>"></a>
|
2012-10-15 21:33:21 +02:00
|
|
|
</span>
|
2012-12-10 20:58:34 +01:00
|
|
|
<fieldset class="adr hidden editor">
|
2012-11-22 00:22:12 +01:00
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<select class="rtl type parameter" data-parameter="TYPE" name="parameters[TYPE][]">
|
2013-02-28 17:21:45 +01:00
|
|
|
<?php print_unescaped(OCP\html_select_options($_['adr_types'], array())) ?>
|
2012-11-22 00:22:12 +01:00
|
|
|
</select>
|
2013-02-28 17:21:45 +01:00
|
|
|
<input type="checkbox" id="adr_pref_{idx}" class="parameter tooltipped downwards" data-parameter="TYPE" name="parameters[TYPE][]" value="PREF" title="<?php p($l->t('Preferred')); ?>" /><label for="adr_pref_{idx}"><?php p($l->t('Preferred')); ?></label>
|
2012-11-22 00:22:12 +01:00
|
|
|
</li>
|
|
|
|
<li>
|
2012-12-10 20:58:34 +01:00
|
|
|
<input class="value stradr tooltipped rightwards onfocus" type="text" id="adr_2" name="value[2]" value="{adr2}"
|
2013-02-28 16:27:14 +01:00
|
|
|
placeholder="<?php p($l->t('1 Main Street')); ?>"
|
|
|
|
title="<?php p($l->t('Street address')); ?>" />
|
2012-11-22 00:22:12 +01:00
|
|
|
</li>
|
|
|
|
<li>
|
2012-12-10 20:58:34 +01:00
|
|
|
<input class="value zip tooltipped rightwards onfocus" type="text" id="adr_5" name="value[5]" value="{adr5}"
|
2013-02-28 16:27:14 +01:00
|
|
|
placeholder="<?php p($l->t('12345')); ?>"
|
|
|
|
title="<?php p($l->t('Postal code')); ?>" />
|
2012-12-10 20:58:34 +01:00
|
|
|
<input class="value city tooltipped rightwards onfocus" type="text" id="adr_3" name="value[3]" value="{adr3}"
|
2013-02-28 16:27:14 +01:00
|
|
|
placeholder="<?php p($l->t('Your city')); ?>"
|
|
|
|
title="<?php p($l->t('City')); ?>" />
|
2012-11-22 00:22:12 +01:00
|
|
|
</li>
|
|
|
|
<li>
|
2012-12-10 20:58:34 +01:00
|
|
|
<input class="value region tooltipped rightwards onfocus" type="text" id="adr_4" name="value[4]" value="{adr4}"
|
2013-02-28 16:27:14 +01:00
|
|
|
placeholder="<?php p($l->t('Some region')); ?>"
|
|
|
|
title="<?php p($l->t('State or province')); ?>" />
|
2012-11-22 00:22:12 +01:00
|
|
|
</li>
|
|
|
|
<li>
|
2012-12-10 20:58:34 +01:00
|
|
|
<input class="value country tooltipped rightwards onfocus" type="text" id="adr_6" name="value[6]" value="{adr6}"
|
2013-02-28 16:27:14 +01:00
|
|
|
placeholder="<?php p($l->t('Your country')); ?>"
|
|
|
|
title="<?php p($l->t('Country')); ?>" />
|
2012-11-22 00:22:12 +01:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<input class="value pobox" type="hidden" id="adr_0" name="value[0]" value="{adr0}" />
|
|
|
|
<input class="value extadr" type="hidden" id="adr_1" name="value[1]" value="{adr1}" />
|
|
|
|
</fieldset>
|
2012-09-17 16:15:31 +02:00
|
|
|
</li>
|
|
|
|
</div>
|
2013-04-03 16:52:56 +02:00
|
|
|
<div class="impp" type="text/template">
|
2012-09-17 16:15:31 +02:00
|
|
|
<li data-element="impp" data-checksum="{checksum}" class="propertycontainer">
|
2012-12-10 20:58:34 +01:00
|
|
|
<span class="parameters">
|
|
|
|
<select class="type parameter" data-parameter="TYPE" name="parameters[TYPE][]">
|
2013-02-28 17:21:45 +01:00
|
|
|
<?php print_unescaped(OCP\html_select_options($_['impp_types'], array())) ?>
|
2012-12-10 20:58:34 +01:00
|
|
|
</select>
|
2013-02-28 17:21:45 +01:00
|
|
|
<input type="checkbox" class="parameter impp tooltipped downwards" name="parameters[TYPE][]" value="PREF" title="<?php p($l->t('Preferred')); ?>" />
|
2012-12-11 23:40:53 +01:00
|
|
|
</span>
|
2012-12-10 20:58:34 +01:00
|
|
|
<div class="select_wrapper">
|
2012-12-11 23:40:53 +01:00
|
|
|
<select class="ltr parameter label impp" data-parameter="X-SERVICE-TYPE" name="parameters[X-SERVICE-TYPE]">
|
2013-02-28 17:21:45 +01:00
|
|
|
<?php print_unescaped(OCP\html_select_options($_['im_protocols'], array())) ?>
|
2012-12-10 20:58:34 +01:00
|
|
|
</select>
|
|
|
|
</div>
|
2012-10-23 06:54:19 +02:00
|
|
|
<input type="text" class="nonempty value" name="value" value="{value}"
|
2013-02-28 17:21:45 +01:00
|
|
|
placeholder="<?php p($l->t('Instant Messenger')); ?>" required />
|
2012-10-15 21:33:21 +02:00
|
|
|
<span class="listactions">
|
2013-02-28 16:27:14 +01:00
|
|
|
<a role="button" class="action delete tooltipped leftwards" title="<?php p($l->t('Delete IM')); ?>"></a>
|
2012-10-15 21:33:21 +02:00
|
|
|
</span>
|
2012-09-17 16:15:31 +02:00
|
|
|
</li>
|
|
|
|
</div>
|
|
|
|
</script>
|
2012-12-07 14:57:11 +01:00
|
|
|
|
|
|
|
<script id="addressbookTemplate" class="hidden" type="text/template">
|
|
|
|
<li data-id="{id}">
|
|
|
|
<label class="float">{displayname}</label>
|
|
|
|
<span class="actions">
|
2013-02-28 16:27:14 +01:00
|
|
|
<a title="<?php p($l->t('Share')); ?>" class="share action" data-possible-permissions="{permissions}" data-item="{id}" data-item-type="addressbook"></a>
|
2013-02-28 16:53:51 +01:00
|
|
|
<a title="<?php p($l->t('Export')); ?>" class="download action" href="<?php print_unescaped(OCP\Util::linkTo('contacts', 'export.php')); ?>?bookid={id}"></a>
|
2013-02-28 16:27:14 +01:00
|
|
|
<a title="<?php p($l->t('CardDAV link')); ?>" class="globe action"></a>
|
|
|
|
<a title="<?php p($l->t('Delete')); ?>" class="delete action"></a>
|
2012-12-07 14:57:11 +01:00
|
|
|
</span></li>
|
|
|
|
</script>
|