| 1 | {* |
| 2 | +--------------------------------------------------------------------+ |
| 3 | | CiviCRM version 4.5 | |
| 4 | +--------------------------------------------------------------------+ |
| 5 | | Copyright CiviCRM LLC (c) 2004-2014 | |
| 6 | +--------------------------------------------------------------------+ |
| 7 | | This file is a part of CiviCRM. | |
| 8 | | | |
| 9 | | CiviCRM is free software; you can copy, modify, and distribute it | |
| 10 | | under the terms of the GNU Affero General Public License | |
| 11 | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | |
| 12 | | | |
| 13 | | CiviCRM is distributed in the hope that it will be useful, but | |
| 14 | | WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 15 | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
| 16 | | See the GNU Affero General Public License for more details. | |
| 17 | | | |
| 18 | | You should have received a copy of the GNU Affero General Public | |
| 19 | | License and the CiviCRM Licensing Exception along | |
| 20 | | with this program; if not, contact CiviCRM LLC | |
| 21 | | at info[AT]civicrm[DOT]org. If you have questions about the | |
| 22 | | GNU Affero General Public License or the licensing of CiviCRM, | |
| 23 | | see the CiviCRM license FAQ at http://civicrm.org/licensing | |
| 24 | +--------------------------------------------------------------------+ |
| 25 | *} |
| 26 | {* this template is used for adding/editing relationship types *} |
| 27 | <h3>{if $action eq 1}{ts}New Relationship Type{/ts}{elseif $action eq 2}{ts}Edit Relationship Type{/ts}{elseif $action eq 8}{ts}Delete Relationship Type{/ts}{else}{ts}View Relationship Type{/ts}{/if}</h3> |
| 28 | <div class="crm-block crm-form-block crm-relationship-type-form-block"> |
| 29 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div> |
| 30 | {if $action eq 8} |
| 31 | <div class="messages status no-popup"> |
| 32 | <div class="icon inform-icon"></div> |
| 33 | {ts}WARNING: Deleting this option will result in the loss of all Relationship records of this type.{/ts} {ts}This may mean the loss of a substantial amount of data, and the action cannot be undone.{/ts} {ts}Do you want to continue?{/ts} |
| 34 | |
| 35 | |
| 36 | </div> |
| 37 | {else} |
| 38 | <table class="form-layout-compressed"> |
| 39 | <tr class="crm-relationship-type-form-block-label_a_b"> |
| 40 | <td class="label">{$form.label_a_b.label}</td> |
| 41 | <td>{$form.label_a_b.html}<br /> |
| 42 | <span class="description">{ts}Label for the relationship from Contact A to Contact B. EXAMPLE: Contact A is 'Parent of' Contact B.{/ts}</span></td> |
| 43 | </tr> |
| 44 | <tr class="crm-relationship-type-form-block-label_b_a"> |
| 45 | <td class="label">{$form.label_b_a.label}</td> |
| 46 | <td>{$form.label_b_a.html}<br /> |
| 47 | <span class="description">{ts}Label for the relationship from Contact B to Contact A. EXAMPLE: Contact B is 'Child of' Contact A. You may leave this blank for relationships where the name is the same in both directions (e.g. Spouse).{/ts}</span></td> |
| 48 | </tr> |
| 49 | <tr class="crm-relationship-type-form-block-contact_types_a"> |
| 50 | <td class="label">{$form.contact_types_a.label}</td> |
| 51 | <td>{$form.contact_types_a.html}</td> |
| 52 | </tr> |
| 53 | <tr class="crm-relationship-type-form-block-contact_types_b"> |
| 54 | <td class="label">{$form.contact_types_b.label}</td> |
| 55 | <td>{$form.contact_types_b.html}</td> |
| 56 | </tr> |
| 57 | <tr class="crm-relationship-type-form-block-description"> |
| 58 | <td class="label">{$form.description.label}</td> |
| 59 | <td>{$form.description.html}</td> |
| 60 | </tr> |
| 61 | <tr class="crm-relationship-type-form-block-is_active"> |
| 62 | <td class="label">{$form.is_active.label}</td> |
| 63 | <td>{$form.is_active.html}</td> |
| 64 | </tr> |
| 65 | </table> |
| 66 | {/if} |
| 67 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div> |
| 68 | </div> |