[% META title = 'Login' %]
<!-- BEGIN [% template.name %] -->
<p class="bold">
[% user = c.authen.store.fetch('yooza_profile') %]
Hello [% user.first_name | ucfirst %] [% user.last_name | ucfirst %],
</p>
<div><img src="/images/new.png" /></div>
<div style="border: dashed 2px #c0c0c0; padding: 1em; background: #f0f0f0;
max-width: 60%" class="warning">
<div>We are changing our report format soon. Please refer to our
<a href="/docs/new_report.html">illustrated guide</a> for details.
</div>
<div>Please also preview an <a href="/docs/example_report.html">
example report</a> in your browser to see how it will look (with links
disabled).
</div>
<div>Feel free to post any comments to
<a href="[% app_url %]/resources/user_messages/14">Richard Jones</a> or
<a href="[% app_url %]/resources/user_messages/4">Andrew Jack</a>
using the HILIS messaging service.
</div>
</div>
<!--[if IE 7]>
<p class="indent highlight">
Your browser [ Internet Explorer 7 ] cannot display our new report format
optimally. Please consider upgrading to a <a href="http://browsehappy.com/">
modern browser</a> (eg Mozilla Firefox, Google Chrome, Opera).
</p>
<![endif]-->
<!--[if lt IE 7]>
<p class="indent highlight">
Unfortunately your browser [ Internet Explorer
<script language="javascript">
pos = navigator.userAgent.indexOf("MSIE");
semic1 = navigator.userAgent.indexOf(";");
semic2 = navigator.userAgent.indexOf(";", semic1+1);
document.write (navigator.userAgent.substring(pos+4, semic2));
</script>
is too old to display our new report
format properly - please <a href="http://browsehappy.com/">upgrade to a
modern browser</a> (eg Mozilla Firefox, Google Chrome, Opera).
Internet Explorer versions below 8 are not suitable.
</p>
<![endif]-->
<ul>
<li>
your last login was: [% last_login.strftime('%A %d.%b.%Y @ %H:%M') %]
</li>
[% UNLESS user_type == 'internal' AND user.email # don't need to see this: %]
[% IF user.email %]
<li>
your registered email address is: [% user.email %]
[<a href="[% app_url %]/user/change_email">change</a>]
</li>
[% ELSE %]
<li class="red">
*** no registered email address, please update
<a href="[% app_url %]/user/change_email">here</a> ***
</li>
[% END %]
<li>
your registered location is: [% user.user_location.location_name %]
[<a href="[% app_url %]/user/change_location">change</a>]
</li>
[% END %]
</ul>
[% INCLUDE site/messages.tt %]
[% # new.diagnoses.tt only required for external users - has 'results' tt_param,
# but could be empty so *don't* use results.size:
INCLUDE resources/new_diagnoses.tt IF results;
%]
<!-- END [% template.name %] -->