<html metal:use-macro="here/main_template/macros/master"
      xmlns:tal="http://xml.zope.org/namespaces/tal" xmlns:metal="http://xml.zope.org/namespaces/metal">
  <head>
    <title>Logged in template</title>
  </head>
  <body i18n:domain="plinn">
    <div metal:fill-slot="main_no_tabs" id="Desktop">
      <div tal:condition="options/is_anon" tal:omit-tag="">
        <h1 class="DesktopTitle" i18n:translate="">Login failure</h1>

        <p i18n:translate="">
          You are not currently logged in. Your username and or password may
          be incorrect. Your browser may also not be configured to accept
          cookies.
        </p>
        <p>
          <span i18n:translate="">
            If you have forgotten your password, you can reset it by going to
            this page:
          </span>
          <a href="#"
            tal:attributes="href string:$portal_url/request_password_reset_form"
            i18n:translate="">password resetting</a>.
        </p>
        
      </div>
      
      <div tal:condition="options/changePassword|nothing" tal:omit-tag="">
       <h1 class="DesktopTitle" i18n:translate="">Welcome!</h1>

       <p i18n:translate="">
          This is the first time that you've logged in to
          <span tal:replace="portal_title" i18n:name="portal_title">Here</span>.
          Before you start exploring you need to change your original password.
          This will ensure that the password we sent you via email cannot be
          used in a malicious manner.</p>

       <p i18n:translate="">
          Please use the form below to change your password.</p>

       <form action="change_password" method="post"
             tal:attributes="action string:${portal_url}/change_password"
       >
        <input type="hidden" name="user" value=""
               tal:attributes="value member" />
        <input type="hidden" name="domains:tokens" value="" />
        <input type="hidden" name="redirect" value=""
               tal:attributes="value string:${portal_url}/" />

        <table>

         <tr valign="top" align="left">
          <th i18n:translate="">Username</th>
          <td><span tal:replace="member">You</span></td>
         </tr>

         <tr valign="top"  align="left">
          <th i18n:translate="">New password</th>
          <td><input type="password" name="password" /></td>
         </tr>

         <tr valign="top"  align="left">
          <th i18n:translate="">Confirm new password</th>
          <td><input type="password" name="confirm" /></td>
         </tr>

         <tr>
          <td><br /></td>
          <td>
           <input type="submit" value="Change password"
                  i18n:attributes="value" />
          </td>
         </tr>

        </table>

       </form>

      </div>
      
    </div>
  </body>
</html>