Account Registrations Detail Code Sample

Here is some example code to build an account registrations detail page for the calendar. This is just an example and you have the flexibility to lay out the page to suit your own design.

Below is a screenshot of the layout that this code will build. 


Below is the HTML / Branch code that would go in the Template field for the Account Registrations Detail content template. 

  <a href="{#registration.event.url}">View class details</a>
  <br />Class date: {}<br />
  <br />Time:
    {if #registration.event.time.type == 'timed'}
      {#registration.event.time.start} to {#registration.event.time.end}
    {elseif #registration.event.time.type == 'start'}
    {if #registration.fee}
      <br />Fee: {#registration.fee}
<p>Registered as:<br />
  {if}{}<br />{/if}
  {#registration.firstName} {#registration.lastName}<br />
  {}<br />