modify_account.html

 1   <div class="well" >
 2       <#if error_code?has_content >
 3           <#assign typeClass = "class=\"error\"" />
 4   
 5           <#if error_code = "error_mandatory_fields">
 6               <div class="alert alert-error">#i18n{module.mylutece.database.message.account.errorMandatoryFields}</div>
 7               <#if !(user.lastName?has_content)>
 8                   <#assign classLastName = typeClass />
 9               </#if>
 10               <#if !(user.firstName?has_content)>
 11                   <#assign classFirstName = typeClass />
 12               </#if>
 13               <#if !(user.email?has_content)>
 14                   <#assign classEmail = typeClass />
 15               </#if>
 16           </#if>
 17           
 18           <#if error_code = "error_syntax_email">
 19               <div class="alert alert-error">#i18n{module.mylutece.database.message.account.errorBadEmail}</div>
 20               <#assign classEmail = typeClass />
 21           </#if>
 22           
 23           <#if error_code = "error_captcha">
 24               <div class="alert alert-error">#i18n{module.mylutece.database.message.account.errorCaptcha}</div>
 25           </#if>
 26       </#if>
 27   
 28       <#if action_successful?has_content>
 29           <form class="form-horizontal" id="modifyAccount" name="modifyAccount" action="${action_successful}" method="post">
 30               <fieldset>
 31                   <legend>#i18n{module.mylutece.database.xpage.modify_account.pageTitle}</legend>
 32                   <p class="lead">#i18n{module.mylutece.database.message.modify_account.success}</p>
 33                   <div class="form-actions">
 34                       <input class="btn btn-primary btn-small" id="button-return" type="submit" name="BtnBack" value="#i18n{module.mylutece.database.xpage.account.btnBack}" />
 35                   </div>
 36               </fieldset>
 37           </form>
 38       <#else>
 39           <form class="form-horizontal" id="modifyAccount" name="modifyAccount" action="jsp/site/plugins/mylutece/modules/database/DoModifyAccount.jsp" method="post">
 40               <fieldset>
 41                   <legend>#i18n{module.mylutece.database.xpage.modify_account.pageTitle}</legend>
 42                   <input type="hidden" name="plugin_name" value="${plugin_name}" />
 43                   <#if show_input_email>
 44                   <div class="control-group">
 45                       <label class="control-label" for="email">#i18n{module.mylutece.database.xpage.modify_account.eMail} * : </label>
 46                       <div class="controls">
 47                           <input type="text" ${classEmail?if_exists} name="email" maxlength="100" size="35" tabindex="2" value="${(user.email)?if_exists}" />
 48                       </div>
 49                   </div>
 50                   </#if>	
 51   
 52                   <div class="control-group">
 53                       <label class="control-label" for="last_name">#i18n{module.mylutece.database.xpage.modify_account.lastName} * : </label>
 54                       <div class="controls">
 55                           <input type="text" ${classLastName?if_exists} name="last_name" maxlength="100" size="35" tabindex="5"  value="${(user.lastName)?if_exists}" />
 56                       </div>
 57                   </div>
 58                   <div class="control-group">
 59                       <label class="control-label" for="first_name">#i18n{module.mylutece.database.xpage.modify_account.firstName} * : </label>
 60                       <div class="controls">
 61                           <input type="text" ${classFirstName?if_exists} name="first_name" maxlength="100" size="35" tabindex="6" value="${(user.firstName)?if_exists}" />
 62                       </div>
 63                   </div>
 64                   <#if jcaptcha?exists>
 65                       <div class="control-group">
 66                           ${jcaptcha}
 67                       </div>
 68                   </#if>				
 69                   <div class="form-actions">
 70                       <input class="btn btn-primary btn-small" id="button-subscribe" type="submit" name="modifyAccountBtn" value="#i18n{module.mylutece.database.xpage.modify_account.btnModifyAccount}" />
 71                       <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)'/>
 72                   </div>
 73               </fieldset>
 74           </form>
 75       </#if>
 76   </div>