Blame view
sources/apps/contacts/templates/contacts.php
26.7 KB
|
6d9380f96
|
1 2 3 |
<?php use OCA\Contacts\ImportManager; ?> |
|
d1bafeea1
|
4 5 |
<div id="app"> <div id="app-navigation" class="loading"> |
|
6d9380f96
|
6 |
<ul id="grouplist" class="hidden-on-load"> |
|
d1bafeea1
|
7 8 |
<li class="special"> <a role="button" class="add-contact"> |
|
6d9380f96
|
9 |
<?php p($l->t('New contact')); ?>
|
|
d1bafeea1
|
10 11 12 |
</a> </li> <li class="special"> |
|
6d9380f96
|
13 |
<input class="add-group hidden" type="text" tabindex="0" autofocus placeholder="<?php p($l->t('Group name')); ?>" title="<?php p($l->t('New group')); ?>" />
|
|
d1bafeea1
|
14 15 16 17 18 19 20 21 22 23 24 25 |
</li>
</ul>
<div id="app-settings">
<div id="app-settings-header">
<button class="settings-button" tabindex="0"></button>
</div>
<div id="app-settings-content">
<div id="addressbooks">
<h2 data-id="addressbooks" tabindex="0" role="button"><?php p($l->t('Address books')); ?></h2>
<ul class="addressbooklist">
</ul>
<input type="text" tabindex="0" autofocus id="add-address-book" placeholder="<?php p($l->t('Display name')); ?>" title="<?php p($l->t('Add Address Book')); ?>" />
|
|
6d9380f96
|
26 27 28 29 30 31 32 33 34 |
<?php
if (\OCP\Config::getAppValue('contacts', 'backend_ldap', "false") === "true") {
?>
<ul class="oc-addnew">
<li id="add-ldap-address-book-element"><a class="oc-addnew-init"><?php p($l->t('Add LDAP Address Book')); ?></a></li>
</ul>
<?php
}
?>
|
|
d1bafeea1
|
35 36 37 38 39 40 41 42 |
</div>
<div id="import">
<h2 data-id="import" tabindex="0" role="button"><?php p($l->t('Import')); ?></h2>
<ul>
<li class="import-upload">
<select id="import_into">
<option value="-1"><?php p($l->t('Import into...')); ?></option>
</select>
|
|
6d9380f96
|
43 44 45 46 47 48 49 50 51 52 53 |
<select id="import_format">
<option value="automatic"><?php p($l->t('Automatic format')); ?></option>
<?php
$importManager = new ImportManager();
$types = $importManager->getTypes();
foreach ($types as $id => $label) {
echo "<option value=\"$id\">$label</option>";
}
?>
</select>
<button class="icon-upload svg tooltipped rightwards import-upload-button" title="<?php p($l->t('Select file...')); ?>"></button>
|
|
d1bafeea1
|
54 55 56 57 58 59 60 61 62 63 64 65 |
<input id="import_upload_start" class="tooltipped rightwards" title="<?php p($l->t('Select file...')); ?>" type="file" accept="text/vcard,text/x-vcard,text/directory" name="file" disabled />
</li>
<li class="import-status">
<label id="import-status-text"></label>
<div id="import-status-progress"></div>
</li>
</ul>
</div>
</div> <!-- app-settings-content -->
</div>
</div>
<div id="app-content" class="loading">
|
|
d1bafeea1
|
66 67 |
<table id="contactlist"> <thead> |
|
6d9380f96
|
68 |
<tr id="contactsHeader" class="hidden-on-load"> |
|
d1bafeea1
|
69 |
<td class="name"> |
|
6d9380f96
|
70 71 72 |
<span class="actions_left">
<input type="checkbox" class="toggle" id="select_all" title="<?php p($l->t('(De-)select all')); ?>" />
<label for="select_all"></label>
|
|
d1bafeea1
|
73 74 75 76 77 |
<select class="action sort permanent" name="sort" title="<?php p($l->t('Sort order')); ?>">
<option value="fn"><?php p($l->t('Display name')); ?></option>
<option value="fl"><?php p($l->t('First- Lastname')); ?></option>
<option value="lf"><?php p($l->t('Last-, Firstname')); ?></option>
</select>
|
|
6d9380f96
|
78 79 80 81 82 83 84 85 86 87 88 89 90 |
</span>
<span class="actions">
<a class="icon-delete delete svg action text permanent">
<?php p($l->t('Delete')); ?>
<img class="svg" alt="<?php p($l->t('Delete'))?>" src="<?php print_unescaped(OCP\image_path("core", "actions/delete.svg")); ?>" />
</a>
<select class="groups svg action text permanent shared" name="groups">
<option value="-1" disabled="disabled" selected="selected"><?php p($l->t('Groups')); ?></option>
</select>
<a class="icon-download download svg action text permanent"><?php p($l->t('Download')); ?></a>
<a class="icon-rename action svg text permanent merge edit"><?php p($l->t('Merge')); ?></a>
</span>
|
|
d1bafeea1
|
91 |
</td> |
|
6d9380f96
|
92 93 94 95 |
<td class="info email"><?php p($l->t('Email')); ?></td>
<td class="info tel"><?php p($l->t('Phone')); ?></td>
<td class="info adr"><?php p($l->t('Address')); ?></td>
<td class="info categories"><?php p($l->t('Group')); ?></td>
|
|
d1bafeea1
|
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 |
</tr>
</thead>
<tbody>
</tbody>
</table>
<div class="hidden popup" id="ninjahelp">
<a class="close" tabindex="0" role="button" title="<?php p($l->t('Close')); ?>"></a>
<h2><?php p($l->t('Keyboard shortcuts')); ?></h2>
<div class="help-section">
<h3><?php p($l->t('Navigation')); ?></h3>
<dl>
<dt>j/Down</dt>
<dd><?php p($l->t('Next contact in list')); ?></dd>
<dt>k/Up</dt>
<dd><?php p($l->t('Previous contact in list')); ?></dd>
<dt>o</dt>
<dd><?php p($l->t('Expand/collapse current addressbook')); ?></dd>
<dt>n/PageDown</dt>
<dd><?php p($l->t('Next addressbook')); ?></dd>
<dt>p/PageUp</dt>
<dd><?php p($l->t('Previous addressbook')); ?></dd>
</dl>
</div>
<div class="help-section">
<h3><?php p($l->t('Actions')); ?></h3>
<dl>
<dt>r</dt>
<dd><?php p($l->t('Refresh contacts list')); ?></dd>
<dt>a</dt>
<dd><?php p($l->t('Add new contact')); ?></dd>
<!-- dt>Shift-a</dt>
<dd><?php p($l->t('Add new addressbook')); ?></dd -->
<dt>Shift-Delete</dt>
<dd><?php p($l->t('Delete current contact')); ?></dd>
</dl>
</div>
</div>
<div id="firstrun" class="hidden">
<div>
|
|
6d9380f96
|
135 136 137 138 139 |
<h3><?php p($l->t('You have no contacts in your address book or your address book is disabled.')); ?></h3>
<p><?php p($l->t('Add a new contact or import existing contacts from a file (VCF, CSV or LDIF).')); ?></p>
<div id="selections">
<input type="button" class="add-contact text" value="<?php p($l->t('New contact')) ?>">
</div>
|
|
d1bafeea1
|
140 141 |
</div> </div> |
|
6d9380f96
|
142 |
<form class="float" name="file_upload_form" id="file_upload_form" method="PUT" target="file_upload_target"> |
|
d1bafeea1
|
143 144 |
<input type="hidden" name="requesttoken" value="<?php p($_['requesttoken']) ?>"> <input type="hidden" name="MAX_FILE_SIZE" value="<?php p($_['uploadMaxFilesize']) ?>" id="max_upload"> |
|
6d9380f96
|
145 |
<input type="hidden" name="max_human_file_size" value="<?php p($_['uploadMaxHumanFilesize']); ?>"> |
|
d1bafeea1
|
146 147 148 149 150 151 152 153 154 155 |
<input id="contactphoto_fileupload" type="file" accept="image/*" name="imagefile" /> </form> <iframe name="file_upload_target" id='file_upload_target' src=""></iframe> </div> <!-- app-content --> </div> <!-- app --> <script id="cropBoxTemplate" type="text/template"> <form id="cropform" class="coords" method="post" enctype="multipart/form-data" |
|
d1bafeea1
|
156 |
> |
|
d1bafeea1
|
157 158 159 160 161 162 163 |
<fieldset id="coords"> <input type="hidden" id="x" name="x" value="" /> <input type="hidden" id="y" name="y" value="" /> <input type="hidden" id="w" name="w" value="" /> <input type="hidden" id="h" name="h" value="" /> </fieldset> </form> |
|
d1bafeea1
|
164 165 166 167 168 169 170 171 172 173 174 175 |
</script>
<script id="addGroupTemplate" type="text/template">
<div id="dialog-form" title="<?php p($l->t('Add group')); ?>">
<fieldset>
<input type="text" name="name" id="name" />
</fieldset>
</div>
</script>
<script id="groupListItemTemplate" type="text/template">
<li class="group" data-type="{type}" data-id="{id}">
|
|
6d9380f96
|
176 |
<a class="name" title="{name}" role="button">{name}</a>
|
|
d1bafeea1
|
177 |
<span class="utils"> |
|
6d9380f96
|
178 179 |
<a class="icon-delete action delete tooltipped rightwards"></a> <a class="icon-rename action edit tooltipped rightwards"></a> |
|
d1bafeea1
|
180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 |
<span class="action numcontacts">{num}</span>
</span>
</li>
</script>
<script id="mergeContactsTemplate" type="text/template">
<div id="dialog-merge-contacts" title="<?php p($l->t('Merge contacts')); ?>">
<p><?php p($l->t('Which contact should the data be merged into?')); ?></p>
<fieldset>
<ul class="mergelist">
<li><input id="mergee_{idx}" type="radio" name="contact" value="{id}"><label for="mergee_{idx}" >{displayname}</label></li>
</ul>
</fieldset>
<p>
<input type="checkbox" id="delete_other" name="delete_other" />
<label for="delete_other"><?php p($l->t('Delete the other(s) after successful merge?')); ?></label>
</p>
</div>
</script>
<script id="contactListItemTemplate" type="text/template">
<tr class="contact" data-id="{id}" data-parent="{parent}" data-backend="{backend}">
<td class="name thumbnail">
|
|
6d9380f96
|
203 204 205 206 |
<input type="checkbox" id="select-{id}" name="id" value="{id}" />
<label for="select-{id}"></label>
<div class="avatar"></div>
<a href="#{id}" class="nametext">{name}</a>
|
|
d1bafeea1
|
207 208 209 |
</td>
<td class="email">
<a href="mailto:{email}">{email}</a>
|
|
6d9380f96
|
210 |
<a class="icon-mail svg mailto hidden" title="<?php p($l->t('Compose mail')); ?>"></a>
|
|
d1bafeea1
|
211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 |
</td>
<td class="tel">{tel}</td>
<td class="adr">{adr}</td>
<td class="categories">{categories}</td>
</tr>
</script>
<script id="contactDragItemTemplate" type="text/template">
<div class="dragContact thumbnail" data-id="{id}">
{name}
</div>
</script>
<script id="contactFullTemplate" type="text/template">
<tr><td colspan="6">
<form action="<?php print_unescaped(OCP\Util::linkTo('contacts', 'index.php')); ?>" method="post" enctype="multipart/form-data">
<section id="contact" data-id="{id}">
|
|
6d9380f96
|
228 229 230 231 232 233 |
<header>
<a class="delete">
<?php p($l->t('Delete')); ?>
<img class="svg" alt="<?php p($l->t('Delete'))?>" src="<?php print_unescaped(OCP\image_path("core", "actions/delete.svg")); ?>" />
</a>
</header>
|
|
d1bafeea1
|
234 235 236 237 |
<ul> <li> <div id="photowrapper" class="propertycontainer" data-element="photo"> <ul id="phototools" class="transparent hidden"> |
|
6d9380f96
|
238 239 240 241 |
<li><a class="svg icon-delete action delete" title="<?php echo $l->t('Delete current photo'); ?>"></a></li>
<li><a class="svg icon-rename action edit" title="<?php echo $l->t('Edit current photo'); ?>"></a></li>
<li><a class="svg icon-upload action upload" title="<?php echo $l->t('Upload new photo'); ?>"></a></li>
<li><a class="svg icon-folder action cloud icon-cloud" title="<?php echo $l->t('Select photo from Files'); ?>"></a></li>
|
|
d1bafeea1
|
242 |
</ul> |
|
6d9380f96
|
243 |
<a class="favorite {favorite} tooltipped" title="<?php echo $l->t('Favorite'); ?>"></a>
|
|
d1bafeea1
|
244 245 |
</div> <div class="singleproperties"> |
|
6d9380f96
|
246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 |
<h3><?php p($l->t('Name')); ?></h3>
<label class="propertyname"></label>
<input data-element="fn" class="fullname value propertycontainer" type="text" name="value" value="{name}" placeholder="<?php p($l->t('Name')); ?>" required />
<a class="icon-rename action edit"></a>
<fieldset class="n hidden editor propertycontainer" data-element="n">
<ul>
<li>
<input class="value rightwards onfocus" type="text" id="n_1" name="value[1]" value="{n1}"
placeholder="<?php p($l->t('First name')); ?>" />
</li>
<li>
<input class="value rightwards onfocus" type="text" id="n_2" name="value[2]" value="{n2}"
placeholder="<?php p($l->t('Additional names')); ?>" />
</li>
<li>
<input class="value rightwards onfocus" type="text" id="n_0" name="value[0]" value="{n0}"
placeholder="<?php p($l->t('Last name')); ?>" />
</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>
|
|
d1bafeea1
|
268 |
</div> |
|
6d9380f96
|
269 270 271 272 273 274 |
<div class="singleproperties">
<div class="groupscontainer propertycontainer" data-element="categories">
<h3><?php p($l->t('Groups')); ?></h3>
<label class="propertyname"></label>
<select class="hidden" id="contactgroups" name="value" multiple></select>
</div>
|
|
d1bafeea1
|
275 |
</div> |
|
6d9380f96
|
276 277 278 279 280 281 282 283 |
<div class="singleproperties">
<div class="addressbookcontainer propertycontainer" data-element="categories">
<h3><?php p($l->t('Address book')); ?></h3>
<label class="propertyname"></label>
<select class="hidden" id="contactaddressbooks" name="value"></select>
</div>
</div>
<div class="singleproperties">
|
|
d1bafeea1
|
284 |
<dd data-element="nickname" class="propertycontainer"> |
|
6d9380f96
|
285 286 287 288 289 290 |
<h3><?php p($l->t('Nickname')); ?></h3>
<label class="propertyname"></label>
<input class="value rightwards onfocus" type="text" name="value" value="{nickname}" required />
<span class="listactions">
<a role="button" class="icon-delete action delete"></a>
</span>
|
|
d1bafeea1
|
291 |
</dd> |
|
6d9380f96
|
292 293 |
</div> <div class="singleproperties"> |
|
d1bafeea1
|
294 |
<dd data-element="title" class="propertycontainer"> |
|
6d9380f96
|
295 296 297 298 299 300 |
<h3><?php p($l->t('Title')); ?></h3>
<label class="propertyname"></label>
<input class="value rightwards onfocus" type="text" name="value" value="{title}" required />
<span class="listactions">
<a role="button" class="icon-delete action delete"></a>
</span>
|
|
d1bafeea1
|
301 |
</dd> |
|
6d9380f96
|
302 303 |
</div> <div class="singleproperties"> |
|
d1bafeea1
|
304 |
<dd data-element="org" class="propertycontainer"> |
|
6d9380f96
|
305 306 307 308 309 310 |
<h3><?php p($l->t('Organization')); ?></h3>
<label class="propertyname"></label>
<input class="value rightwards onfocus" type="text" name="value" value="{org}" required />
<span class="listactions">
<a role="button" class="icon-delete action delete"></a>
</span>
|
|
d1bafeea1
|
311 |
</dd> |
|
6d9380f96
|
312 313 |
</div> <div class="singleproperties"> |
|
d1bafeea1
|
314 |
<dd data-element="bday" class="propertycontainer"> |
|
6d9380f96
|
315 316 317 318 319 320 |
<h3><?php p($l->t('Birthday')); ?></h3>
<label class="propertyname"></label>
<input class="value rightwards onfocus" type="text" name="value" value="{bday}" required />
<span class="listactions">
<a role="button" class="icon-delete action delete"></a>
</span>
|
|
d1bafeea1
|
321 |
</dd> |
|
6d9380f96
|
322 |
</d> |
|
d1bafeea1
|
323 324 325 |
</li> <li> <ul class="email propertylist hidden"> |
|
6d9380f96
|
326 |
<h3><?php p($l->t('Email')); ?></h3>
|
|
d1bafeea1
|
327 328 329 330 |
</ul> </li> <li> <ul class="tel propertylist hidden"> |
|
6d9380f96
|
331 |
<h3><?php p($l->t('Phone')); ?></h3>
|
|
d1bafeea1
|
332 333 334 335 |
</ul> </li> <li> <ul class="adr propertylist hidden"> |
|
6d9380f96
|
336 |
<h3><?php p($l->t('Address')); ?></h3>
|
|
d1bafeea1
|
337 338 339 340 |
</ul> </li> <li> <ul class="url propertylist hidden"> |
|
6d9380f96
|
341 |
<h3><?php p($l->t('Website')); ?></h3>
|
|
d1bafeea1
|
342 343 344 345 |
</ul> </li> <li> <ul class="impp propertylist hidden"> |
|
6d9380f96
|
346 |
<h3><?php p($l->t('Instant messaging')); ?></h3>
|
|
d1bafeea1
|
347 348 349 |
</ul> </li> <li> |
|
6d9380f96
|
350 351 352 353 354 |
<ul class="notes propertylist">
<section class="note propertycontainer" data-element="note">
<textarea class="value" placeholder="<?php p($l->t('Notes go here...')); ?>">{note}</textarea>
</section>
</ul>
|
|
d1bafeea1
|
355 356 357 |
</li> </ul> <footer> |
|
d1bafeea1
|
358 359 360 361 362 363 364 365 366 367 368 369 370 |
<select class="add action text button" id="addproperty">
<option value=""><?php p($l->t('Add field...')); ?></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>
</select>
|
|
6d9380f96
|
371 372 373 374 375 376 377 378 379 380 381 382 |
<a class="cancel">
<?php p($l->t('Cancel')); ?>
<img class="svg" alt="<?php p($l->t('Cancel'))?>" src="<?php print_unescaped(OCP\image_path("core", "actions/close.svg")); ?>" />
</a>
<a class="close">
<?php p($l->t('Close')); ?>
<img class="svg" alt="<?php p($l->t('Close'))?>" src="<?php print_unescaped(OCP\image_path("core", "actions/checkmark.svg")); ?>" />
</a>
<a class="export">
<?php p($l->t('Download')); ?>
<img class="svg" alt="<?php p($l->t('Download'))?>" src="<?php print_unescaped(OCP\image_path("core", "actions/download.svg")); ?>" />
</a>
|
|
d1bafeea1
|
383 384 385 386 387 388 389 390 391 392 |
</footer>
</section>
</form>
</td></tr>
</script>
<script id="contactDetailsTemplate" class="hidden" type="text/template">
<div class="email" type="text/template">
<li data-element="email" data-checksum="{checksum}" class="propertycontainer">
<span class="parameters">
|
|
6d9380f96
|
393 |
<input type="checkbox" class="parameter tooltipped rightwards" data-parameter="TYPE" name="parameters[TYPE][]" value="PREF" title="<?php p($l->t('Preferred')); ?>" />
|
|
d1bafeea1
|
394 |
<select class="rtl type parameter" data-parameter="TYPE" name="parameters[TYPE][]"> |
|
6d9380f96
|
395 |
<?php print_unescaped(OCP\html_select_options($_['emailTypes'], array())) ?> |
|
d1bafeea1
|
396 |
</select> |
|
d1bafeea1
|
397 398 399 |
</span>
<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 />
<span class="listactions">
|
|
6d9380f96
|
400 401 |
<a class="icon-mail action mail tooltipped leftwards" title="<?php p($l->t('Mail to address')); ?>"></a>
<a role="button" class="icon-delete action delete tooltipped leftwards" title="<?php p($l->t('Delete email address')); ?>"></a>
|
|
d1bafeea1
|
402 403 404 405 406 407 |
</span>
</li>
</div>
<div class="tel" type="text/template">
<li data-element="tel" data-checksum="{checksum}" class="propertycontainer">
<span class="parameters">
|
|
6d9380f96
|
408 |
<input type="checkbox" class="parameter tooltipped rightwards" data-parameter="TYPE" name="parameters[TYPE][]" value="PREF" title="<?php p($l->t('Preferred')); ?>" />
|
|
d1bafeea1
|
409 |
<select class="rtl type parameter" data-parameter="TYPE" name="parameters[TYPE][]"> |
|
6d9380f96
|
410 |
<?php print_unescaped(OCP\html_select_options($_['phoneTypes'], array())) ?> |
|
d1bafeea1
|
411 |
</select> |
|
d1bafeea1
|
412 |
</span> |
|
6d9380f96
|
413 |
<input type="text" class="nonempty value" name="value" value="{value}" placeholder="<?php p($l->t('Enter phone number')); ?>" required />
|
|
d1bafeea1
|
414 |
<span class="listactions"> |
|
6d9380f96
|
415 |
<a role="button" class="icon-delete action delete tooltipped leftwards"></a> |
|
d1bafeea1
|
416 417 418 419 420 421 |
</span>
</li>
</div>
<div class="url" type="text/template">
<li data-element="url" data-checksum="{checksum}" class="propertycontainer">
<span class="parameters">
|
|
6d9380f96
|
422 |
<input type="checkbox" class="parameter tooltipped rightwards" data-parameter="TYPE" name="parameters[TYPE][]" value="PREF" title="<?php p($l->t('Preferred')); ?>" />
|
|
d1bafeea1
|
423 |
<select class="rtl type parameter" data-parameter="TYPE" name="parameters[TYPE][]"> |
|
6d9380f96
|
424 |
<?php print_unescaped(OCP\html_select_options($_['emailTypes'], array())) ?> |
|
d1bafeea1
|
425 |
</select> |
|
d1bafeea1
|
426 427 428 |
</span>
<input type="url" class="nonempty value" name="value" value="{value}" placeholder="http://www.example.com/" required />
<span class="listactions">
|
|
6d9380f96
|
429 430 |
<a role="button" class="icon-public action globe tooltipped leftwards" title="<?php p($l->t('Go to web site')); ?>">
<a role="button" class="icon-delete action delete tooltipped leftwards"></a>
|
|
d1bafeea1
|
431 432 433 434 435 |
</span>
</li>
</div>
<div class="adr" type="text/template">
<li data-element="adr" data-checksum="{checksum}" data-lang="<?php p(OCP\Config::getUserValue(OCP\USER::getUser(), 'core', 'lang', 'en')); ?>" class="propertycontainer">
|
|
6d9380f96
|
436 437 438 439 440 441 |
<span class="parameters">
<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')); ?>" />
<select class="type parameter" data-parameter="TYPE" name="parameters[TYPE][]">
<?php print_unescaped(OCP\html_select_options($_['adrTypes'], array())) ?>
</select>
</span>
|
|
d1bafeea1
|
442 |
<span class="float display"> |
|
d1bafeea1
|
443 444 445 |
<span class="adr">{value}</span>
</span>
<span class="listactions">
|
|
6d9380f96
|
446 447 |
<a class="icon-public action globe tooltipped leftwards" title="<?php p($l->t('View on map')); ?>"></a>
<a class="icon-delete action delete tooltipped leftwards"></a>
|
|
d1bafeea1
|
448 449 450 |
</span> <fieldset class="adr hidden editor"> <ul> |
|
6d9380f96
|
451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 |
<li><!-- Note to translators: The placeholders for address properties should be a well known address
so users can see where the data belongs according to https://tools.ietf.org/html/rfc2426#section-3.2.1 -->
<input class="value stradr tooltipped rightwards onfocus" type="text" id="adr_2" name="value[2]" value="{adr2}"
placeholder="<?php p($l->t('Street address')); ?>" />
</li>
<li>
<input class="value zip tooltipped rightwards onfocus" type="text" id="adr_5" name="value[5]" value="{adr5}"
placeholder="<?php p($l->t('Postal code')); ?>" />
<input class="value city tooltipped rightwards onfocus" type="text" id="adr_3" name="value[3]" value="{adr3}"
placeholder="<?php p($l->t('City')); ?>" />
</li>
<li>
<input class="value region tooltipped rightwards onfocus" type="text" id="adr_4" name="value[4]" value="{adr4}"
placeholder="<?php p($l->t('State or province')); ?>" />
</li>
<li>
<input class="value country tooltipped rightwards onfocus" type="text" id="adr_6" name="value[6]" value="{adr6}"
placeholder="<?php p($l->t('Country')); ?>" />
</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}" />
|
|
d1bafeea1
|
473 474 475 |
</fieldset> </li> </div> |
|
6d9380f96
|
476 477 |
<!--
<li data-element="adr" data-checksum="{checksum}" data-lang="<?php p(OCP\Config::getUserValue(OCP\USER::getUser(), 'core', 'lang', 'en')); ?>" class="propertycontainer">
|
|
d1bafeea1
|
478 |
<span class="parameters"> |
|
6d9380f96
|
479 |
<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')); ?>" />
|
|
d1bafeea1
|
480 |
<select class="type parameter" data-parameter="TYPE" name="parameters[TYPE][]"> |
|
6d9380f96
|
481 |
<?php print_unescaped(OCP\html_select_options($_['imppTypes'], array())) ?> |
|
d1bafeea1
|
482 |
</select> |
|
d1bafeea1
|
483 |
</span> |
|
6d9380f96
|
484 485 486 487 488 489 490 491 |
-->
<div class="impp" type="text/template">
<li data-element="impp" data-checksum="{checksum}" class="propertycontainer">
<span class="parameters">
<input type="checkbox" id="impp_pref_{idx}" class="parameter tooltipped downwards" data-parameter="TYPE" name="parameters[TYPE][]" value="PREF" title="<?php p($l->t('Preferred')); ?>" />
<select class="rtl type parameter" data-parameter="X-SERVICE-TYPE" name="parameters[X-SERVICE-TYPE]">
<?php print_unescaped(OCP\html_select_options($_['imProtocols'], array())) ?>
|
|
d1bafeea1
|
492 |
</select> |
|
6d9380f96
|
493 |
</span> |
|
d1bafeea1
|
494 495 496 |
<input type="text" class="nonempty value" name="value" value="{value}"
placeholder="<?php p($l->t('Instant Messenger')); ?>" required />
<span class="listactions">
|
|
6d9380f96
|
497 |
<a role="button" class="icon-delete action delete tooltipped leftwards"></a> |
|
d1bafeea1
|
498 499 500 |
</span> </li> </div> |
|
6d9380f96
|
501 502 503 |
|
|
d1bafeea1
|
504 505 506 507 508 509 510 |
</script>
<script id="addressBookTemplate" class="hidden" type="text/template">
<li data-id="{id}" data-backend="{backend}" data-permissions="{permissions}">
<input type="checkbox" name="active" checked="checked" title="<?php p($l->t('Active')); ?>" />
<label>{displayname}</label>
<span class="actions">
|
|
6d9380f96
|
511 512 513 514 515 |
<a title="<?php p($l->t('Share')); ?>" class="icon-share share action" data-possible-permissions="{permissions}" data-item="{id}" data-item-type="addressbook"></a>
<a title="<?php p($l->t('Export')); ?>" class="icon-download download action"></a>
<a title="<?php p($l->t('CardDAV link')); ?>" class="icon-public carddav action"></a>
<a title="<?php p($l->t('Edit')); ?>" class="icon-rename edit action"></a>
<a title="<?php p($l->t('Delete')); ?>" class="icon-delete delete action"></a>
|
|
d1bafeea1
|
516 517 518 |
</span> </li> </script> |
|
6d9380f96
|
519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 |
<script id="addressBookConfigTemplate" class="hidden" type="text/template">
<div id="addressbooks-ui-div" class="addressbooks-ui-class">
<input type="hidden" id="addressbooks-ui-addressbookid" />
<input type="hidden" id="addressbooks-ui-backend" value="{backend}" />
<p id="addressbooks-ui-name-p">
<label for="addressbooks-ui-name">
<?php p($l->t('Name')); ?>:
</label>
<input type="text" class="nonempty value" id="addressbooks-ui-name" value=""
placeholder="<?php p($l->t('Name')); ?>" required />
</p>
<p id="addressbooks-ui-uri-p">
<label for="addressbooks-ui-uri">
<?php p($l->t('Addressbook URI')); ?>:
</label>
<input type="text" class="nonempty value" id="addressbooks-ui-uri" value=""
placeholder="<?php p($l->t('URI')); ?>" required />
</p>
<p id="addressbooks-ui-description-p">
<label for="addressbooks-ui-description">
<?php p($l->t('Description')); ?>:
</label>
<input type="text" class="nonempty value" id="addressbooks-ui-description" value=""
placeholder="<?php p($l->t('Description')); ?>" />
</p>
<p id="addressbooks-ui-ldapurl-p">
<label for="addressbooks-ui-ldapurl">
<?php p($l->t('LDAP URL')); ?>:
</label>
<input type="text" class="nonempty value" id="addressbooks-ui-ldapurl" value=""
placeholder="<?php p($l->t('LDAP URL')); ?>" required />
</p>
<p id="addressbooks-ui-ldapanonymous-p">
<label for="addressbooks-ui-ldapanonymous">
<?php p($l->t('Anonymous')); ?>:
</label>
<input type="checkbox" id="addressbooks-ui-ldapanonymous" title="<?php p($l->t('Anonymous')); ?>" />
</p>
<p id="addressbooks-ui-ldapreadonly-p">
<label for="addressbooks-ui-ldapreadonly">
<?php p($l->t('Read-only')); ?>:
</label>
<input type="checkbox" id="addressbooks-ui-ldapreadonly" title="<?php p($l->t('Read-Only')); ?>" />
</p>
<p id="addressbooks-ui-ldapuser-p">
<label for="addressbooks-ui-ldapuser">
<?php p($l->t('User')); ?>:
</label>
<input type="text" class="nonempty value" id="addressbooks-ui-ldapuser" value=""
placeholder="<?php p($l->t('User')); ?>" required />
</p>
<p id="addressbooks-ui-ldappass-p">
<input type="hidden" id="addressbooks-ui-ldappass-modified" />
<label for="addressbooks-ui-ldappass">
<?php p($l->t('Password')); ?>:
</label>
<input type="password" class="nonempty value" id="addressbooks-ui-ldappass" value=""
placeholder="<?php p($l->t('Password')); ?>" required />
</p>
<p id="addressbooks-ui-ldappagesize-p">
<label for="addressbooks-ui-ldappagesize">
<?php p($l->t('Page size')); ?>:
</label>
<input type="text" class="nonempty value" id="addressbooks-ui-ldappagesize" value="20"
placeholder="<?php p($l->t('Page size')); ?>" required />
</p>
<p id="addressbooks-ui-ldapbasednsearch-p">
<label for="addressbooks-ui-ldapbasednsearch">
<?php p($l->t('Base DN for search')); ?>:
</label>
<input type="text" class="nonempty value" id="addressbooks-ui-ldapbasednsearch" value=""
placeholder="<?php p($l->t('Base DN')); ?>" required />
</p>
<p id="addressbooks-ui-ldapfilter-p">
<label for="addressbooks-ui-ldapfilter">
<?php p($l->t('Search filter')); ?>:
</label>
<input type="text" class="nonempty value" id="addressbooks-ui-ldapfilter" value=""
placeholder="<?php p($l->t('Filter')); ?>" required />
</p>
<p id="addressbooks-ui-ldapbasednmodify-p">
<label for="addressbooks-ui-ldapbasednmodify">
<?php p($l->t('Base DN for modification')); ?>:
</label>
<input type="text" class="nonempty value" id="addressbooks-ui-ldapbasednmodify" value=""
placeholder="<?php p($l->t('Base DN modification')); ?>" required />
</p>
<p id="addressbooks-ui-ldapvcardconnector-p">
<label for="addressbooks-ui-ldapvcardconnector">
<?php p($l->t('Connector')); ?>:
</label>
<select id="addressbooks-ui-ldapvcardconnector">
</select>
</p>
<p id="addressbooks-ui-ldapvcardconnector-value-p">
<label for="addressbooks-ui-ldapvcardconnector-value">
<?php p($l->t('Connector value (Better use external editor and copy/paste)')); ?>:
</label>
<textarea id="addressbooks-ui-ldapvcardconnector-value"></textarea>
</p>
<p id="addressbooks-ui-ldapvcardconnector-copyfrom-p">
<label for="addressbooks-ui-ldapvcardconnector-copyfrom">
<?php p($l->t('Copy from (Warning, replaces current custom value)')); ?>:
</label>
<select id="addressbooks-ui-ldapvcardconnector-copyfrom">
</select>
</p>
<p id="addressbooks-ui-errortitle-p">
</p>
<p id="addressbooks-ui-errormessage-p">
</p>
</div>
</script>
|