Advertisement
DataCCIW

RegistrationLinksInfo

Aug 8th, 2022
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. {% assign ri = PageParameter.RegistrationInstanceId %}
  2.  
  3. {% sql %}
  4. SELECT RI.Id, RI.IsActive, L.UrlSlug, G.Name as GroupName
  5. FROM
  6. [RegistrationInstance] RI LEFT JOIN
  7. [EventItemOccurrenceGroupMap] L ON RI.Id = L.RegistrationInstanceId -- L for Linkage
  8. LEFT JOIN [Group] G on G.Id = L.GroupId
  9. WHERE RI.Id = {{ri}}
  10. {% endsql %}
  11.  
  12. <div class="well">
  13. <h4>Registration Links</h4>
  14. {% for item in results %}
  15. {% if item.IsActive == 1 %}
  16. {% capture url %}{{ 'Global' | Attribute:'PublicApplicationRoot' }}Registration?RegistrationInstanceId={{ PageParameter.RegistrationInstanceId }}{% endcapture %}
  17. {% capture label %}Registration Link with no group placement:&nbsp{% endcapture %}
  18. {% if item.UrlSlug and item.UrlSlug != empty %}
  19. {% capture url %}{{url}}&Slug={{ item.UrlSlug }}{% endcapture %}
  20. {% capture label %} Link with placement group placement of {{item.GroupName}}:&nbsp{% endcapture %}
  21. {% endif %}
  22. <label class="control-label">{{label}}</label><a target="_blank" href="{{ url }}">{{url}}</a>
  23. {% endif %}
  24. {% endfor %}
  25.  
  26. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement