practice_template_select.php 612 B

1234567891011121314151617181920212223242526272829
  1. <div class="container mt-3 py-4">
  2. <h2><?=htmlspecialchars(_("Select Practice Form"))?></h2>
  3. <?php
  4. if(empty($templates)) {
  5. ?>
  6. <div class="alert alert-info">
  7. <?=htmlspecialchars(_("There are no practice forms available at the moment. Please try again later."))?>
  8. </div>
  9. <?php
  10. }
  11. else {
  12. ?>
  13. <div class="list-group">
  14. <?php
  15. foreach($templates as $template) {
  16. ?>
  17. <a class="list-group-item list-group-item-action" href="/account/practice/<?=$template->id?>">
  18. <?=sprintf(htmlspecialchars(_("Practice Form #%d")), $template->id)?>
  19. </a>
  20. <?php
  21. }
  22. ?>
  23. </div>
  24. <?php
  25. }
  26. ?>
  27. </div>