lost_password.html

 1   <div id="one-zone-first" class="span-22 prepend-1 append-1 last">
 2       <div id="one-zone-first-content" class="portlet append-bottom -lutece-border-radius">
 3   
 4           <h2>#i18n{module.mylutece.database.xpage.lost_password.pageTitle}</h2>
 5   
 6           <#if action_successful?has_content>
 7               <h3>#i18n{module.mylutece.database.message.lost_password.success} : ${email}</h3>
 8               <form class="default-form" id="lostPassword" name="lostPassword" action="${action_successful}" method="post">
 9                   <table align="center">
 10                       <tr>
 11                           <td>
 12                               <input class="site-buttons" id="button-return" type="submit" name="btnBack" value="#i18n{module.mylutece.database.xpage.account.btnBack}" />
 13                           </td>
 14                       </tr>
 15                   </table>
 16               </form>
 17               <#else>
 18               <p>#i18n{module.mylutece.database.xpage.lost_password.text}</p>
 19   
 20               <#if error_code?has_content >
 21                   <#assign typeClass = "class=\"error\"" />
 22                   <#if error_code = "error_mandatory_fields">
 23                       <div class="alert alert-error">#i18n{module.mylutece.database.message.account.errorMandatoryFields}</div>
 24                   <#assign classEmail = typeClass />
 25                   </#if>
 26                   <#if error_code = "error_syntax_email">
 27                       <div class="alert alert-error">#i18n{module.mylutece.database.message.account.errorBadEmail}</div>
 28                   <#assign classEmail = typeClass />
 29                   </#if>
 30                   <#if error_code = "error_unknown_email">
 31                       <div class="alert alert-error">#i18n{module.mylutece.database.message.lost_password.errorUnkownEmail}</div>
 32                   </#if>
 33                   <#if error_code = "error_sending_email">
 34                       <div class="alert alert-error">#i18n{module.mylutece.database.message.lost_password.errorSendingEmail}</div>
 35                   </#if>
 36               </#if>
 37   
 38               <form class="default-form" id="lostPassword" name="lostPassword" action="jsp/site/plugins/mylutece/modules/database/DoSendPassword.jsp" method="post">
 39                   <input type="hidden" name="plugin_name" value="${plugin_name}" />
 40                   <fieldset>
 41                       <p>
 42                           <label class="text-label" for="email">#i18n{module.mylutece.database.xpage.lost_password.email} * : </label>
 43                           <input class="-lutece-input -lutece-border-radius-mini" type="text" ${classEmail?if_exists} name="email" id="email" maxlength="100" size="35" tabindex="1" value="" />
 44                       </p>
 45                       <table align="center">
 46                           <tr>
 47                               <td>
 48                                   <input class="-lutece-input -lutece-border-radius-mini" id="button-send" type="submit" name="btnSend" value="#i18n{module.mylutece.database.xpage.lost_password.btnSend}" />	
 49                               </td>
 50                               <td>
 51                                   <input class="-lutece-input -lutece-border-radius-mini" id="button-return" type="button" name="back" value="#i18n{module.mylutece.database.xpage.account.btnBack}" onclick='javascript:history.go(-1)'/>
 52                               </td>
 53                           </tr>
 54                       </table>
 55                   </fieldset>
 56               </form>
 57           </#if>
 58       </div>
 59   </div>