From 6e63abf97ca1ddc720343cbbb94a9e6f7c1c33c6 Mon Sep 17 00:00:00 2001 From: henke Date: Wed, 16 May 2007 15:16:54 +0200 Subject: [PATCH] only for edit: integrated new fields, check if field exist, restructuring darcs-hash:20070516131654-1b98d-de1f05d82c7fc0da1e569a25905a2de0a739465d.gz --- lang/de.php | 2 +- lang/en.php | 7 +- templates/entry_edit.tpl | 208 +++++++++++++++++++++++++++++++++------ 3 files changed, 183 insertions(+), 34 deletions(-) diff --git a/lang/de.php b/lang/de.php index 8f63b40..6e84d83 100644 --- a/lang/de.php +++ b/lang/de.php @@ -27,7 +27,7 @@ $lang['note'] = 'Notizen'; $lang['mail'] = 'E-Mail'; $lang['manager'] = 'Key Account'; -$lang['anniversary'] = 'Geburtstag'; +$lang['anniversary'] = 'Jubiläum'; $lang['marker'] = 'Tags'; $lang['tagcloud'] = 'Alle verwendeten Tags, alphabetisch sortiert. Häufig verwendete Tags werden größer dargestellt.'; diff --git a/lang/en.php b/lang/en.php index 6f2166b..da1b254 100644 --- a/lang/en.php +++ b/lang/en.php @@ -15,7 +15,9 @@ $lang['office'] = 'Office'; $lang['street'] = 'Street No.'; $lang['zip'] = 'Postal Code'; $lang['location'] = 'City'; +$lang['state'] = 'State'; $lang['phone'] = 'Phone'; +$lang['switchboard'] = 'Switchboard'; $lang['fax'] = 'FAX'; $lang['mobile'] = 'Mobile'; $lang['pager'] = 'Pager'; @@ -27,13 +29,14 @@ $lang['note'] = 'Notes'; $lang['mail'] = 'E-Mail'; $lang['manager'] = 'Key Account'; -$lang['anniversary'] = 'Birthday'; +$lang['anniversary'] = 'Anniversary'; $lang['marker'] = 'Tags'; $lang['tagcloud'] = 'All used tags, sorted alphabetically. Frequently used tags are shown bigger.'; $lang['business'] = 'Business'; $lang['private'] = 'Private'; $lang['extended'] = 'Additional Information'; +$lang['communication'] = 'Communication'; $lang['delphoto'] = 'Delete existing photo'; @@ -85,5 +88,7 @@ $lang['country'] = 'Country'; $lang['certificate'] = 'x.509 Cert'; $lang['timezone'] = 'Time Zone'; $lang['position'] = 'Position'; +$lang['department'] = 'Department'; $lang['ipphone'] = 'IP Phone'; +$lang['spouse'] = 'Spouse'; ?> diff --git a/templates/entry_edit.tpl b/templates/entry_edit.tpl index f01d806..02def0b 100644 --- a/templates/entry_edit.tpl +++ b/templates/entry_edit.tpl @@ -13,67 +13,116 @@ + + + + + + + + + + + + + + + + + + + + + {if $entry.dn == ''} {/if} - {if $conf.openxchange} - {include file="openxchange_edit.tpl"} - {/if} + -- 2.39.5
- - - +{* always required ... if $fields.name *} +{* /if *} +{if $fields.givenname} +{/if} +{if $fields.title} +{/if} +
{$lang.business}
{$lang.name}:
{$lang.givenname}:
{$lang.title}:
+
+

+ - - + +{if $fields.organization} - + +{/if} +{if $fields.office} +{/if} +{if $fields.street} +{/if} +{if $fields.zip} +{/if} +{if $fields.location} +{/if} +{if $fields.state} + + + + +{/if} +{if $fields.country} + + + + +{/if} +{if $fields.phone} +{/if} +{if $fields.switchboard} + + + + +{/if} +{if $fields.fax} +{/if} +{if $fields.pager} +{/if} +{if $fields.manager} +{/if} +{if $fields.position} + + + + +{/if} +{if $fields.department} + + + + +{/if} - {if $conf.extended} - {include file="extended_edit.tpl"} - {/if}
{$lang.organization}: - - {$lang.business}
{$lang.organization}: - +
{$lang.office}:
{$lang.street}:
{$lang.zip}:
{$lang.location}:
{$lang.state}:
{$lang.country}: +
+
{$lang.phone}:
{$lang.switchboard}:
{$lang.fax}:
{$lang.pager}:
{$lang.manager}: @@ -83,37 +132,54 @@
{$lang.position}:
{$lang.department}:
- +{if $fields.homestreet} +{/if} +{if $fields.homephone} +{/if} +{if $fields.mobile} +{/if} +{if $fields.url} - +{/if} +{if $fields.photo} - - +{/if} +{if $fields.birthday} - + + +{/if} +{if $fields.anniversary} + + + + +{/if} +{if $fields.spouse} + + + + +{/if} + + + +{if $fields._mail} {foreach from=$entry.mail item=mail} - - - - + + + + {/foreach} - + - + - +{/if} +{if $fields.instantmessenger} - + + +{/if} +{if $fields.ipphone} + + + + +{/if} +
{$lang.private}
{$lang.homestreet}:
{$lang.homephone}:
{$lang.mobile}:
{$lang.url}:
{$lang.photo}:
({$lang.msg_jpegonly})
{if $entry.photo} @@ -124,38 +190,118 @@
{$lang.mail}{$lang.birthday}:
({$lang.msg_dateformat})
{$lang.anniversary}:
({$lang.msg_dateformat})
{$lang.spouse}:
{$lang.communication}
{counter}:
{$lang.mail} {counter}:
{counter}:{$lang.mail} {counter}:
{counter}:{$lang.mail} {counter}:
{$lang.note}{$lang.instantmessenger}:
{$lang.ipphone}:
+

+ - + +{if $fields._marker} + + + + +{/if} +{if $fields.note} + + + + +{/if}
{$lang.extended}
{$lang.marker}:
({$lang.msg_tagsep})
+
+
{$lang.note}:
+ +{if $fields.certificate} + + + + +{/if} +{if $fields.domain} + + + + +{/if} +{if $fields.timezone} + + + + +{/if} +
{$lang.certificate}: + +
+
{$lang.domain}:
{$lang.timezone}: +
+
+
@@ -169,9 +315,7 @@