mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Activate avatar widget for addressbook edit dialog
This commit is contained in:
parent
9c2d7abd55
commit
94523347f7
@ -2366,6 +2366,7 @@ window.egw_LAB.wait(function() {
|
||||
|
||||
// allow other apps to add tabs to addressbook edit
|
||||
$preserve = $content;
|
||||
unset($preserve['jpegphoto']);
|
||||
$content['jpegphoto'] = !empty($content['jpegphoto']); // unused and messes up json encoding (not utf-8)
|
||||
$this->tmpl->setElementAttribute('tabs', 'add_tabs', true);
|
||||
$tabs =& $this->tmpl->getElementAttribute('tabs', 'tabs');
|
||||
|
@ -2,24 +2,6 @@
|
||||
<!DOCTYPE overlay PUBLIC "-//Stylite AG//eTemplate 2//EN" "http://www.egroupware.org/etemplate2.dtd">
|
||||
<!-- $Id$ -->
|
||||
<overlay>
|
||||
<template id="addressbook.edit.upload" template="" lang="" group="0" version="1.3.004" >
|
||||
<grid class="uploadphoto">
|
||||
<columns>
|
||||
<column/>
|
||||
</columns>
|
||||
<rows>
|
||||
<row disabled="!@jpegphoto">
|
||||
<checkbox statustext="Deletes the photo" label="delete" id="delete_photo"/>
|
||||
</row>
|
||||
<row>
|
||||
<file statustext="Select a portrait format jpeg photo. It will be resized to 60 pixel width." id="upload_photo" class="photo"/>
|
||||
</row>
|
||||
<row>
|
||||
<button readonly="false" align="center" label="Ok" onclick="jQuery('table.uploadphoto').css('display','none'); return false;" image="check" background_image="1"/>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</template>
|
||||
<template id="addressbook.editname" template="" lang="" group="0" version="1.9.001">
|
||||
<grid class="editname">
|
||||
<columns>
|
||||
@ -359,8 +341,7 @@
|
||||
<row class="dialogHeader">
|
||||
<box align="center">
|
||||
<hbox disabled="@hidebuttons" class="avatar">
|
||||
<image src="photo" onclick="jQuery('table.uploadphoto').css('display','inline'); return false;" class="photo"/>
|
||||
<template id="addressbook.edit.upload"/>
|
||||
<avatar contact_id="$cont[id]" crop="false" editable="true"/>
|
||||
</hbox>
|
||||
</box>
|
||||
<textbox id="n_fn" blur="Name" no_lang="1" tabindex="-1" class="cursorHand et2_fullWidth" onclick="jQuery('table.editname').css('display','inline'); var focElem = document.getElementById(form::name('n_prefix')); if (!(typeof(focElem) == 'undefined') && typeof(focElem.focus)=='function') document.getElementById(form::name('n_prefix')).focus();" autocomplete="name"/>
|
||||
|
Loading…
Reference in New Issue
Block a user