Déplacement pour eggification.
[Plinn.git] / Products / Plinn / skins / generic / password_reset_template.pt
diff --git a/Products/Plinn/skins/generic/password_reset_template.pt b/Products/Plinn/skins/generic/password_reset_template.pt
new file mode 100644 (file)
index 0000000..d0db692
--- /dev/null
@@ -0,0 +1,60 @@
+<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"
+      xmlns:i18n="http://xml.zope.org/namespaces/i18n">
+  <head>
+    <title>Password reset form</title>
+    <meta http-equiv="content-type" content="text/html;charset=utf-8" />
+    
+  </head>
+  <body i18n:domain="plinn">
+    <div metal:fill-slot="main_no_tabs"
+         tal:define="form options/form"
+         id="Desktop">
+      <form method="post" tal:attributes="action form/action">
+        <div tal:condition="not: options/passwordChanged" tal:omit-tag="">
+          <h2 i18n:translate="">Password resetting</h2>
+          <table class="TwoColumnForm">
+            <tr>
+              <td colspan="2">
+                <dl class="FieldHelp">
+                  <dd i18n:translate="">
+                    Please choose a new password.
+                  </dd>
+                </dl>
+              </td>
+            </tr>
+            <tr>
+              <th i18n:translate="">New Password</th>
+              <td>
+                <input type="password" name="password"/>
+              </td>
+            </tr>
+            <tr>
+              <th i18n:translate="">Confirm New Password</th>
+              <td>
+                <input type="password" name="confirm"/>
+              </td>
+            </tr>
+            <tr>
+              <td><br/></td>
+              <td>
+                <metal:macro metal:use-macro="context/form_widgets/macros/hidden_vars"/>
+                <metal:macro metal:use-macro="context/form_widgets/macros/buttons"/>
+              </td>
+            </tr>
+          </table>
+        </div>
+        <div tal:condition="options/passwordChanged" tal:omit-tag="">
+          <h2 i18n:translate="">Password changed</h2>
+          <p i18n:translate="">
+            Your password has been successfully reset. You can log in
+            immediately by clicking the "Login" button.
+          </p>
+          <metal:macro metal:use-macro="context/form_widgets/macros/hidden_vars"/>
+          <metal:macro metal:use-macro="context/form_widgets/macros/buttons"/>
+        </div>
+      </form>
+    </div>
+  </body>
+</html>