From 820bd3f1218ef7a4612bf912333bc57650e04e65 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Fri, 7 Mar 2014 15:52:12 -0500 Subject: [PATCH] CRM-13970 - Remove unused templates --- templates/CRM/Admin/Form/OptionValue.tpl | 98 ---------------------- templates/CRM/Admin/Page/OptionValue.tpl | 87 ------------------- templates/CRM/Campaign/Form/SurveyType.tpl | 2 +- 3 files changed, 1 insertion(+), 186 deletions(-) delete mode 100644 templates/CRM/Admin/Form/OptionValue.tpl delete mode 100644 templates/CRM/Admin/Page/OptionValue.tpl diff --git a/templates/CRM/Admin/Form/OptionValue.tpl b/templates/CRM/Admin/Form/OptionValue.tpl deleted file mode 100644 index 4bf41d3a5b..0000000000 --- a/templates/CRM/Admin/Form/OptionValue.tpl +++ /dev/null @@ -1,98 +0,0 @@ -{* - +--------------------------------------------------------------------+ - | 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 *} -

{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}

-
- {if $action eq 8} -
-
- {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} -
- {else} -
{include file="CRM/common/formButtons.tpl" location="top"}
- - - - - - - - - - - - - - - - - - {if $form.financial_account_id} - - - - - {/if} - - - - - - - - - {if $form.is_default} - - - - - {/if} - - - - - - - - - {if $form.contactOptions}{* contactOptions is exposed for email/postal greeting and addressee types to set filter for contact types *} - - - - - {/if} -
{$form.label.label} - {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_option_value' field='label' id=$id}{/if}{$form.label.html}
{$form.value.label}{$form.value.html}
- {if $action eq 2} -
{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}
- {/if} - {if $config->languageLimit|@count >= 2}
- {ts}The same option value is stored for all languages. Changing this value will change it for all languages.{/ts} - {/if} -
{$form.name.label}{$form.name.html}
{$form.grouping.label}{$form.grouping.html}
{$form.financial_account_id.label}{$form.financial_account_id.html}
{$form.description.label}{$form.description.html}
{$form.weight.label}{$form.weight.html}
{$form.is_default.label}{$form.is_default.html}
{$form.is_active.label}{$form.is_active.html}
{$form.is_optgroup.label}{$form.is_optgroup.html}
{$form.contactOptions.label}{$form.contactOptions.html}
- {/if} -
{include file="CRM/common/formButtons.tpl" location="bottom"}
-
diff --git a/templates/CRM/Admin/Page/OptionValue.tpl b/templates/CRM/Admin/Page/OptionValue.tpl deleted file mode 100644 index 4a9d60038c..0000000000 --- a/templates/CRM/Admin/Page/OptionValue.tpl +++ /dev/null @@ -1,87 +0,0 @@ -{* - +--------------------------------------------------------------------+ - | 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} -
- {ts}The existing option choices for this option group are listed below. You can add, edit or delete them from this screen.{/ts} -
-{/if} - -{if $rows} - -
- {strip} - {* handle enable/disable actions*} - {include file="CRM/common/enableDisableApi.tpl"} - {include file="CRM/common/crmeditable.tpl"} - {include file="CRM/common/jsortable.tpl"} - - - - - - - - {if $showIsDefault} - - {/if} - - - - - - {foreach from=$rows item=row} - - - - - - {if $showIsDefault} - - {/if} - - - - - {/foreach} -
{ts}Title{/ts}{ts}Value{/ts}{ts}Description{/ts}{ts}Weight{/ts}{ts}Default{/ts}{ts}Reserved?{/ts}{ts}Enabled?{/ts}
{$row.label}{$row.value}{$row.description}{$row.weight}{$row.default_value}{if $row.is_reserved eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}{$row.action|replace:'xx':$row.id}
- {/strip} - - {if $action eq 16} - - {/if} -
-{elseif $action eq 16} -
- {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 add one.{/ts} -
-{/if} diff --git a/templates/CRM/Campaign/Form/SurveyType.tpl b/templates/CRM/Campaign/Form/SurveyType.tpl index a6b5e9238a..9e26a0e5fe 100644 --- a/templates/CRM/Campaign/Form/SurveyType.tpl +++ b/templates/CRM/Campaign/Form/SurveyType.tpl @@ -1 +1 @@ -{include file="CRM/Admin/Form/OptionValue.tpl" } \ No newline at end of file +{include file="CRM/Admin/Form/Options.tpl" } -- 2.25.1