upgrade-configure.tpl 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. {*
  2. **********************************************************
  3. * Developed by: Team Theme Metro
  4. * Website: http://www.thememetro.com
  5. **********************************************************
  6. *}
  7. <section class="section upgrade">
  8. <div class="card">
  9. <div class="card-body">
  10. {if !$serviceToBeUpgraded && $errorMessage}
  11. <div class="alert alert-warning">
  12. {$errorMessage}
  13. </div>
  14. {else}
  15. <h4>{lang key="upgradeService.serviceBeingUpgraded"}</h4>
  16. <div class="product-to-be-upgraded bg-light border rounded">
  17. <div class="row">
  18. <div class="col-sm-9">
  19. <h5>
  20. {if $serviceToBeUpgraded->isService()}
  21. {$serviceToBeUpgraded->product->productGroup->name} - {$serviceToBeUpgraded->product->name}
  22. {else}
  23. {$serviceToBeUpgraded->productAddon->name}
  24. {/if}
  25. <br>
  26. <small>
  27. {if $serviceToBeUpgraded->domain}
  28. {$serviceToBeUpgraded->domain}
  29. {elseif $serviceToBeUpgraded->isAddon() && $serviceToBeUpgraded->service->domain}
  30. {$serviceToBeUpgraded->service->domain}
  31. {else}
  32. {lang key="noDomain"}
  33. {/if}
  34. </small>
  35. </h5>
  36. </div>
  37. <div class="col-sm-3 text-right">
  38. <a href="{$WEB_ROOT}/clientarea.php?action=productdetails&id={if $serviceToBeUpgraded->isService()}{$serviceToBeUpgraded->id}{elseif $serviceToBeUpgraded->isAddon()}{$serviceToBeUpgraded->service->id}{/if}" class="btn btn-primary">
  39. {lang key="manage"}
  40. </a>
  41. </div>
  42. </div>
  43. </div>
  44. </div>
  45. </div>
  46. </section>
  47. <section class="section">
  48. {if $errorMessage}
  49. <div class="alert alert-warning">
  50. {$errorMessage}
  51. </div>
  52. {else}
  53. <h4 class="pb-3 border-bottom mb-5">{lang key="upgradeService.chooseNew"}</h4>
  54. <div class="cros-pricing-container">
  55. <div class="row row-eq-height" id="upgrades">
  56. {foreach $upgradeProducts as $key => $product}
  57. <div class="pl-2 pr-2 col-lg-{if count($upgradeProducts) >= 4}3{elseif count($upgradeProducts) == 3}4{else}6{/if}">
  58. <div class="card upgrade-plans">
  59. <div class="card-body">
  60. <h4 class="card-title">{$product->name}</h4>
  61. <div class="desc">
  62. {$product->description}
  63. </div>
  64. {if $product->id == $serviceToBeUpgraded->productId}
  65. <div class="px-3 py-1 mb-3 current bg-primary rounded text-center">
  66. {lang key="upgradeService.currentProduct"}
  67. </div>
  68. {elseif $product->productKey == $recommendedProductKey}
  69. <div class="px-2 py-1 mb-3 recommended bg-secondary rounded text-center">
  70. {lang key="upgradeService.recommended"}
  71. </div>
  72. {else}
  73. <div class="px-2 py-1 mb-2">
  74. &nbsp;
  75. </div>
  76. {/if}
  77. <ul class="list-unstyled list-inine">
  78. {foreach $product->features as $label => $value}
  79. <li>
  80. {if is_bool($value)}
  81. <span class="feature-label">{$label}</span>
  82. <span class="feature-value">
  83. <i class="fas fa-{if $value}check text-success{else}times text-danger{/if}"></i>
  84. </span>
  85. {else}
  86. <span class="feature-label">{$label}</span>
  87. <span class="feature-value"><b>{$value}</b></span>
  88. {/if}
  89. </li>
  90. {/foreach}
  91. </ul>
  92. </div>
  93. <div class="card-footer">
  94. <form method="post" action="{routePath('upgrade-add-to-cart')}">
  95. <input type="hidden" name="isproduct" value="{$isService}">
  96. <input type="hidden" name="serviceid" value="{$serviceToBeUpgraded->id}">
  97. <input type="hidden" name="productid" value="{$product->id}">
  98. {if $allowMultipleQuantities}
  99. <div class="text-right pb-1">
  100. {lang key='orderForm.qty'}
  101. <input type="number" name="qty" min="{$minimumQuantity}" value="{$currentQuantity}" class="form-control input-inline input-inline-100">
  102. </div>
  103. {/if}
  104. <select name="billingcycle" class="form-control custom-select">
  105. {foreach $product->pricing()->allAvailableCycles() as $cycle}
  106. {if $permittedBillingCycles->showCycleForProduct($cycle->cycle())}
  107. <option value="{$cycle->cycle()}"
  108. {if $permittedBillingCycles->isCycleDisabledForProduct(
  109. $product->id,
  110. $cycle->cycle()
  111. )}
  112. disabled
  113. {/if}
  114. >
  115. {if $cycle->isRecurring()}
  116. {if $cycle->isYearly()}
  117. {$cycle->cycleInYears()}
  118. {else}
  119. {$cycle->cycleInMonths()}
  120. {/if}
  121. -
  122. {/if}
  123. {$cycle->toFullString()}
  124. </option>
  125. {/if}
  126. {/foreach}
  127. </select>
  128. <button type="submit" class="btn btn-primary btn-block mt-2" id="btnUpgradeSelect-{$product->productKey}"{if !$product->eligibleForUpgrade} disabled="disabled"{/if}>
  129. {lang key="upgradeService.select"}
  130. </button>
  131. </form>
  132. </div>
  133. </div>
  134. </div>
  135. {if count($upgradeProducts) >= 4 && (($key + 1) % 4 == 0)}
  136. </div>
  137. <div class="pricing-slider row">
  138. {/if}
  139. {/foreach}
  140. </div>
  141. {/if}
  142. </div>
  143. {/if}
  144. </section>