<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE overlay PUBLIC "-//EGroupware GmbH//eTemplate 2//EN" "http://www.egroupware.org/etemplate2.dtd">
<!-- $Id$ -->
<overlay>
	<template id="addressbook.config" template="" lang="" group="0" version="16.1">
		<grid width="100%" class="admin-config egwGridView_grid">
			<columns>
				<column width="60%"/>
				<column/>
			</columns>
			<rows>
				<row>
					<description value="Telephony integration" span="all" class="subHeader"/>
				</row>
				<row>
					<description value="URL to link telephone numbers to (use %1 = number to call, %u = account name, %t = account phone)" label="%s:"/>
					<textbox id="newsettings[call_link]" class="et2_fullWidth"/>
				</row>
				<row>
					<description value="Size of popup (WxH, eg.400x300, if a popup should be used)" label="%s:"/>
					<textbox id="newsettings[call_popup]" size="10"/>
				</row>
				<row>
					<description value="GeoLocation integration" span="all" class="subHeader"/>
				</row>
				<row>
					<description value="Choose pre-defined map source or use custom URL (use %r = street, %t = city, %c = country, %z = zipcode)" label="%s:"/>
					<taglist id="newsettings[geolocation_url]" maxSelection="1" empty_label="Select a map or write an URL"/>
				</row>
				<row>
					<description value="Allow users to maintain their own account-data" span="all" class="subHeader"/>
				</row>
				<row>
					<description value="Fields the user is allowed to edit himself"/>
					<select id="newsettings[own_account_acl]" multiple="true" tags="true"/>
				</row>
				<row>
					<description value="General" span="all" class="subHeader"/>
				</row>
				<row>
					<description value="Use a category tree?"/>
					<select id="newsettings[cat_tab]">
						<option value="True">No</option>
						<option value="Tree">Yes</option>
					</select>
				</row>
				<row>
					<description value="Update Fields by edited organisations?"/>
					<hbox>
						<select id="newsettings[org_fileds_to_update]" multiple="true" rows="4"/>
						<button onclick="widget.getParent().getWidgetById('newsettings[org_fileds_to_update]').select_all_toggle();" label="Select all" image="check"/>
					</hbox>
				</row>
				<row>
					<description value="Fields to copy when copying an address?"/>
					<hbox>
						<select id="newsettings[copy_fields]" multiple="true" rows="4"/>
						<button onclick="widget.getParent().getWidgetById('newsettings[copy_fields]').select_all_toggle();" label="Select all" image="check"/>
					</hbox>
				</row>
				<row>
					<description value="Use an extra tab for private custom fields?"/>
					<select id="newsettings[private_cf_tab]">
						<option value="">No</option>
						<option value="True">Yes</option>
					</select>
				</row>
				<row>
					<description value="Security" span="all" class="subHeader"/>
				</row>
				<row>
					<vbox>
						<description value="How many contacts should non-admins be able to export"/>
						<description value="(empty = use global limit, no = no export at all)"/>
					</vbox>
					<textbox id="newsettings[contact_export_limit]" size="5"/>
				</row>
				<row>
					<description value="Allow members of following groups to edit contact-data of accounts" label="%s:"/>
					<select-account id="newsettings[allow_account_edit]" account_type="groups" multiple="true" tags="true" width="100%"/>
				</row>
				<row>
					<description value="History logging" span="all" class="subHeader"/>
				</row>
				<row>
					<description value="Prevent deleting of contacts"/>
					<select id="newsettings[history]">
						<option value="">No</option>
						<option value="history">Yes, only admins can purge deleted items</option>
						<option value="userpurge">Yes, users can purge their deleted items</option>
					</select>
				</row>
				<row>
					<description value="Contact maintenance" span="all" class="subHeader"/>
				</row>
				<row>
					<description value="Set full name and file as field in contacts of all users (either all or only empty values)" label="%s:"/>
					<hbox>
						<select id="fileas" empty_label="Set only full name" width="70%"/>
						<button onclick="document.location.href='index.php?menuaction=addressbook.addressbook_ui.admin_set_fileas&amp;all=1&amp;type='+this.form.fileas.value;" label="All"/>
						<button onclick="document.location.href='index.php?menuaction=addressbook.addressbook_ui.admin_set_fileas&amp;type='+this.form.fileas.value;" label="Empty"/>
					</hbox>
				</row>
				<row>
					<description value="Cleanup addressbook fields (apply if synchronization creates duplicates)" label="%s:"/>
					<button onclick="document.location.href='index.php?menuaction=addressbook.addressbook_ui.admin_set_all_cleanup'" label="Start"/>
				</row>
				<row>
					<description value="Contact repository" span="all" class="subHeader"/>
				</row>
				<row>
					<description value="Select where you want to store / retrieve contacts" label="%s:"/>
					<select id="newsettings[contact_repository]"/>
				</row>
				<row>
					<description value="You can only use LDAP as contact repository if the accounts are stored in LDAP too!" span="all"/>
				</row>
				<row>
					<description value="Account repository" label="%s:"/>
					<hbox>
						<description id="newsettings[account_repository]" class="subHeader"/>
						<description value="Can be changed via Setup >> Configuration"/>
					</hbox>
				</row>
				<row>
					<description value="LDAP settings for contacts" span="all" class="subHeader"/>
				</row>
				<row>
					<description value="LDAP host for contacts" label="%s:"/>
					<textbox id="newsettings[ldap_contact_host]"/>
				</row>
				<row>
					<description value="LDAP context for contacts" label="%s:"/>
					<textbox id="newsettings[ldap_contact_context]" class="et2_fullWidth"/>
				</row>
				<row>
					<description value="Additional information about using LDAP as contact repository" class="subHeader"/>
					<description value="README" href="/doc/ldap/README.contacts" extra_link_target="_blank"/>
				</row>
				<row>
					<description value="Migration to LDAP"/>
					<hbox>
						<select id="migrate">
							<option value="">Select migration type</option>
							<option value="contacts" title="if accounts are already in LDAP">contacts to LDAP</option>
							<option value="contacts,accounts" title="use setup for a full account-migration">contacts and account contact-data to LDAP</option>
							<option value="contacts,accounts-back" title="for read only LDAP">contacts to LDAP, account contact-data to SQL</option>
							<option value="sql" title="for read only LDAP">contacts and account contact-data to SQL</option>
						</select>
						<button onclick="if (this.form.migrate.value) document.location.href='index.php?menuaction=addressbook.addressbook_ui.migrate2ldap&amp;type='+this.form.migrate.value;" label="Start"/>
					</hbox>
				</row>
			</rows>
		</grid>
	</template>
</overlay>
