lost_login.html

 1   <div class="row-fluid">
 2       <div class="container">
 3           <#if action_successful?has_content>
 4           <form class="form-horizontal" id="lostLogin" name="lostLogin" action="${action_successful}" method="post">
 5               <fieldset>
 6                   <legend>#i18n{module.mylutece.database.xpage.lost_login.pageTitle}</legend>
 7                   <p class="lead">#i18n{module.mylutece.database.message.lost_login.success} : ${email}</p>
 8                   <div class="form-actions">
 9                       <input class="btn btn-primary btn-small" id="button-return" type="submit" name="btnBack" value="#i18n{module.mylutece.database.xpage.account.btnBack}" />
 10                   </div>
 11               </fieldset>
 12           </form>
 13           <#else>
 14           <form class="form-horizontal" id="lostLogin" name="lostLogin" action="jsp/site/plugins/mylutece/modules/database/DoSendLogin.jsp" method="post">
 15               <fieldset>
 16                   <legend>#i18n{module.mylutece.database.xpage.lost_login.pageTitle}</legend>
 17                   <p class="lead">#i18n{module.mylutece.database.xpage.lost_login.text}</p>
 18   
 19                   <#if error_code?has_content >
 20                       <#assign typeClass = "class=\"error\"" />
 21                       <#if error_code = "error_mandatory_fields">
 22                           <div class="alert alert-error">#i18n{module.mylutece.database.message.account.errorMandatoryFields}</div>
 23                       <#assign classEmail = typeClass />
 24                       </#if>
 25                       <#if error_code = "error_syntax_email">
 26                           <div class="alert alert-error">#i18n{module.mylutece.database.message.account.errorBadEmail}</div>
 27                       <#assign classEmail = typeClass />
 28                       </#if>
 29                       <#if error_code = "error_unknown_email">
 30                           <div class="alert alert-error">#i18n{module.mylutece.database.message.lost_login.errorUnkownEmail}</div>
 31                       </#if>
 32                       <#if error_code = "error_sending_email">
 33                           <div class="alert alert-error">#i18n{module.mylutece.database.message.lost_login.errorSendingEmail}</div>
 34                       </#if>
 35                   </#if>
 36   
 37                   <div class="control-group">
 38                       <label class="control-label" for="email">#i18n{module.mylutece.database.xpage.lost_login.email} * : </label>
 39                       <div class="controls">
 40                           <input class="-lutece-input -lutece-border-radius-mini" type="text" ${classEmail?if_exists} name="email" id="email" maxlength="100" size="35" tabindex="1" value="" />
 41                       </div>
 42                   </div>
 43                   <div class="form-actions">
 44                       <input type="hidden" name="plugin_name" value="${plugin_name}" />
 45                       <input class="btn btn-primary btn-small" id="button-send" type="submit" name="btnSend" value="#i18n{module.mylutece.database.xpage.lost_login.btnSend}" />	
 46                       <input class="btn btn-small" id="button-return" type="button" name="back" value="#i18n{module.mylutece.database.xpage.account.btnBack}" onclick='javascript:history.go(-1)'/>
 47                   </div>
 48               </fieldset>
 49           </form>
 50           </#if>
 51       </div>
 52   </div>