rename template regarding list interface for manage identities and accounts

This commit is contained in:
Klaus Leithoff 2013-10-21 14:41:51 +00:00
parent 451aa51beb
commit 56bada408f
4 changed files with 62 additions and 8 deletions

View File

@ -137,10 +137,30 @@ class mail_signatures
$row['fm_defaultsignature'] = ($row['fm_defaultsignature']?'Default':'');
}
array_unshift($rows,array(''=> ''));
//_debug_array($rows);
return $rows;
}
/**
* edit signature
*
* @param array $content=null
* @param string $msg=null
*/
function edit(array $content=null,$msg=null)
{
}
/**
* delete signature
*
* @param array _identityID
* @return xajax response
*/
function ajax_deleteSignature($_identityID)
{
}
function getDefaultSignature() {
$db = clone($GLOBALS['egw']->db);
$db->set_app('felamimail');

View File

@ -56,7 +56,7 @@ class mail_uipreferences
function index(array $content=null,$msg=null)
{
//Instantiate an etemplate_new object
$tmpl = new etemplate_new('mail.accounts.index');
$tmpl = new etemplate_new('mail.profiles.index');
if (!is_array($content))
{
$content['acc']= $this->get_rows($rows,$readonlys);
@ -99,7 +99,7 @@ class mail_uipreferences
'caption' => lang('Open'),
'icon' => 'view',
'group' => ++$group,
'onExecute' => 'javaScript:app.mail.account_open',
'onExecute' => 'javaScript:app.mail.profile_open',
'allowOnMultiple' => false,
'default' => true,
),
@ -107,7 +107,7 @@ class mail_uipreferences
'caption' => lang('delete'),
'icon' => 'delete',
'group' => ++$group,
'onExecute' => 'javaScript:app.mail.account_delete',
'onExecute' => 'javaScript:app.mail.profile_delete',
'allowOnMultiple' => false,
),
);
@ -154,8 +154,28 @@ class mail_uipreferences
$row['default'] = ($row['default']?'Default':'');
}
array_unshift($rows,array(''=> ''));
//_debug_array($rows);
return $rows;
}
/**
* edit account/identity
*
* @param array $content=null
* @param string $msg=null
*/
function edit(array $content=null,$msg=null)
{
}
/**
* delete personalMailProfile
*
* @param array account/identity list of UID's
* @return xajax response
*/
function ajax_deleteMailProfile($_profile)
{
}
}
?>

View File

@ -1813,7 +1813,21 @@ app.mail = AppJS.extend(
{
var id = _widget[0].id.replace(/row_/,'');
var siggrid = this.et2.getArrayMgr("content").getEntry('sig')[id];
console.log(_egw, _widget);
console.log(_egw, _widget,siggrid,id);
},
profile_open: function(_egw, _widget)
{
var id = _widget[0].id.replace(/row_/,'');
var accgrid = this.et2.getArrayMgr("content").getEntry('acc')[id];
console.log(_egw, _widget,accgrid,id);
},
profile_delete: function(_egw, _widget)
{
var id = _widget[0].id.replace(/row_/,'');
var accgrid = this.et2.getArrayMgr("content").getEntry('acc')[id];
console.log(_egw, _widget,accgrid,id);
},
/**

View File

@ -1,7 +1,7 @@
<?xml version="1.0"?>
<!-- $Id$ -->
<overlay>
<template id="mail.accounts.index.rows" template="" lang="" group="0" version="1.9.001">
<template id="mail.profiles.index.rows" template="" lang="" group="0" version="1.9.001">
<grid width="100%" id="acc" class="egwGridView_grid">
<columns>
<column/>
@ -22,7 +22,7 @@
</rows>
</grid>
</template>
<template id="mail.accounts.index" template="" lang="" group="0" version="1.9.001">
<template id="mail.profiles.index" template="" lang="" group="0" version="1.9.001">
<description id="msg" no_lang="1" class="message" span="all"/>
<grid width="100%">
<columns>