<?php
/* Smarty version 4.3.2, created on 2024-09-09 18:23:32
  from '/home/cyphered/public_html/crm.asmamateri.com/public/legacy/include/SugarEmailAddress/templates/forEditView.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.3.2',
  'unifunc' => 'content_66df3d2479b664_91828093',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '3317a47740c7a33e0a8f801276899240ff5a9dc5' => 
    array (
      0 => '/home/cyphered/public_html/crm.asmamateri.com/public/legacy/include/SugarEmailAddress/templates/forEditView.tpl',
      1 => 1723455764,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_66df3d2479b664_91828093 (Smarty_Internal_Template $_smarty_tpl) {
echo '<script'; ?>
 type="text/javascript" language="javascript">
var emailAddressWidgetLoaded = false;
<?php echo '</script'; ?>
>
	<?php echo '<script'; ?>
 type="text/javascript" src="include/SugarEmailAddress/SugarEmailAddress.js"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
 type="text/javascript">
	var module = '<?php echo $_smarty_tpl->tpl_vars['module']->value;?>
';
<?php echo '</script'; ?>
>

<div class="col-xs-12">
	<div class="col-xs-12 email-address-add-line-container emailaddresses" id="<?php echo $_smarty_tpl->tpl_vars['module']->value;?>
emailAddressesTable<?php echo $_smarty_tpl->tpl_vars['index']->value;?>
">
		<?php $_smarty_tpl->smarty->ext->_capture->open($_smarty_tpl, 'default', "other_attributes", null);?>id="<?php echo $_smarty_tpl->tpl_vars['module']->value;
echo $_smarty_tpl->tpl_vars['index']->value;?>
_email_widget_add" onclick="SUGAR.EmailAddressWidget.instances.<?php echo $_smarty_tpl->tpl_vars['module']->value;
echo $_smarty_tpl->tpl_vars['index']->value;?>
.addEmailAddress('<?php echo $_smarty_tpl->tpl_vars['module']->value;?>
emailAddressesTable<?php echo $_smarty_tpl->tpl_vars['index']->value;?>
','', false);"<?php $_smarty_tpl->smarty->ext->_capture->close($_smarty_tpl);?>
		<button type="button" class="btn btn-danger email-address-add-button" title="<?php echo $_smarty_tpl->tpl_vars['app_strings']->value['LBL_ID_FF_ADD_EMAIL'];?>
 " <?php echo $_smarty_tpl->tpl_vars['other_attributes']->value;?>
>
			<span class="suitepicon suitepicon-action-plus"></span>			
		</button>
	</div>
	<div class="col-xs-12 email-address-lines-container">
				<div class="col-xs-12 template email-address-line-container hidden">
			<div class="col-xs-12 col-sm-6  email-address-input-container <?php if ($_smarty_tpl->tpl_vars['module']->value == "Users") {?> email-address-users-profile<?php }?>">
				<div class="input-group email-address-input-group">
					<input type="email" id="email-address-input" class="form-control" placeholder="email@example.com" title="<?php echo $_smarty_tpl->tpl_vars['app_strings']->value['LBL_EMAIL_TITLE'];?>
">
					<input type="hidden" id="record-id">
					<input type="hidden" id="verified-flag" class="verified-flag" value="true"/>
					<input type="hidden" id="verified-email-value" class="verified-email-value" value=""/>
					<input type=hidden id="<?php echo $_smarty_tpl->tpl_vars['module']->value;?>
_email_widget_id" name="<?php echo $_smarty_tpl->tpl_vars['module']->value;?>
_email_widget_id" value="">
					<input type=hidden id='emailAddressWidget' name='emailAddressWidget' value='1'>
					<span class="input-group-btn">
					<button type="button" id="email-address-remove-button" class="btn btn-danger email-address-remove-button" name="" title="<?php echo $_smarty_tpl->tpl_vars['app_strings']->value['LBL_ID_FF_REMOVE_EMAIL'];?>
">
						<span class="suitepicon suitepicon-action-minus"></span>
					</button>
				</span>
				</div>
			</div>
			<div class="col-xs-12 col-sm-6 email-address-options-container">


				<div class="col-xs-3 col-sm-2 col-md-2 col-lg-2 text-center email-address-option">
					<label class="text-sm col-xs-12"><?php echo $_smarty_tpl->tpl_vars['app_strings']->value['LBL_EMAIL_PRIMARY'];?>
</label>
					<div><input type="radio" name="" id="email-address-primary-flag" class="email-address-primary-flag" value="" enabled="true" tabindex="0" checked="true" title="<?php echo $_smarty_tpl->tpl_vars['app_strings']->value['LBL_EMAIL_PRIM_TITLE'];?>
"></div>
				</div>

				<?php if ($_smarty_tpl->tpl_vars['useReplyTo']->value == true) {?>
				<div class="col-xs-3 col-sm-2 col-md-2 col-lg-2 text-center email-address-option">
					<label class="text-sm  col-xs-12"><?php echo $_smarty_tpl->tpl_vars['app_strings']->value['LBL_EMAIL_REPLY_TO'];?>
</label>
					<div><input type="checkbox" name="" id="email-address-reply-to-flag" class="email-address-reply-to-flag" value="" enabled="true"></div>
				</div>
				<?php }?>

				<?php if ($_smarty_tpl->tpl_vars['useOptOut']->value == true) {?>
				<div class="col-xs-3 col-sm-2 col-md-2 col-lg-2 text-center email-address-option">
					<label class="text-sm col-xs-12"><?php echo $_smarty_tpl->tpl_vars['app_strings']->value['LBL_EMAIL_OPT_OUT'];?>
</label>
					<div><input type="checkbox" name="" title="<?php echo $_smarty_tpl->tpl_vars['app_strings']->value['LBL_ID_FF_OPT_OUT'];?>
" id="email-address-opt-out-flag" class="email-address-opt-out-flag" value="" enabled="true"></div>
				</div>
				<?php }?>

				<?php if ($_smarty_tpl->tpl_vars['useInvalid']->value == true) {?>
				<div class="col-xs-3 col-sm-2 col-md-2 col-lg-2 text-center email-address-option">
					<label class="text-sm col-xs-12"><?php echo $_smarty_tpl->tpl_vars['app_strings']->value['LBL_EMAIL_INVALID'];?>
</label>
					<div><input type="checkbox" name="" title="<?php echo $_smarty_tpl->tpl_vars['app_strings']->value['LBL_EMAIL_INVALID'];?>
" id="email-address-invalid-flag" class="email-address-invalid-flag" value="" enabled="true"></div>
				</div>
				<?php }?>

                <?php if ($_smarty_tpl->tpl_vars['useOptIn']->value == true) {?>
					<div class="col-xs-3 col-sm-2 col-md-2 col-lg-2 text-center email-address-option">
						<label class="text-sm col-xs-12"><?php echo $_smarty_tpl->tpl_vars['app_strings']->value['LBL_OPT_IN'];?>
</label>
						<div>
                                                    <input type="hidden" name="shouldSaveOptInFlag" value="1">
                                                    <input type="checkbox" name="" title="<?php echo $_smarty_tpl->tpl_vars['app_strings']->value['LBL_OPT_IN'];?>
" 
                                                           id="email-address-opted-in-flag" class="email-address-opted-in-flag" value="" enabled="true">
                                                </div>
					</div>
                <?php }?>
			</div>
		</div>

	</div>
</div>
<input type="hidden" name="useEmailWidget" value="true">
<?php echo '<script'; ?>
 type="text/javascript" language="javascript">
SUGAR_callsInProgress++;
var eaw = SUGAR.EmailAddressWidget.instances.<?php echo $_smarty_tpl->tpl_vars['module']->value;
echo $_smarty_tpl->tpl_vars['index']->value;?>
 = new SUGAR.EmailAddressWidget("<?php echo $_smarty_tpl->tpl_vars['module']->value;?>
");
eaw.emailView = '<?php echo $_smarty_tpl->tpl_vars['emailView']->value;?>
';
eaw.emailIsRequired = "<?php echo $_smarty_tpl->tpl_vars['required']->value;?>
";
eaw.tabIndex = '<?php echo $_smarty_tpl->tpl_vars['tabindex']->value;?>
';
var addDefaultAddress = '<?php echo $_smarty_tpl->tpl_vars['addDefaultAddress']->value;?>
';
var prefillEmailAddress = '<?php echo $_smarty_tpl->tpl_vars['prefillEmailAddresses']->value;?>
';
var prefillData = <?php echo $_smarty_tpl->tpl_vars['prefillData']->value;?>
;
if(prefillEmailAddress == 'true') {
	eaw.prefillEmailAddresses('<?php echo $_smarty_tpl->tpl_vars['module']->value;?>
emailAddressesTable<?php echo $_smarty_tpl->tpl_vars['index']->value;?>
', prefillData);
} else if(addDefaultAddress == 'true') {
	eaw.addEmailAddress('<?php echo $_smarty_tpl->tpl_vars['module']->value;?>
emailAddressesTable<?php echo $_smarty_tpl->tpl_vars['index']->value;?>
', '',true);
}
if('<?php echo $_smarty_tpl->tpl_vars['module']->value;?>
_email_widget_id') {
   document.getElementById('<?php echo $_smarty_tpl->tpl_vars['module']->value;?>
_email_widget_id').value = eaw.count;
}
SUGAR_callsInProgress--;
<?php echo '</script'; ?>
>
<?php }
}
