Newer
Older
CV / skins / cv_templates / cv_view.pt
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
      lang="en"
      metal:use-macro="here/main_template/macros/master"
      i18n:domain="plone">

<head>
		<metal:block fill-slot="style_slot">
			<style type="text/css" media="all">
				<!-- @import url(cv_main.css); -->
			</style>
		</metal:block>
</head>

<body>
<metal:main fill-slot="main">
<div metal:use-macro="here/document_actions/macros/document_actions" />
<div class="cv">
	<div class="headMatter">
		<h2>Curriculum Vit&#230;</h2>
		<div class="name">
			<span tal:replace="here/fullName"/>
			<span tal:replace="python: modules['string'].join(here.qualifications, ' ')"/>
		</div>
		<div class="addressBlock">
			<div class="street_address">
				<span tal:replace="python: modules['string'].join(here.address, ', ')"/>
			</div>
			<div class="phone_numbers">
				<tal:block tal:repeat="phone python: ['Home', 'Work', 'Mobile']">
					<span tal:condition="python: here[phone.lower() + 'Phone']"
								tal:replace="python: phone + ': ' + here[phone.lower() + 'Phone'] + '.'"/>
				</tal:block>
			</div>
			<div class="email" tal:condition="here/email"
					 tal:content="python:'Email: ' + here.getEmail()"/>
		</div>
	</div>
	<table align="center" summary="Personal details">
		<tr>
			<th>Date of birth:</th>
			<td>
				<span tal:replace="here/birthDate/day"/><sup tal:condition="python: here.getBirthDate().day() in [1,21,31]">st</sup><sup tal:condition="python: here.getBirthDate().day() in [2,22]">nd</sup><sup tal:condition="python: here.getBirthDate().day() in [3,23]">rd</sup><sup tal:condition="python: here.getBirthDate().day() not in [1,2,3,21,22,23,31]">th</sup>
				<span tal:replace="here/birthDate/Month"/>, <span tal:replace="here/birthDate/year"/>
			</td>
		</tr>
		<tr>
			<th>Marital status:</th>
			<td tal:content="here/maritalStatus"/>
		</tr>
		<tr tal:condition="here/drivingLicence">
			<th>Driving licence:</th>
			<td tal:content="here/drivingLicence"/>
		</tr>
	</table>
	<tal:block tal:define="emps python:sequence.sort(here.objectValues('Employment'), [('fromDate', 'cmp', 'desc')]);
												 edus python:sequence.sort(here.objectValues('Education'), (('fromDate', 'cmp', 'desc'),))">
		<tal:block tal:condition="python: len(emps) > 0 and len(edus) > 0">
			<tal:block tal:condition="python: emps[0].fromDate > edus[0].fromDate"
								 metal:define-macro="employment">
				<h3>Employment</h3>
				<div class="employment">
					<table summary="Employment details to date">
						<tr tal:repeat="emp emps">
							<th tal:condition="python: emp.getToDate() != None and emp.getFromDate().year() == emp.getToDate().year()">
								<span tal:replace="emp/fromDate/Month"/> &ndash; <span tal:replace="emp/toDate/Month"/>&nbsp;<span tal:replace="emp/toDate/year"/>
							</th>
							<th tal:condition="python: emp.getToDate() == None or emp.getFromDate().year() != emp.getToDate().year()">
								<span tal:replace="emp/fromDate/aMonth"/>&nbsp;<span tal:replace="emp/fromDate/year"/> &ndash;
								<tal:block tal:condition="emp/getToDate">
									<span tal:replace="emp/toDate/aMonth"/>&nbsp;<span tal:replace="emp/toDate/year"/>
								</tal:block>
								<tal:block tal:condition="not: emp/getToDate">Current</tal:block>
							</th>
							<td>
								<div class="jobHead" tal:content="string: ${emp/position} for ${emp/company}, ${emp/location}"/>
								<div tal:replace="structure emp/description"/>
							</td>
						</tr>
					</table>
				</div>
			</tal:block>
			<tal:block tal:condition="python: emps[0].toDate &lt;= edus[0].toDate"
								 metal:define-macro="education">
				<h3>Education</h3>
				<div class="education">
					<table summary="Education details to date">
						<tr tal:repeat="edu edus">
							<th tal:condition="python: edu.getToDate() != None and edu.getFromDate().year() == edu.getToDate().year()">
								<span tal:replace="edu/fromDate/Month"/> &ndash; <span tal:replace="edu/toDate/Month"/>&nbsp;<span tal:replace="edu/toDate/year"/>
							</th>
							<th tal:condition="python: edu.getToDate() == None or edu.getFromDate().year() != edu.getToDate().year()">
								<span tal:replace="edu/fromDate/aMonth"/>&nbsp;<span tal:replace="edu/fromDate/year"/> &ndash;
								<tal:block tal:condition="edu/toDate">
									<span tal:replace="edu/toDate/aMonth"/>&nbsp;<span tal:replace="edu/toDate/year"/>
								</tal:block>
								<tal:block tal:condition="not: edu/toDate">Current</tal:block>
							</th>
							<td>
								<div class="jobHead"
										 tal:condition="edu/qualification"
										 tal:content="string: ${edu/qualification}, ${edu/institute}."/>
								<div class="jobHead"
										 tal:condition="not: edu/qualification"
										 tal:content="string: ${edu/institute}."/>
								<div tal:replace="structure edu/description"/>
							</td>
						</tr>
					</table>
				</div>
			</tal:block>
		</tal:block>
		<tal:block tal:condition="python: (len(edus) == 0) and (len(emps) > 0)">
			<metal:employment metal:use-macro="template/macros/employment" />
		</tal:block>
		<tal:block tal:condition="python: (len(emps) == 0) and (len(edus) > 0)">
			<metal:education metal:use-macro="template/macros/education" />
		</tal:block>
	</tal:block>

	<tal:block tal:condition="python: len(here.objectIds('Skill')) > 0">
		<h3>Skills</h3>
		<div class="skills">
			<dl>
				<tal:block tal:repeat="skill python: here.objectValues('Skill')">
					<dt tal:content="skill/category"/>
					<dd tal:content="structure skill/description"/>
				</tal:block>
			</dl>
		</div>
	</tal:block>

	<tal:block tal:condition="here/interests">
		<h3>Interests</h3>
		<p tal:content="structure here/interests"/>
	</tal:block>

	<tal:block tal:condition="python: len(here.objectIds('Publication')) > 0">
		<h3>Publications</h3>
		<div class="publications">
			<div class="reference"
					 tal:repeat="ref python:sequence.sort(here.objectValues('Publication'), [('year', 'cmp', 'desc')])">
				<span tal:replace="ref/listAuthors" /> (<span tal:replace="ref/year"/>)
				<tal:block tal:condition="python: ref.publicationType == 'phdThesis'">
					<span style="font-style: italic;" tal:content="ref/title" /> PhD Thesis.
					<span tal:replace="string: ${ref/school} ${ref/institution}" />
				</tal:block>
				<tal:block tal:condition="python: ref.publicationType == 'article'">
					<span tal:replace="ref/title" />
					<span style="font-style: italic;"
								tal:content="ref/journal" />,
					<span tal:replace="ref/volume" />.
				</tal:block>
				<tal:block tal:condition="python: ref.publicationType == 'inProceedings'">
					<span style="font-style: italic;"
								tal:content="ref/title" />,
					<span tal:replace="ref/booktitle" />
				</tal:block>
				<a tal:attributes="href ref/absolute_url">
					<img tal:attributes="src string: /${ref/getIcon}" />
				</a>
			</div>
			<div class="modified">
				Document last updated on <span tal:replace="python:toLocalizedTime(here.lastModified(),long_format=1)"/>.
		</div>
	</tal:block>
</div>
</metal:main>
</body>
</html>