<?php
/* Smarty version 4.3.2, created on 2024-05-28 16:14:31
  from '/var/www/html/public/legacy/include/SugarFields/Fields/Address/en_us.EditView.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.3.2',
  'unifunc' => 'content_665602e7132819_77633221',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'edf57acd8e78c54409d56d652edb9cec9aef6877' => 
    array (
      0 => '/var/www/html/public/legacy/include/SugarFields/Fields/Address/en_us.EditView.tpl',
      1 => 1709743132,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_665602e7132819_77633221 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_checkPlugins(array(0=>array('file'=>'/var/www/html/public/legacy/include/Smarty/plugins/modifier.in_array.php','function'=>'smarty_modifier_in_array',),));
?>
{*
/**
 *
 * SugarCRM Community Edition is a customer relationship management program developed by
 * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
 *
 * SuiteCRM is an extension to SugarCRM Community Edition developed by SalesAgility Ltd.
 * Copyright (C) 2011 - 2019 SalesAgility Ltd.
 *
 * This program is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License version 3 as published by the
 * Free Software Foundation with the addition of the following permission added
 * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
 * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
 * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along with
 * this program; if not, see http://www.gnu.org/licenses or write to the Free
 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 * 02110-1301 USA.
 *
 * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
 * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
 *
 * The interactive user interfaces in modified source and object code versions
 * of this program must display Appropriate Legal Notices, as required under
 * Section 5 of the GNU Affero General Public License version 3.
 *
 * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
 * these Appropriate Legal Notices must retain the display of the "Powered by
 * SugarCRM" logo and "Supercharged by SuiteCRM" logo. If the display of the logos is not
 * reasonably feasible for technical reasons, the Appropriate Legal Notices must
 * display the words "Powered by SugarCRM" and "Supercharged by SuiteCRM".
 */
*}
<?php echo '<script'; ?>
 src='{sugar_getjspath file="include/SugarFields/Fields/Address/SugarFieldAddress.js"}'><?php echo '</script'; ?>
>
<?php $_smarty_tpl->_assignInScope('key', mb_strtoupper((string) $_smarty_tpl->tpl_vars['displayParams']->value['key'] ?? '', 'UTF-8'));
$_smarty_tpl->_assignInScope('street', ($_smarty_tpl->tpl_vars['displayParams']->value['key']).('_address_street'));
$_smarty_tpl->_assignInScope('city', ($_smarty_tpl->tpl_vars['displayParams']->value['key']).('_address_city'));
$_smarty_tpl->_assignInScope('state', ($_smarty_tpl->tpl_vars['displayParams']->value['key']).('_address_state'));
$_smarty_tpl->_assignInScope('country', ($_smarty_tpl->tpl_vars['displayParams']->value['key']).('_address_country'));
$_smarty_tpl->_assignInScope('postalcode', ($_smarty_tpl->tpl_vars['displayParams']->value['key']).('_address_postalcode'));?>
<fieldset id='<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
_address_fieldset'>
    <legend>{sugar_translate label='LBL_<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
_ADDRESS' module='<?php echo $_smarty_tpl->tpl_vars['module']->value;?>
'}</legend>
    <table border="0" cellspacing="1" cellpadding="0" class="edit" width="100%">
        <tr>
            <td valign="top" id="<?php echo $_smarty_tpl->tpl_vars['street']->value;?>
_label" width='25%' scope='row'>
                <label for="<?php echo $_smarty_tpl->tpl_vars['street']->value;?>
">{sugar_translate label='LBL_<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
_STREET' module='<?php echo $_smarty_tpl->tpl_vars['module']->value;?>
'}:</label>
                {if $fields.<?php echo $_smarty_tpl->tpl_vars['street']->value;?>
.required || <?php if (smarty_modifier_in_array(mb_strtolower((string) $_smarty_tpl->tpl_vars['street']->value, 'UTF-8'),$_smarty_tpl->tpl_vars['displayParams']->value['required'])) {?>true<?php } else { ?>false<?php }?>}
                <span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span>
                {/if}
            </td>
            <td width="*">
                <?php if ($_smarty_tpl->tpl_vars['displayParams']->value['maxlength']) {?>
                <textarea id="<?php echo $_smarty_tpl->tpl_vars['street']->value;?>
" name="<?php echo $_smarty_tpl->tpl_vars['street']->value;?>
" title='<?php echo $_smarty_tpl->tpl_vars['vardef']->value['help'];?>
' maxlength="<?php echo $_smarty_tpl->tpl_vars['displayParams']->value['maxlength'];?>
"
                          rows="<?php echo (($tmp = $_smarty_tpl->tpl_vars['displayParams']->value['rows'] ?? null)===null||$tmp==='' ? 4 ?? null : $tmp);?>
" cols="<?php echo (($tmp = $_smarty_tpl->tpl_vars['displayParams']->value['cols'] ?? null)===null||$tmp==='' ? 60 ?? null : $tmp);?>
"
                          tabindex="<?php echo $_smarty_tpl->tpl_vars['tabindex']->value;?>
">{$fields.<?php echo $_smarty_tpl->tpl_vars['street']->value;?>
.value}</textarea>
                <?php } else { ?>
                <textarea id="<?php echo $_smarty_tpl->tpl_vars['street']->value;?>
" name="<?php echo $_smarty_tpl->tpl_vars['street']->value;?>
" title='<?php echo $_smarty_tpl->tpl_vars['vardef']->value['help'];?>
' rows="<?php echo (($tmp = $_smarty_tpl->tpl_vars['displayParams']->value['rows'] ?? null)===null||$tmp==='' ? 4 ?? null : $tmp);?>
"
                          cols="<?php echo (($tmp = $_smarty_tpl->tpl_vars['displayParams']->value['cols'] ?? null)===null||$tmp==='' ? 60 ?? null : $tmp);?>
"
                          tabindex="<?php echo $_smarty_tpl->tpl_vars['tabindex']->value;?>
">{$fields.<?php echo $_smarty_tpl->tpl_vars['street']->value;?>
.value}</textarea>
                <?php }?>
            </td>
        </tr>

        <tr>

            <td id="<?php echo $_smarty_tpl->tpl_vars['city']->value;?>
_label" width='<?php echo $_smarty_tpl->tpl_vars['def']->value['templateMeta']['widths'][(isset($_smarty_tpl->tpl_vars['__smarty_foreach_colIteration']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_foreach_colIteration']->value['index'] : null)]['label'];?>
%'
                scope='row'>
                <label for="<?php echo $_smarty_tpl->tpl_vars['city']->value;?>
">{sugar_translate label='LBL_CITY' module='<?php echo $_smarty_tpl->tpl_vars['module']->value;?>
'}:
                    {if $fields.<?php echo $_smarty_tpl->tpl_vars['city']->value;?>
.required || <?php if (smarty_modifier_in_array(mb_strtolower((string) $_smarty_tpl->tpl_vars['city']->value, 'UTF-8'),$_smarty_tpl->tpl_vars['displayParams']->value['required'])) {?>true<?php } else { ?>false<?php }?>}
                    <span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span>
                    {/if}
            </td>
            <td>
                <input type="text" name="<?php echo $_smarty_tpl->tpl_vars['city']->value;?>
" id="<?php echo $_smarty_tpl->tpl_vars['city']->value;?>
" title='{$fields.<?php echo $_smarty_tpl->tpl_vars['city']->value;?>
.help}' size="<?php echo (($tmp = $_smarty_tpl->tpl_vars['displayParams']->value['size'] ?? null)===null||$tmp==='' ? 30 ?? null : $tmp);?>
"
                       <?php if (!empty($_smarty_tpl->tpl_vars['vardef']->value['len'])) {?>maxlength='<?php echo $_smarty_tpl->tpl_vars['vardef']->value['len'];?>
'<?php }?> value='{$fields.<?php echo $_smarty_tpl->tpl_vars['city']->value;?>
.value}'
                       tabindex="<?php echo $_smarty_tpl->tpl_vars['tabindex']->value;?>
">
            </td>
        </tr>

        <tr>
            <td id="<?php echo $_smarty_tpl->tpl_vars['state']->value;?>
_label" width='<?php echo $_smarty_tpl->tpl_vars['def']->value['templateMeta']['widths'][(isset($_smarty_tpl->tpl_vars['__smarty_foreach_colIteration']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_foreach_colIteration']->value['index'] : null)]['label'];?>
%'
                scope='row'>
                <label for="<?php echo $_smarty_tpl->tpl_vars['state']->value;?>
">{sugar_translate label='LBL_STATE' module='<?php echo $_smarty_tpl->tpl_vars['module']->value;?>
'}:</label>
                {if $fields.<?php echo $_smarty_tpl->tpl_vars['state']->value;?>
.required || <?php if (smarty_modifier_in_array(mb_strtolower((string) $_smarty_tpl->tpl_vars['state']->value, 'UTF-8'),$_smarty_tpl->tpl_vars['displayParams']->value['required'])) {?>true<?php } else { ?>false<?php }?>}
                <span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span>
                {/if}
            </td>
            <td>
                <input type="text" name="<?php echo $_smarty_tpl->tpl_vars['state']->value;?>
" id="<?php echo $_smarty_tpl->tpl_vars['state']->value;?>
" title='{$fields.<?php echo $_smarty_tpl->tpl_vars['state']->value;?>
.help}' size="<?php echo (($tmp = $_smarty_tpl->tpl_vars['displayParams']->value['size'] ?? null)===null||$tmp==='' ? 30 ?? null : $tmp);?>
"
                       <?php if (!empty($_smarty_tpl->tpl_vars['vardef']->value['len'])) {?>maxlength='<?php echo $_smarty_tpl->tpl_vars['vardef']->value['len'];?>
'<?php }?> value='{$fields.<?php echo $_smarty_tpl->tpl_vars['state']->value;?>
.value}'
                       tabindex="<?php echo $_smarty_tpl->tpl_vars['tabindex']->value;?>
">
            </td>
        </tr>

        <tr>

            <td id="<?php echo $_smarty_tpl->tpl_vars['postalcode']->value;?>
_label"
                width='<?php echo $_smarty_tpl->tpl_vars['def']->value['templateMeta']['widths'][(isset($_smarty_tpl->tpl_vars['__smarty_foreach_colIteration']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_foreach_colIteration']->value['index'] : null)]['label'];?>
%' scope='row'>

                <label for="<?php echo $_smarty_tpl->tpl_vars['postalcode']->value;?>
">{sugar_translate label='LBL_POSTAL_CODE' module='<?php echo $_smarty_tpl->tpl_vars['module']->value;?>
'}:</label>
                {if $fields.<?php echo $_smarty_tpl->tpl_vars['postalcode']->value;?>
.required || <?php if (smarty_modifier_in_array(mb_strtolower((string) $_smarty_tpl->tpl_vars['postalcode']->value, 'UTF-8'),$_smarty_tpl->tpl_vars['displayParams']->value['required'])) {?>true<?php } else { ?>false<?php }?>}
                <span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span>
                {/if}
            </td>
            <td>
                <input type="text" name="<?php echo $_smarty_tpl->tpl_vars['postalcode']->value;?>
" id="<?php echo $_smarty_tpl->tpl_vars['postalcode']->value;?>
" title='{$fields.<?php echo $_smarty_tpl->tpl_vars['postalcode']->value;?>
.help}' size="<?php echo (($tmp = $_smarty_tpl->tpl_vars['displayParams']->value['size'] ?? null)===null||$tmp==='' ? 30 ?? null : $tmp);?>
"
                       <?php if (!empty($_smarty_tpl->tpl_vars['vardef']->value['len'])) {?>maxlength='<?php echo $_smarty_tpl->tpl_vars['vardef']->value['len'];?>
'<?php }?>
                       value='{$fields.<?php echo $_smarty_tpl->tpl_vars['postalcode']->value;?>
.value}' tabindex="<?php echo $_smarty_tpl->tpl_vars['tabindex']->value;?>
">
            </td>
        </tr>

        <tr>

            <td id="<?php echo $_smarty_tpl->tpl_vars['country']->value;?>
_label" width='<?php echo $_smarty_tpl->tpl_vars['def']->value['templateMeta']['widths'][(isset($_smarty_tpl->tpl_vars['__smarty_foreach_colIteration']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_foreach_colIteration']->value['index'] : null)]['label'];?>
%'
                scope='row'>

                <label for="<?php echo $_smarty_tpl->tpl_vars['country']->value;?>
">{sugar_translate label='LBL_COUNTRY' module='<?php echo $_smarty_tpl->tpl_vars['module']->value;?>
'}:</label>
                {if $fields.<?php echo $_smarty_tpl->tpl_vars['country']->value;?>
.required || <?php if (smarty_modifier_in_array(mb_strtolower((string) $_smarty_tpl->tpl_vars['country']->value, 'UTF-8'),$_smarty_tpl->tpl_vars['displayParams']->value['required'])) {?>true<?php } else { ?>false<?php }?>}
                <span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span>
                {/if}
            </td>
            <td>
                <input type="text" name="<?php echo $_smarty_tpl->tpl_vars['country']->value;?>
" id="<?php echo $_smarty_tpl->tpl_vars['country']->value;?>
" title='{$fields.<?php echo $_smarty_tpl->tpl_vars['country']->value;?>
.help}' size="<?php echo (($tmp = $_smarty_tpl->tpl_vars['displayParams']->value['size'] ?? null)===null||$tmp==='' ? 30 ?? null : $tmp);?>
"
                       <?php if (!empty($_smarty_tpl->tpl_vars['vardef']->value['len'])) {?>maxlength='<?php echo $_smarty_tpl->tpl_vars['vardef']->value['len'];?>
'<?php }?> value='{$fields.<?php echo $_smarty_tpl->tpl_vars['country']->value;?>
.value}'
                       tabindex="<?php echo $_smarty_tpl->tpl_vars['tabindex']->value;?>
">
            </td>
        </tr>

        <?php if ($_smarty_tpl->tpl_vars['displayParams']->value['copy']) {?>
        <tr>
            <td scope='row' NOWRAP>
                {sugar_translate label='LBL_COPY_ADDRESS_FROM_LEFT' module=''}:
            </td>
            <td>
                <input id="<?php echo $_smarty_tpl->tpl_vars['displayParams']->value['key'];?>
_checkbox" name="<?php echo $_smarty_tpl->tpl_vars['displayParams']->value['key'];?>
_checkbox" type="checkbox"
                       onclick="<?php echo $_smarty_tpl->tpl_vars['displayParams']->value['key'];?>
_address.syncFields();">
            </td>
        </tr>
        <?php } else { ?>
        <tr>
            <td colspan='2' NOWRAP>&nbsp;</td>
        </tr>
        <?php }?>
    </table>
</fieldset>
<?php echo '<script'; ?>
 type="text/javascript">
  SUGAR.util.doWhen("typeof(SUGAR.AddressField) != 'undefined'", function () {ldelim}
      <?php echo $_smarty_tpl->tpl_vars['displayParams']->value['key'];?>
_address = new SUGAR.AddressField("<?php echo $_smarty_tpl->tpl_vars['displayParams']->value['key'];?>
_checkbox", '<?php echo $_smarty_tpl->tpl_vars['displayParams']->value['copy'];?>
', '<?php echo $_smarty_tpl->tpl_vars['displayParams']->value['key'];?>
');
      {rdelim});
<?php echo '</script'; ?>
>
<?php }
}
