From f4941eb66f95c6d30532f8dd503870492b34c2c0 Mon Sep 17 00:00:00 2001 From: Matthew Wire Date: Thu, 5 Mar 2020 22:02:28 +0000 Subject: [PATCH] Cleanup ParticipantsAndPrices template for event cart --- .../Form/Checkout/ParticipantsAndPrices.tpl | 145 +++++++++--------- 1 file changed, 74 insertions(+), 71 deletions(-) diff --git a/templates/CRM/Event/Cart/Form/Checkout/ParticipantsAndPrices.tpl b/templates/CRM/Event/Cart/Form/Checkout/ParticipantsAndPrices.tpl index 1b7251641e..5b465d625a 100644 --- a/templates/CRM/Event/Cart/Form/Checkout/ParticipantsAndPrices.tpl +++ b/templates/CRM/Event/Cart/Form/Checkout/ParticipantsAndPrices.tpl @@ -1,87 +1,90 @@ {include file="CRM/common/TrackingFields.tpl"} -{if $contact} -
- {ts 1=$contact.display_name}Welcome %1{/ts}. ({ts 1=$contact.display_name}Not %1, or want to register a different person{/ts}?)
-{/if} +
-{foreach from=$events_in_carts key=index item=event_in_cart} - {if !$event_in_cart.main_conference_event_id} - {assign var=event_id value=$event_in_cart->event_id} -

- {$event_in_cart->event->title} ({$event_in_cart->event->start_date|date_format:"%m/%d/%Y %l:%M%p"}) -

-
-
- {foreach from=$event_in_cart->participants item=participant} - {include file="CRM/Event/Cart/Form/Checkout/Participant.tpl"} - {/foreach} - {ts}Add Another Participant{/ts} -
- {if $event_in_cart->event->is_monetary } -
- {foreach from=$price_fields_for_event.$event_id key=price_index item=price_field_name} -
- {$form.$price_field_name.label} -
-
- {$form.$price_field_name.html|replace:'/label> ':'/label>
'} -
- {/foreach} -
- {else} -

{ts}There is no charge for this event.{/ts}

+ {if $contact} + + {/if} + + {foreach from=$events_in_carts key=index item=event_in_cart} + {if !$event_in_cart.main_conference_event_id} + {assign var=event_id value=$event_in_cart->event_id} +

+ {$event_in_cart->event->title} ({$event_in_cart->event->start_date|date_format:"%m/%d/%Y %l:%M%p"}) +

+
+
+ {foreach from=$event_in_cart->participants item=participant} + {include file="CRM/Event/Cart/Form/Checkout/Participant.tpl"} + {/foreach} + {ts}Add Another Participant{/ts} +
+ {if $event_in_cart->event->is_monetary} +
+ {foreach from=$price_fields_for_event.$event_id key=price_index item=price_field_name} +
+ {$form.$price_field_name.label} +
+
+ {$form.$price_field_name.html|replace:'/label> ':'/label>
'} +
+ {/foreach} +
+ {else} +

{ts}There is no charge for this event.{/ts}

+ {/if} +
{/if} -
- {/if} -{/foreach} + {/foreach} -
- {include file="CRM/common/formButtons.tpl" location="bottom"} -
+
+ {include file="CRM/common/formButtons.tpl" location="bottom"} +
-{include file="CRM/Event/Cart/Form/viewCartLink.tpl"} + {include file="CRM/Event/Cart/Form/viewCartLink.tpl"} +
{literal} {/literal} -- 2.25.1