<?php
if (!defined('WPINC')) {
    die('Closed');
}
$params= $data->params; ?>
<div class="rmagic">
    <!--Dialogue Box Starts-->
    <div class="rmcontent">
        <div class="rmheader"><?php echo _e('Email Templates', 'registrationmagic-addon'); ?></div>
        <div class="rmrow"><div class="rmnotice">More email configuration settings are available in <a target="_blank" href="admin.php?page=rm_options_autoresponder">Global Settings</a>.</div></div>
        <?php
        $form = new RM_PFBC_Form("login-email-temp");

        $form->configure(array(
            "prevent" => array("bootstrap", "jQuery"),
            "action" => ""
        ));
        
        $form->addElement(new Element_HTML('<div class="rmrow"><h3>'.__('Emails to User', 'registrationmagic-addon').'</h3></div>'));
        $form->addElement(new Element_TinyMCEWP("<b>" . __('Failed Login Attempt', 'registrationmagic-addon') . "</b>", $params['failed_login_err'],"failed_login_err", array('editor_class' => 'rm_TinyMCE', 'editor_height' => '100px'), array("longDesc" => __('The contents of the email sent to the user when their username or email is used during a failed login attempt.', 'registrationmagic-addon'))));
        $form->addElement(new Element_TinyMCEWP("<b>" . __('One Time Password', 'registrationmagic-addon') . "</b>",$params['otp_message'] , "otp_message", array('editor_class' => 'rm_TinyMCE', 'editor_height' => '100px'), array("longDesc" => __('The contents of the email sent to the user with OTP during 2FA and non user account based logins.', 'registrationmagic-addon'))));
        $form->addElement(new Element_TinyMCEWP("<b>" . __('Password Reset', 'registrationmagic-addon') . "</b>",$params['pass_reset'] , "pass_reset", array('editor_class' => 'rm_TinyMCE', 'editor_height' => '100px'), array("longDesc" =>'')));
        
        $form->addElement(new Element_HTML('<div class="rmrow"><h3>'.__('Emails to Admin', 'registrationmagic-addon').'</h3></div>'));
        $form->addElement(new Element_TinyMCEWP("<b>" . __('Failed Login Attempt', 'registrationmagic-addon') . "</b>", $params['failed_login_err_admin'], "failed_login_err_admin", array('editor_class' => 'rm_TinyMCE', 'editor_height' => '100px'), array("longDesc" => __('Define the contents of the notification email sent to admin whenever RegistrationMagic detects a failed login attempt.', 'registrationmagic-addon'))));
        $form->addElement(new Element_TinyMCEWP("<b>" . __('IP Blocked', 'registrationmagic-addon') . "</b>", $params['ban_message_admin'], "ban_message_admin", array('editor_class' => 'rm_TinyMCE', 'editor_height' => '100px'), array("longDesc" => __('Define the contents of the notification email sent to the admin whenever RegistrationMagic blocks an IP based on security configuration set in its settings.', 'registrationmagic-addon'))));
        
       
        $form->addElement(new Element_HTMLL('&#8592; &nbsp; '.__('Cancel','registrationmagic-addon'), '?page=rm_login_sett_manage', array('class' => 'cancel')));
        $form->addElement(new Element_Button(RM_UI_Strings::get('LABEL_SAVE'), "submit", array("id" => "rm_submit_btn", "class" => "rm_btn", "name" => "submit")));
        $form->render();
        ?>
    </div>
</div>
