2018-11-15 19:15:08 +01:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2023-01-04 18:28:10 +01:00
|
|
|
<!DOCTYPE overlay PUBLIC "-//EGroupware GmbH//eTemplate 2.0//EN" "https://www.egroupware.org/etemplate2.0.dtd">
|
2018-11-15 19:15:08 +01:00
|
|
|
<!--
|
|
|
|
This template is used for client-side testing, and needs these custom fields to work properly:
|
|
|
|
Infolog:
|
|
|
|
chgrs1, chrgs2 (int or float)
|
|
|
|
tracker (tracker entry)
|
|
|
|
Tracker:
|
|
|
|
gender (selectbox with Male/Female)
|
|
|
|
|
|
|
|
Include it into the normal edit template with:
|
2018-11-21 23:13:19 +01:00
|
|
|
<template id="infolog.entry_test"/>
|
2018-11-15 19:15:08 +01:00
|
|
|
-->
|
|
|
|
<overlay>
|
2018-11-21 23:13:19 +01:00
|
|
|
<template id="infolog.entry_test.Thorsby.locality">
|
2023-01-04 18:28:10 +01:00
|
|
|
<et2-vbox>
|
|
|
|
<et2-description value="THORSBY"></et2-description>
|
2018-11-21 23:13:19 +01:00
|
|
|
<contact-account value="info_modifier" id="info_modifier_fn" options="n_fn" label="Modifier full name:"/>
|
2023-01-04 18:28:10 +01:00
|
|
|
</et2-vbox>
|
2018-11-21 23:13:19 +01:00
|
|
|
</template>
|
|
|
|
<template id="infolog.entry_test.Kaiserslautern.locality">
|
2023-01-04 18:28:10 +01:00
|
|
|
<et2-vbox>
|
|
|
|
<et2-description value="KAISERSLAUTERN"></et2-description>
|
2018-11-21 23:13:19 +01:00
|
|
|
<contact-account value="info_modifier" id="info_modifier_fn" options="n_fn" label="Modifier full name:"/>
|
2023-01-04 18:28:10 +01:00
|
|
|
</et2-vbox>
|
2018-11-21 23:13:19 +01:00
|
|
|
</template>
|
2018-11-15 19:15:08 +01:00
|
|
|
<template id="infolog.entry_test" lang="" group="0" version="1.9">
|
2023-01-04 18:28:10 +01:00
|
|
|
<et2-vbox>
|
2018-11-15 19:15:08 +01:00
|
|
|
<!-- These are all the same -->
|
2023-01-04 18:28:10 +01:00
|
|
|
<et2-description value="Contact's Email:"></et2-description>
|
2018-11-15 19:15:08 +01:00
|
|
|
<contact-value id="info_contact_email" value="info_contact" options="email"/>
|
|
|
|
<contact-value id="info_contact_email" value="info_contact" field="email"/>
|
|
|
|
<contact-value id="info_contact" options="email"/>
|
|
|
|
<hrule/>
|
|
|
|
|
|
|
|
<!-- These use some of the other attributes -->
|
2023-01-04 18:28:10 +01:00
|
|
|
<et2-description value="Entry alternate field attribute using numeric custom fields #chrgs1 & #chrgs2 and #date:"></et2-description>
|
2018-11-15 19:15:08 +01:00
|
|
|
<infolog-value id="info_id" options=",,#chrgs1:#chrgs2" label="First non-empty:"/>
|
|
|
|
<infolog-value id="info_id" field="sum" alternate_fields="#chrgs1:#chrgs2" label="Sum:"/>
|
|
|
|
<infolog-value id="info_id" field="sum" options=",,#chrgs1:#chrgs2" label="Sum:"/>
|
|
|
|
<infolog-value id="info_id" field="sum" options=",,#chrgs1:-#chrgs2" label="Difference:"/>
|
|
|
|
<infolog-value id="regex" value="info_id" field="#date" regex="/(\d{2})(\d{2})-(\d{2})-(\d{2})/" regex_replace="\3 \4 \2" label="Regex replace:"/>
|
|
|
|
<hrule/>
|
|
|
|
|
|
|
|
<!-- Accessing other application info -->
|
2023-01-04 18:28:10 +01:00
|
|
|
<et2-description value="Values from other applications using Infolog cf #tracker and Tracker cf #gender"></et2-description>
|
2018-11-15 19:15:08 +01:00
|
|
|
<infolog-value id="is_tracker_male" value="info_id" field="#tracker/#gender" label="Tracker gender cf:"/>
|
|
|
|
<tracker-value id="#tracker" field="#gender" compare="Male" class="bill_11m" label="Tracker gender is Male:"/>
|
|
|
|
<tracker-value id="#tracker" field="#gender" compare="Female" class="bill_11f" label="Tracker gender is Female:"/>
|
|
|
|
<hrule/>
|
|
|
|
|
2023-01-04 18:28:10 +01:00
|
|
|
<et2-description value="A whole template based on modifier's town (Thorsby or Kaiserslautern)"></et2-description>
|
2018-11-15 19:15:08 +01:00
|
|
|
<contact-template label="infolog.entry_test.%s.locality" id="info_modifier_versicherung" field="adr_one_locality" value="info_modifier" span="all"/>
|
|
|
|
|
2023-01-04 18:28:10 +01:00
|
|
|
</et2-vbox>
|
2018-11-15 19:15:08 +01:00
|
|
|
</template>
|
2023-01-04 18:28:10 +01:00
|
|
|
</overlay>
|