Răsfoiți Sursa

tabbing seafile

andre 4 ani în urmă
părinte
comite
c93cf94b06
1 a modificat fișierele cu 74 adăugiri și 112 ștergeri
  1. 74 112
      configure_seafile.tpl

+ 74 - 112
configure_seafile.tpl

@@ -1,5 +1,4 @@
 <!-- Start of Template configure_seafile.tpl -->
-
 {*
 This is the orderform template for the seafile product
 This template requires a list of custom fields in exact this order:
@@ -10,106 +9,92 @@ login|Login E-Mail		-> customfields[2]
 password|Passwort		-> customfields[3]
 pwrepeat|Passwort wiederholen	-> customfields[4]
 *}
-
-
 {include file="orderforms/{$carttpl}/common.tpl"}
-
 <script>
-var _localLang = {
-    'addToCart': '{$LANG.orderForm.addToCart|escape}',
-    'addedToCartRemove': '{$LANG.orderForm.addedToCartRemove|escape}'
-}
+    var _localLang = {
+        'addToCart': '{$LANG.orderForm.addToCart|escape}',
+        'addedToCartRemove': '{$LANG.orderForm.addedToCartRemove|escape}'
+    }
 </script>
-
 {if file_exists("templates/orderforms/{$carttpl}/layouts/head.tpl")}
 	{include file="templates/orderforms/{$carttpl}/layouts/head.tpl"}
 {/if}
-
 <div id="order-standard_cart">
-
     <div class="row">
-
         <div class="col-md-12">
-	    {if file_exists("templates/orderforms/{$carttpl}/layouts/head.tpl")}
-	    {else}
-        	<div class="header-lined">
-            	    <h1>{$LANG.orderconfigure}</h1>
-        	</div>
-	    {/if}
+            {if file_exists("templates/orderforms/{$carttpl}/layouts/head.tpl")}
+            {else}
+                <div class="header-lined">
+                        <h1>{$LANG.orderconfigure}</h1>
+                </div>
+            {/if}
 	    {include file="orderforms/{$carttpl}/sidebar-categories-collapsed.tpl"}
         </div>
-
         <div class="col-md-12">
-
             <form id="frmConfigureProduct">
                 <input type="hidden" name="configure" value="true" />
                 <input type="hidden" name="i" value="{$i}" />
-
                 <div class="row ajaxcart_cont">
                     <div class="col-md-8 col-lg-9">
-
                         <h3>{$LANG.orderForm.configureDesiredOptions}</h3>
-
                         <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 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>
+                                                        </tr>
+                                                    {/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="alert alert-danger w-hidden" role="alert" id="containerProductValidationErrors">
                             <p>{$LANG.orderForm.correctErrors}:</p>
                             <ul id="containerProductValidationErrorsList"></ul>
                         </div>
-
                         {if $pricing.type eq "recurring"}
                             <div class="field-container">
                                 <div class="form-group">
@@ -149,14 +134,11 @@ var _localLang = {
                                 </div>
                             </div>
                         {/if}
-
                         {if count($metrics) > 0}
                             <div class="sub-heading">
                                 <span>{$LANG.metrics.title}</span>
                             </div>
-
                             <p>{$LANG.metrics.explanation}</p>
-
                             <ul>
                                 {foreach $metrics as $metric}
                                     <li>
@@ -175,17 +157,13 @@ var _localLang = {
                                     </li>
                                 {/foreach}
                             </ul>
-
                             <br>
                         {/if}
-
                         {if $productinfo.type eq "server"}
                             <div class="sub-heading">
                                 <span>{$LANG.cartconfigserver}</span>
                             </div>
-
                             <div class="field-container">
-
                                 <div class="row">
                                     <div class="col-sm-6">
                                         <div class="form-group">
@@ -200,7 +178,6 @@ var _localLang = {
                                         </div>
                                     </div>
                                 </div>
-
                                 <div class="row">
                                     <div class="col-sm-6">
                                         <div class="form-group">
@@ -215,10 +192,8 @@ var _localLang = {
                                         </div>
                                     </div>
                                 </div>
-
                             </div>
                         {/if}
-
                         {if $configurableoptions}
                             <div class="sub-heading">
                                 <span>{$LANG.orderconfigpackage}</span>
@@ -328,17 +303,15 @@ var _localLang = {
                             </div>
 
                         {/if}
-			{*
-			This requires a list of custom fields in exact this order:
-			
-			firstname|Vorname		-> customfields[0]
-			lastname|Nachname		-> customfields[1]
-			login|Login E-Mail		-> customfields[2]
-			password|Passwort		-> customfields[3]
-			pwrepeat|Passwort wiederholen	-> customfields[4]
-			*}
-
-
+                        {*
+                        This requires a list of custom fields in exact this order:
+                        
+                        firstname|Vorname		-> customfields[0]
+                        lastname|Nachname		-> customfields[1]
+                        login|Login E-Mail		-> customfields[2]
+                        password|Passwort		-> customfields[3]
+                        pwrepeat|Passwort wiederholen	-> customfields[4]
+                        *}
                         {if $customfields}
                             <div class="sub-heading">
                                 <span>{$LANG.orderadditionalrequiredinfo}</span>
@@ -425,20 +398,15 @@ var _localLang = {
                                 </div>
                             </div>
                         {/if}
-
                         {if $addons || count($addonsPromoOutput) > 0}
-
                             <div class="sub-heading">
                                 <span>{$LANG.cartavailableaddons}</span>
                             </div>
-
                             {foreach $addonsPromoOutput as $output}
                                 <div>
                                     {$output}
                                 </div>
                             {/foreach}
-							
-							
                             <div class="row addon-products">
                                 {foreach $addons as $addon}
                                     <div class="col-sm-{if count($addons) > 1}6{else}12{/if}"">
@@ -449,18 +417,18 @@ var _localLang = {
 												<span class="panel-addon-price">{$addon.pricing}</span>
                                                 <p class="text-muted">{$addon.description}</p>
                                             </div>
+                                            {if $addon.allowsQuantity === 2}
+                                                {include file="templates/orderforms/{$carttpl}/addon-hint.tpl"}
+                                    	    {/if}
                                         </div>
                                     </div>
                                 {/foreach}
                             </div>
-
                         {/if}
-
                         <div class="alert alert-warning text-center">
                             <i class="fas fa-question-circle"></i>
                             {$LANG.orderForm.haveQuestionsContact} <a href="contact.php" target="_blank" class="alert-link">{$LANG.orderForm.haveQuestionsClickHere}</a>
                         </div>
-
                     </div>
                     {include file="templates/orderforms/{$carttpl}/sidebar-price.tpl"}
                 </div>
@@ -468,20 +436,14 @@ var _localLang = {
         </div>
     </div>
 </div>
-
 {if file_exists("templates/orderforms/{$carttpl}/layouts/foot.tpl")}
 	{include file="templates/orderforms/{$carttpl}/layouts/foot.tpl"}
 {/if}
-
-
 <script language="javascript">
 	recalctotals();
 </script>
-
-
 <script type="text/javascript" src="{$WEB_ROOT}/templates/orderforms/{$carttpl}/js/ResizeSensor.js"></script>
 <script type="text/javascript" src="{$WEB_ROOT}/templates/orderforms/{$carttpl}/js/jquery.sticky-sidebar.min.js"></script>
-
 <script>
     jQuery('#sidebar').stickySidebar({
         topSpacing: 60,