+++ /dev/null
-{*
- +--------------------------------------------------------------------+
- | CiviCRM version 4.4 |
- +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
- +--------------------------------------------------------------------+
- | This file is a part of CiviCRM. |
- | |
- | CiviCRM is free software; you can copy, modify, and distribute it |
- | under the terms of the GNU Affero General Public License |
- | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
- | |
- | CiviCRM 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 and the CiviCRM Licensing Exception along |
- | with this program; if not, contact CiviCRM LLC |
- | at info[AT]civicrm[DOT]org. If you have questions about the |
- | GNU Affero General Public License or the licensing of CiviCRM, |
- | see the CiviCRM license FAQ at http://civicrm.org/licensing |
- +--------------------------------------------------------------------+
-*}
-{* this template is used for adding/editing/deleting activity type *}
-<h3>{if $action eq 1}{ts}New Option Value{/ts}{elseif $action eq 2}{ts}Edit Option Value{/ts}{else}{ts}Delete Option Value{/ts}{/if}</h3>
-<div class="crm-block crm-form-block crm-admin-optionvalue-form-block">
- {if $action eq 8}
- <div class="messages status no-popup">
- <div class="icon inform-icon"></div>
- {ts}WARNING: Deleting this option value will result in the loss of all records which use the option value.{/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}
- </div>
- {else}
- <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
- <table class="form-layout-compressed">
- <tr class="crm-admin-optionvalue-form-block-label">
- <td class="label">{$form.label.label}
- {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_option_value' field='label' id=$id}{/if}</td>
- <td>{$form.label.html}</td>
- </tr>
- <tr class="crm-admin-optionvalue-form-block-value">
- <td class="label">{$form.value.label}</td>
- <td>{$form.value.html}<br />
- {if $action eq 2}
- <span class="description red"><div class="icon alert-icon"></div>{ts}Changing the Value field will unlink records which have been marked with this option. This change can not be undone except by restoring the previous value.{/ts}</span>
- {/if}
- {if $config->languageLimit|@count >= 2}<br />
- <span class="description">{ts}The same option value is stored for all languages. Changing this value will change it for all languages.{/ts}</span>
- {/if}
- </td>
- </tr>
- <tr class="crm-admin-optionvalue-form-block-name">
- <td class="label">{$form.name.label}</td>
- <td>{$form.name.html}</td>
- </tr>
- <tr class="crm-admin-optionvalue-form-block-grouping">
- <td class="label">{$form.grouping.label}</td>
- <td>{$form.grouping.html}</td>
- </tr>
- {if $form.financial_account_id}
- <tr class="crm-admin-optionvalue-form-block-financialAccount">
- <td class="label">{$form.financial_account_id.label}</td>
- <td>{$form.financial_account_id.html}</td>
- </tr>
- {/if}
- <tr class="crm-admin-optionvalue-form-block-description">
- <td class="label">{$form.description.label}</td>
- <td>{$form.description.html}</td>
- </tr>
- <tr class="crm-admin-optionvalue-form-block-weight">
- <td class="label">{$form.weight.label}</td>
- <td>{$form.weight.html}</td>
- </tr>
- {if $form.is_default}
- <tr class="crm-admin-optionvalue-form-block-is_default">
- <td class="label">{$form.is_default.label}</td>
- <td>{$form.is_default.html}</td>
- </tr>
- {/if}
- <tr class="crm-admin-optionvalue-form-block-is_active">
- <td class="label">{$form.is_active.label}</td>
- <td>{$form.is_active.html}</td>
- </tr>
- <tr class="crm-admin-optionvalue-form-block-is_optgroup">
- <td class="label">{$form.is_optgroup.label}</td>
- <td>{$form.is_optgroup.html}</td>
- </tr>
- {if $form.contactOptions}{* contactOptions is exposed for email/postal greeting and addressee types to set filter for contact types *}
- <tr class="crm-admin-optionvalue-form-block-contactOptions">
- <td class="label">{$form.contactOptions.label}</td>
- <td>{$form.contactOptions.html}</td>
- </tr>
- {/if}
- </table>
- {/if}
- <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
-</div>
+++ /dev/null
-{*
- +--------------------------------------------------------------------+
- | CiviCRM version 4.4 |
- +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
- +--------------------------------------------------------------------+
- | This file is a part of CiviCRM. |
- | |
- | CiviCRM is free software; you can copy, modify, and distribute it |
- | under the terms of the GNU Affero General Public License |
- | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
- | |
- | CiviCRM 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 and the CiviCRM Licensing Exception along |
- | with this program; if not, contact CiviCRM LLC |
- | at info[AT]civicrm[DOT]org. If you have questions about the |
- | GNU Affero General Public License or the licensing of CiviCRM, |
- | see the CiviCRM license FAQ at http://civicrm.org/licensing |
- +--------------------------------------------------------------------+
-*}
-{* Admin page for browsing Option Group value*}
-{if $action eq 1 or $action eq 2 or $action eq 8}
- {include file="CRM/Admin/Form/OptionValue.tpl"}
-{else}
-<div id="help">
- {ts}The existing option choices for this option group are listed below. You can add, edit or delete them from this screen.{/ts}
-</div>
-{/if}
-
-{if $rows}
-
-<div id="browseValues">
- {strip}
- {* handle enable/disable actions*}
- {include file="CRM/common/enableDisableApi.tpl"}
- {include file="CRM/common/crmeditable.tpl"}
- {include file="CRM/common/jsortable.tpl"}
- <table id="options" class="display">
- <thead>
- <tr>
- <th>{ts}Title{/ts}</th>
- <th>{ts}Value{/ts}</th>
- <th>{ts}Description{/ts}</th>
- <th>{ts}Weight{/ts}</th>
- {if $showIsDefault}
- <th>{ts}Default{/ts}</th>
- {/if}
- <th>{ts}Reserved?{/ts}</th>
- <th>{ts}Enabled?{/ts}</th>
- <th></th>
- </tr>
- </thead>
- {foreach from=$rows item=row}
- <tr id="optionValue-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"} {$row.class}{if NOT $row.is_active} disabled{/if}">
- <td class="crm-admin-optionValue-label crm-editable" data-field="label">{$row.label}</td>
- <td class="crm-admin-optionValue-value">{$row.value}</td>
- <td class="crm-admin-optionValue-description">{$row.description}</td>
- <td class="nowrap crm-admin-optionValue-weight">{$row.weight}</td>
- {if $showIsDefault}
- <td class="crm-admin-optionValue-default_value">{$row.default_value}</td>
- {/if}
- <td class="crm-admin-optionValue-is_reserved">{if $row.is_reserved eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
- <td id="row_{$row.id}_status" class="crm-admin-optionValue-is_active">{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
- <td>{$row.action|replace:'xx':$row.id}</td>
- </tr>
- {/foreach}
- </table>
- {/strip}
-
- {if $action eq 16}
- <div class="action-link">
- <a href="{crmURL q="action=add&reset=1&gid=$gid"}" id="newOptionValue" class="button"><span><div class="icon add-icon"></div>{ts}Add Option Value{/ts}</span></a>
- </div>
- {/if}
-</div>
-{elseif $action eq 16}
- <div class="messages status no-popup">
- <img src="{$config->resourceBase}i/Inform.gif" alt="{ts}status{/ts}"/>
- {capture assign=crmURL}{crmURL p='civicrm/admin/optionValue' q="action=add&reset=1&gid=$gid"}{/capture}
- {ts 1=$crmURL}There are no option choices entered for this option group. You can <a href='%1'>add one</a>.{/ts}
- </div>
-{/if}