Browse Source

add domain info box

andre 4 years ago
parent
commit
ae1fea1b58
1 changed files with 54 additions and 1 deletions
  1. 54 1
      configureproductdomain.tpl

+ 54 - 1
configureproductdomain.tpl

@@ -19,7 +19,60 @@
 			{* {include file="orderforms/{$carttpl}/sidebar-categories-collapsed.tpl"} *}
 
         </div>
-
+        <div class="panel panel-default">
+        <div class="panel-body">
+            <table width="100%" height="100%">
+            <tr>
+                <td valign="top" style="padding-right: 50px;">
+                {$features = "<br />"|explode:$productinfo.description}
+                <p class="product-title" style="margin-bottom: -2px;  font-size:120%;"><strong><i>{$productinfo.group_name}</i> - {$productinfo.name}</strong></p>
+                {foreach $features as $feature}
+                    {$featureParts = ":"|explode:$feature}
+                    {$featureTrim = $feature|trim}
+                    {if !$featureTrim|strstr:':' && $featureTrim ne '' && $featureTrim ne ' ' && $featureTrim ne '  '}
+                        {$feature}<br />
+                    {/if}
+                {/foreach}
+                <br />
+                <!-- {$productinfo.description} -->
+                <table class="plan-features{if $block.flisticon == "check-list"} check-list{elseif $block.flisticon == "check-circle"} check-circle{elseif $block.flisticon == "check-square"} check-square{elseif $block.flisticon == "arrows"} arrows{else}{/if}" style="padding-top:0px; padding-bottom: 15px;" id="PlanLists{$kk + 1}">
+                    {foreach $features as $feature}
+                    {$featureParts = ":"|explode:$feature}
+                    {if $featureParts|@count > 1}
+                        <tr>
+                                                    <td style="padding-right: 33px;"><b>{$featureParts[0]}:</b></td>
+                                                    <td>
+                                                        {if $featureParts[1]|trim == "Ja"} <i class="far fa-check-square" style="font-size:14px"></i>
+                                                        {elseif $featureParts[1]|trim == "Nein"} <i class="far fa-square" style="font-size:14px"></i>
+                                                        {elseif $featureParts[1]|trim == "Optional"} <i class="fas fa-plus" style="font-size:14px"></i>
+                                                        {else}
+                                                        {$featureParts[1]}
+                                                        {/if}
+                                                    </td>
+                    {/if}
+                    {/foreach}
+                </table>
+                </td>
+                <td valign="top" style="text-align:left;">
+                                        {*
+                                            Product Icon set by its group id
+                                            -----------------------------------------
+                                            Mailhosting                     => gid=1
+                                            Thurfiles Private Hosting       => gid=2
+                                            Nextcloud Private Hosting       => gid=3
+                                            ThurVServer                     => gid=4
+                                            ThurVCloud                      => gid=5
+                                            Groupware Hosting               => gid=7
+                                            Mailhosting mit Nextcloud       => gid=8
+                                            Nextcloud Business Hosting	    => gid=9
+                                            Thurfiles Business Hosting	    => gid=10
+                                        *}
+                <img src="/templates/croster/thurdata/productgroups/{$productinfo.gid}.svg" class="img-fluid" style="height:150px;">
+                </td>
+            </tr>
+                </table>
+        </div>
+        </div>
         <div class="col-md-10 col-md-offset-1 offset-md-1">
         <div class="alert alert-warning">
             Test