forked from extern/egroupware
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
|
// allow other apps to add tabs to addressbook edit
|
||||||
$preserve = $content;
|
$preserve = $content;
|
||||||
|
unset($preserve['jpegphoto']);
|
||||||
$content['jpegphoto'] = !empty($content['jpegphoto']); // unused and messes up json encoding (not utf-8)
|
$content['jpegphoto'] = !empty($content['jpegphoto']); // unused and messes up json encoding (not utf-8)
|
||||||
$this->tmpl->setElementAttribute('tabs', 'add_tabs', true);
|
$this->tmpl->setElementAttribute('tabs', 'add_tabs', true);
|
||||||
$tabs =& $this->tmpl->getElementAttribute('tabs', 'tabs');
|
$tabs =& $this->tmpl->getElementAttribute('tabs', 'tabs');
|
||||||
|
@ -2,24 +2,6 @@
|
|||||||
<!DOCTYPE overlay PUBLIC "-//Stylite AG//eTemplate 2//EN" "http://www.egroupware.org/etemplate2.dtd">
|
<!DOCTYPE overlay PUBLIC "-//Stylite AG//eTemplate 2//EN" "http://www.egroupware.org/etemplate2.dtd">
|
||||||
<!-- $Id$ -->
|
<!-- $Id$ -->
|
||||||
<overlay>
|
<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">
|
<template id="addressbook.editname" template="" lang="" group="0" version="1.9.001">
|
||||||
<grid class="editname">
|
<grid class="editname">
|
||||||
<columns>
|
<columns>
|
||||||
@ -359,8 +341,7 @@
|
|||||||
<row class="dialogHeader">
|
<row class="dialogHeader">
|
||||||
<box align="center">
|
<box align="center">
|
||||||
<hbox disabled="@hidebuttons" class="avatar">
|
<hbox disabled="@hidebuttons" class="avatar">
|
||||||
<image src="photo" onclick="jQuery('table.uploadphoto').css('display','inline'); return false;" class="photo"/>
|
<avatar contact_id="$cont[id]" crop="false" editable="true"/>
|
||||||
<template id="addressbook.edit.upload"/>
|
|
||||||
</hbox>
|
</hbox>
|
||||||
</box>
|
</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"/>
|
<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