<#setting number_format="computer">
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article [
		<!ENTITY % isolat1 PUBLIC "ISO 8879:1986//ENTITIES Added Latin 1//EN//XML" "ISOlat1.ent">
%isolat1;
<!ENTITY % isolat2 PUBLIC "ISO 8879:1986//ENTITIES Added Latin 2//EN//XML" "ISOlat2.ent">
%isolat2;
<!ENTITY % isonum PUBLIC "ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN//XML" "ISOnum.ent">
%isonum;
<!ENTITY % isopub PUBLIC "ISO 8879:1986//ENTITIES Publishing//EN//XML" "ISOpub.ent">
%isopub;
]>
<article
		version="5.0"
		xml:lang="cs"
		xmlns="http://docbook.org/ns/docbook"
		xmlns:xlink="http://www.w3.org/1999/xlink"
		xmlns:xi="http://www.w3.org/2001/XInclude"
		xmlns:svg="http://www.w3.org/2000/svg"
		xmlns:m="http://www.w3.org/1998/Math/MathML"
		xmlns:html="http://www.w3.org/1999/xhtml"
		xmlns:db="http://docbook.org/ns/docbook">


	<section>
		<title><emphasis role='color' color='#4F81BD'>${event.name}</emphasis></title>
		<para>
			<emphasis role='bold'>
				<emphasis
						role='size'
						font-size='120%'>Zahájení
                    <#if event.allDay>
                        ${event.startTime?string["dd.MM.yyyy"]}
                    <#else>
                        ${event.startTime?string["dd.MM.yyyy HH:mm"]}
                    </#if></emphasis>
			</emphasis>
		</para>
		<informaltable frame='all'>
			<tgroup
					cols="#{3+eventInfos?size}"
					align='left'
					colsep='1'
					rowsep='1'>
				<thead>
				<row>
					<entry>Číslo</entry>
					<entry>Jméno</entry>
					<entry>Stav úhrady (doplatit)</entry>
                    <#list eventInfos as info>
						<entry>${info.infoTypeObj.name}</entry>
                    </#list>
				</row>
				</thead>
				<tbody>

                <#list participantsData as participant>
					<row valign="middle"><?dbfo row-height="12pt"?>
						<entry><#if participant.number??>${participant.number}</#if></entry>
						<entry><#if participant.name??>${participant.name}</#if></entry>
						<entry><#if participant.paymentStatus??>
								<emphasis role='color'
								          color='${participant.paymentStatusColor}'>${participant.paymentStatus}</emphasis></#if><#if participant.unpayed?? && participant.unpayed != 0> (${participant.unpayed},-)</#if>
						</entry>
                        <#assign participantInfo = participantInfos?api.get(participant.id)>
                        <#list participantInfo?keys as key>
							<entry>${participantInfo?api.get(key)}</entry>
                        </#list>
					</row>
                </#list>
				</tbody>
			</tgroup>
		</informaltable>
	</section>
</article>