mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-08 23:19:04 +01:00
new application customfields for the other (non-infolog) apps. If the application field should generate a link, it has to be done in the application itself.
This commit is contained in:
parent
8ccab4e7cc
commit
6396d1b235
@ -25,12 +25,20 @@
|
|||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string $appname string appname of app which want to add / edit its customfields
|
* appname of app which want to add / edit its customfields
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
*/
|
*/
|
||||||
var $appname;
|
var $appname;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var array $cf_types array with allowd types of customfields
|
* Allowd types of customfields
|
||||||
|
*
|
||||||
|
* The additionally allowed app-names from the link-class, will be add by the edit-method only,
|
||||||
|
* as the link-class has to be called, which can NOT be instanciated by the constructor, as
|
||||||
|
* we get a loop in the instanciation.
|
||||||
|
*
|
||||||
|
* @var array
|
||||||
*/
|
*/
|
||||||
var $cf_types = array(
|
var $cf_types = array(
|
||||||
'text' => 'Text',
|
'text' => 'Text',
|
||||||
@ -38,16 +46,17 @@
|
|||||||
'select' => 'Selectbox',
|
'select' => 'Selectbox',
|
||||||
'radio' => 'Radiobutton',
|
'radio' => 'Radiobutton',
|
||||||
'checkbox' => 'Checkbox',
|
'checkbox' => 'Checkbox',
|
||||||
|
'link-entry' => 'Select entry',
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var $types2 array with userdefiened types e.g. type of infolog
|
* userdefiened types e.g. type of infolog
|
||||||
|
*
|
||||||
|
* @var array
|
||||||
*/
|
*/
|
||||||
var $types2 = array();
|
var $types2 = array();
|
||||||
var $content_types,$fields;
|
var $content_types,$fields;
|
||||||
|
|
||||||
var $public_functions = array
|
var $public_functions = array(
|
||||||
(
|
|
||||||
'edit' => True
|
'edit' => True
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -190,10 +199,16 @@
|
|||||||
$readonlys['fields']["delete[]"] = True;
|
$readonlys['fields']["delete[]"] = True;
|
||||||
//echo '<p>uicustomfields.edit(content = <pre style="text-align: left;">'; print_r($content); echo "</pre>\n";
|
//echo '<p>uicustomfields.edit(content = <pre style="text-align: left;">'; print_r($content); echo "</pre>\n";
|
||||||
//echo 'readonlys = <pre style="text-align: left;">'; print_r($readonlys); echo "</pre>\n";
|
//echo 'readonlys = <pre style="text-align: left;">'; print_r($readonlys); echo "</pre>\n";
|
||||||
$this->tmpl->exec('admin.customfields.edit',$content,array(
|
$sel_options = array(
|
||||||
'type' => $this->cf_types,
|
|
||||||
'type2' => $this->types2 + array('tmpl' => 'template'),
|
'type2' => $this->types2 + array('tmpl' => 'template'),
|
||||||
),$readonlys,array(
|
);
|
||||||
|
$GLOBALS['egw']->translation->add_app('etemplate');
|
||||||
|
foreach($this->cf_types as $name => $label) $sel_options['type'][$name] = lang($label);
|
||||||
|
$link_types = ExecMethod('phpgwapi.bolink.app_list','');
|
||||||
|
ksort($link_types);
|
||||||
|
foreach($link_types as $name => $label) $sel_options['type'][$name] = '- '.$label;
|
||||||
|
|
||||||
|
$this->tmpl->exec('admin.customfields.edit',$content,$sel_options,$readonlys,array(
|
||||||
'fields' => $preserv_fields,
|
'fields' => $preserv_fields,
|
||||||
'appname' => $this->appname,
|
'appname' => $this->appname,
|
||||||
'referer' => $referer,
|
'referer' => $referer,
|
||||||
|
Loading…
Reference in New Issue
Block a user