From 80cc23f49043b87b34938f2dbccb461c04e492cf Mon Sep 17 00:00:00 2001 From: priyankakaran26 Date: Sat, 6 Sep 2014 00:02:03 +0100 Subject: [PATCH] repeat mode confirmation dialog generalization --- templates/CRM/Event/Form/ConfirmSubmit.tpl | 134 ------------------ .../Form/ManageEvent/ConfirmRepeatMode.tpl | 117 +++++++++++++++ .../CRM/Event/Form/ManageEvent/EventInfo.tpl | 1 - templates/CRM/Event/Form/ManageEvent/Fee.tpl | 1 - .../CRM/Event/Form/ManageEvent/Location.tpl | 1 - .../Event/Form/ManageEvent/Registration.tpl | 1 - .../Form/ManageEvent/ScheduleReminders.tpl | 1 - templates/CRM/Event/Form/ManageEvent/Tab.tpl | 4 +- templates/CRM/Friend/Form/Friend.tpl | 1 - templates/CRM/PCP/Form/PCP.tpl | 1 - 10 files changed, 120 insertions(+), 142 deletions(-) delete mode 100644 templates/CRM/Event/Form/ConfirmSubmit.tpl create mode 100644 templates/CRM/Event/Form/ManageEvent/ConfirmRepeatMode.tpl diff --git a/templates/CRM/Event/Form/ConfirmSubmit.tpl b/templates/CRM/Event/Form/ConfirmSubmit.tpl deleted file mode 100644 index bfcb4cc8e4..0000000000 --- a/templates/CRM/Event/Form/ConfirmSubmit.tpl +++ /dev/null @@ -1,134 +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 | - +--------------------------------------------------------------------+ -*} - - -{literal} - -{/literal} -{*{foreach from=$form.buttons item=button key=key name=btns} - {if $key|substring:0:4 EQ '_qf_'} - {/if} -{/foreach}*} -{if $isRepeat eq 'repeat'} - {literal} - - {/literal} -{/if} diff --git a/templates/CRM/Event/Form/ManageEvent/ConfirmRepeatMode.tpl b/templates/CRM/Event/Form/ManageEvent/ConfirmRepeatMode.tpl new file mode 100644 index 0000000000..450087f857 --- /dev/null +++ b/templates/CRM/Event/Form/ManageEvent/ConfirmRepeatMode.tpl @@ -0,0 +1,117 @@ +{* + +--------------------------------------------------------------------+ + | 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 | + +--------------------------------------------------------------------+ +*} + + + +{literal} + +{/literal} + + +{if $isRepeat eq 'repeat'} +{literal} + +{/literal} +{/if} diff --git a/templates/CRM/Event/Form/ManageEvent/EventInfo.tpl b/templates/CRM/Event/Form/ManageEvent/EventInfo.tpl index 92923e3582..8957c3b6e0 100644 --- a/templates/CRM/Event/Form/ManageEvent/EventInfo.tpl +++ b/templates/CRM/Event/Form/ManageEvent/EventInfo.tpl @@ -152,7 +152,6 @@
{include file="CRM/Form/validate.tpl"} {*include custom data js file*} - {include file="CRM/Event/Form/ConfirmSubmit.tpl"} {literal} {/literal} {/if} - {include file="CRM/Event/Form/ConfirmSubmit.tpl"}
{include file="CRM/common/formButtons.tpl" location="bottom"}
diff --git a/templates/CRM/Event/Form/ManageEvent/Tab.tpl b/templates/CRM/Event/Form/ManageEvent/Tab.tpl index c77a9455ab..eca262bef7 100644 --- a/templates/CRM/Event/Form/ManageEvent/Tab.tpl +++ b/templates/CRM/Event/Form/ManageEvent/Tab.tpl @@ -102,7 +102,9 @@ CRM.$(function($) { $('#crm-main-content-wrapper').on('keyup change', 'input#title', function() { $('#crm-event-name-page-title').text($(this).val()); }); - + }); {/literal} + +{include file="CRM/Event/Form/ManageEvent/ConfirmRepeatMode.tpl"} diff --git a/templates/CRM/Friend/Form/Friend.tpl b/templates/CRM/Friend/Form/Friend.tpl index 74e0798512..2e8f85966d 100644 --- a/templates/CRM/Friend/Form/Friend.tpl +++ b/templates/CRM/Friend/Form/Friend.tpl @@ -109,7 +109,6 @@ - {include file="CRM/Event/Form/ConfirmSubmit.tpl"}
{include file="CRM/common/formButtons.tpl" location="bottom"}
diff --git a/templates/CRM/PCP/Form/PCP.tpl b/templates/CRM/PCP/Form/PCP.tpl index ecd5cc0e8b..3bdb87907e 100644 --- a/templates/CRM/PCP/Form/PCP.tpl +++ b/templates/CRM/PCP/Form/PCP.tpl @@ -90,7 +90,6 @@ {/crmRegion} -{include file="CRM/Event/Form/ConfirmSubmit.tpl"}
{include file="CRM/common/formButtons.tpl" location="bottom"}
{include file="CRM/common/showHideByFieldValue.tpl" -- 2.25.1