RSS Git Download  Clone
Raw Blame History
    [% 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 style="border: dashed 2px #c0c0c0; padding: 1em; background: #f0f0f0;
      max-width: 60%" class="warning">
        <div><img src="/images/new.png" />
          Open letter regarding our new report format:
          <a href="/docs/new_reports.doc"><img src="/images/word-icon.png" /></a>
          Please circulate to colleagues who receive our reports but do not
          have online access.
        </div>
        <div>
          Please also refer to the <a href="/docs/new_report.html">illustrated guide</a>
          to our new report format.
        </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>

    <script language="javascript">
      <!--
        pos = navigator.userAgent.indexOf("MSIE");
        semic1  = navigator.userAgent.indexOf(";");
        semic2  = navigator.userAgent.indexOf(";", semic1+1);
      -->
    </script>
    
    <!--[if IE 7]>
      <p class="indent highlight">
        Your browser [Internet Explorer <script language="javascript">
          document.write (navigator.userAgent.substring(pos+4, semic2));
        </script>] 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">
          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>
    [% UNLESS last_login.datetime.match('T00:00:00') # new user %]
      <li>
        your last login was: [% last_login.strftime('%A %d.%b.%Y @ %H:%M') %]
      </li>
    [% END %]
    [% 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 %] -->