open_session.tpl 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <link href="{{ _p.web_plugin }}advanced_subscription/views/css/style.css" rel="stylesheet" type="text/css">
  2. <script>
  3. $(document).on('ready', function () {
  4. $('#asp-close-window').on('click', function (e) {
  5. e.preventDefault();
  6. window.close();
  7. });
  8. $('#asp-go-to').on('click', function (e) {
  9. e.preventDefault();
  10. window.close();
  11. window.opener.location.href = '{{ _p.web_main ~ 'session/index.php?session_id=' ~ session.id }}';
  12. });
  13. });
  14. </script>
  15. <h2 class="legal-terms-title legal-terms-popup">
  16. {{ "SubscriptionToOpenSession"|get_plugin_lang('AdvancedSubscriptionPlugin') }}
  17. </h2>
  18. {% if not is_subscribed %}
  19. <div class="alert alert-warning legal-terms-popup">
  20. <ul>
  21. {% for errorMessage in errorMessages %}
  22. <li>{{ errorMessage }}</li>
  23. {% endfor %}
  24. </ul>
  25. </div>
  26. <div class="legal-terms-buttons legal-terms-popup">
  27. <a
  28. class="btn btn-success btn-advanced-subscription btn-accept"
  29. href="#" id="asp-close-window">
  30. <i class="fa fa-check"></i>
  31. {{ "AcceptInfinitive"|get_plugin_lang('AdvancedSubscriptionPlugin') }}
  32. </a>
  33. </div>
  34. {% else %}
  35. <div class="alert alert-success legal-terms-popup">
  36. {{ 'SuccessSubscriptionToSessionX'|get_plugin_lang('AdvancedSubscriptionPlugin')|format(session.name) }}
  37. </div>
  38. <div class="text-right legal-terms-popup">
  39. <a
  40. class="btn btn-success btn-advanced-subscription btn-accept"
  41. href="#" id="asp-go-to">
  42. <i class="fa fa-external-link"></i>
  43. {{ "GoToSessionX"|get_plugin_lang('AdvancedSubscriptionPlugin')|format(session.name) }}
  44. </a>
  45. </div>
  46. {% endif %}