list_webapps.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <!-- Begin toolbar -->
  2. <div class="toolbar">
  3. <div class="toolbar-inner">
  4. <div class="toolbar-buttons">
  5. <a class="button button-secondary button-back js-button-back" href="/edit/web/?<?= tohtml(http_build_query(["domain" => $v_domain])) ?>">
  6. <i class="fas fa-arrow-left icon-blue"></i><?= tohtml( _("Back")) ?>
  7. </a>
  8. </div>
  9. </div>
  10. </div>
  11. <!-- End toolbar -->
  12. <div class="container">
  13. <div class="form-container form-container-wide">
  14. <h1 class="u-mb20"><?= tohtml( _("Quick Install App")) ?></h1>
  15. <?php show_alert_message($_SESSION); ?>
  16. <div class="cards">
  17. <!-- List available web apps -->
  18. <?php foreach ($v_web_apps as $webapp): ?>
  19. <div class="card <?= tohtml($webapp->isInstallable() ? "" : "disabled") ?>">
  20. <div class="card-thumb">
  21. <img src="/src/app/WebApp/Installers/<?= tohtml($webapp->name) ?>/<?= tohtml($webapp->thumbnail) ?>" alt="<?= tohtml($webapp->name) ?>">
  22. </div>
  23. <div class="card-content">
  24. <p class="card-title"><?= tohtml($webapp->name) ?></p>
  25. <p class="u-mb10"><?= tohtml( _("Version")) ?>: <?= tohtml($webapp->version) ?></p>
  26. <a class="button" href="/add/webapp/?<?= tohtml(http_build_query(["app" => $webapp->name, "domain" => $v_domain])) ?>">
  27. <?= tohtml( _("Setup")) ?>
  28. </a>
  29. </div>
  30. </div>
  31. <?php endforeach; ?>
  32. </div>
  33. </div>
  34. </div>