Suppression de la macro textFormatSelector devenue caduque.
[Plinn.git] / skins / generic / password_reset_template.pt
index 30c46b4..0440dd7 100644 (file)
@@ -8,38 +8,52 @@
     
   </head>
   <body i18n:domain="plinn">
     
   </head>
   <body i18n:domain="plinn">
-    <div metal:fill-slot="main_no_tabs" tal:omit-tag="">
-      <form tal:attributes="action options/action">
-        <h2 i18n:translate="">Password resetting</h2>
-        <table class="TwoColumnForm">
-          <tr>
-            <td colspan="2">
-              <dl class="FieldHelp">
-                <dd i18n:translate="">
-                  Please enter a new password and clic on "Validate" button.
-                </dd>
-              </dl>
-            </td>
-          </tr>
-          <tr>
-            <th i18n:translate="">Password</th>
-            <td>
-              <input type="password" name="password"/>
-            </td>
-          </tr>
-          <tr>
-            <th i18n:translate="">Confirm</th>
-            <td>
-              <input type="password" name="confirm"/>
-            </td>
-          </tr>
-          <tr>
-            <td><br/></td>
-            <td>
-              <input type="submit" name="validate" value="Validate" i18n:attributes="value"/>
-            </td>
-          </tr>
-        </table>
+    <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 enter a new password and clic on "Validate" button.
+                  </dd>
+                </dl>
+              </td>
+            </tr>
+            <tr>
+              <th i18n:translate="">Password</th>
+              <td>
+                <input type="password" name="password"/>
+              </td>
+            </tr>
+            <tr>
+              <th i18n:translate="">Confirm</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>
       </form>
     </div>
   </body>