{* /********************************************************************************* * SugarCRM Community Edition is a customer relationship management program developed by * SugarCRM, Inc. Copyright (C) 2004-2012 SugarCRM Inc. * * 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. If the display of the logo is not reasonably feasible for * technical reasons, the Appropriate Legal Notices must display the words * "Powered by SugarCRM". ********************************************************************************/ *}
{if ! empty($view_package)} {/if} {if $rel.relationship_only} {/if} {if empty($view_package) && $rel.relationship_type != 'one-to-one'} {/if}
{if !$rel.readonly} {if empty($view_package)} {if ! empty($view_package)}   {/if} {/if} {if ($rel.from_studio || $rel.readonly && !$is_new) && $rel.relationship_type != 'one-to-one'} {/if} {if $hideLevel < 3 && ($rel.from_studio || !$rel.readonly && !$is_new)} {/if}
{$mod_strings.LBL_DROPDOWN_LANGUAGE}:  {html_options name='relationship_lang' id='relationship_lang' options=$available_languages selected=$selected_lang onchange='ModuleBuilder.moduleLoadRelationship2(document.relform.relationship_name.value, null, "true");'}
{if !empty($rel.relationship_name)} {$mod_strings.LBL_REL_NAME}: {$rel.relationship_name} {/if}
{if $rel.relationship_only} {else} {* add in subpanels and optional extended relationship condition *} {if !empty($rel.rhs_module) && $rel.relationship_type != 'one-to-one'} {if $rel.relationship_type == 'many-to-many' || $rel.relationship_type == 'many-to-one'} {else} {/if} {if $rel.relationship_type != 'many-to-one'} {else} {/if} {if $rel.relationship_type == 'many-to-many' || $rel.relationship_type == 'many-to-one'} {else}{/if} {if $rel.relationship_type != 'many-to-one'} {/if} {* add in the extended relationship condition *} {* comment out for now as almost no expressed need for this - to revert, uncomment and test, test, test... {if $rel.relationship_type == 'one-to-many'} {/if} {* one-to-many *} {* *} {/if} {* subpanels etc for all but one-to-one relationships *} {/if} {* if relationship_only *}
{$mod_strings.LBL_LHS_MODULE}{$mod_strings.LBL_REL_TYPE}{$mod_strings.LBL_RHS_MODULE}
{sugar_translate label='LBL_MODULE'}: {if $rel.readonly} {html_options disabled=true name="relationship_type" id="relationship_type_field" output=$translated_cardinality values=$cardinality selected=$selected_cardinality } {else} {html_options name="relationship_type" id="relationship_type_field" output=$translated_cardinality values=$cardinality selected=$selected_cardinality onchange='ModuleBuilder.moduleLoadRelationship2(document.relform.relationship_name.value);' } {/if} {sugar_translate label='LBL_MODULE'}: {if $rel.readonly} {else} {html_options name="rhs_module" id="rhs_mod_field" output=$translated_relatable values=$relatable selected=$rel.rhs_module onchange='ModuleBuilder.moduleLoadRelationship2(document.relform.relationship_name.value, true);'} {/if}
{$mod_strings.LBL_RELATIONSHIP_ONLY}
{sugar_translate label="LBL_REL_LABEL"}: {sugar_translate label="LBL_REL_LABEL"}:
{$mod_strings.LBL_SUBPANEL_FROM} {sugar_translate label=$rel.lhs_module}: {if $rel.readonly} {else} {html_options name="lhs_subpanel" id="lhs_subpanel" output=$lhspanels values=$lhspanels selected=$rel.lhs_subpanel alt=$mod_strings.LBL_MSUB} {/if} {$mod_strings.LBL_SUBPANEL_FROM} {sugar_translate label=$rel.rhs_module}: {if $rel.readonly} {else} {html_options name="rhs_subpanel" id="rhs_subpanel" output=$rhspanels values=$rhspanels selected=$rel.rhs_subpanel alt=$mod_strings.LBL_RSUB} {/if}
{$mod_strings.LBL_RELATIONSHIP_ROLE_ENTRIES}:
{$mod_strings.LBL_RELATIONSHIP_ROLE_COLUMN}:
{$mod_strings.LBL_RELATIONSHIP_ROLE_VALUE}: