<div class="extranet_wrap">
    <div class="extranet_outer_wrap">
        <div class="extranet_inner_wrap">
        
        {% if Message_Display %}
            <h1>{{"Update your email address"|trans}}</h1>
            
            <div class="extranet_message">{{Message}}</div>
        {% endif %}
        

        {% if Change_Email_Form %}
            <h1>{{"Update your email address"|trans}}</h1>
            
			{% for item in Error_Display %}
				<div class="extranet_error">{{item.Error}}</div>
			{% endfor %}
            
            {% if Current_Email_Phrase %}
            	<div class="extranet_message">{{Current_Email_Phrase}}</div>
            {% endif %}
            
            <div>
                <div class="extranet_field">
                    <div class="label"><label for="extranet_email">{{"New email address:"|trans}}</label></div>
                    {{this.frameworkField({'type': "email", 'name': "extranet_email", 'id': "extranet_email", 'pattern': "email", 'required': "true", 'class': "extranet_field"})}}
                </div>
                <div class="extranet_field">
                    <div class="label"><label for="extranet_password">{{"Your password:"|trans}}</label></div>
                    <div class="password_field_with_eye">
                    	{{this.frameworkField({'type': "password", 'name': "extranet_password", 'id': "extranet_password", 'required': "true", 'class': "extranet_field"})}}
                    	
                    	<i
							id="{{Container_Id}}-password-reveal-hide-icon"
							class="fas fa-eye-slash eye_icon"
							onclick="zOnLoad(function() {zenarioP.revealOrHidePasswordIconOnclick('{{Container_Id}}', 'password-reveal-hide-icon', 'extranet_password')})"
						></i>
                    </div>
                </div>
                {{this.frameworkField({'type': "hidden", 'name': "action", 'value': "prepare_email_change"})}}
                
                {% if Captcha %}
                    <div class="extranet_field">
                        <div class="captcha">
                        {{"Please help us combat form submissions by spam devices:"|trans}}
                        {{Captcha}}
                        </div>
                    </div>
                {% endif %}
                
                <div class="extranet_btn"><input type="submit" name="extranet_change_email" class="extranet_submit" value="{{'Change'|trans}}" /></div>
            </div>
        {% endif %}

        </div>
    </div>
</div>
