[+] FO : New Responsive, Bootstrap template
This commit is contained in:
@@ -0,0 +1,96 @@
|
||||
{*
|
||||
* 2007-2013 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2013 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
{if !$opc}
|
||||
<script type="text/javascript">
|
||||
// <![CDATA[
|
||||
var taxEnabled = "{$use_taxes}";
|
||||
var displayPrice = "{$priceDisplay}";
|
||||
var currencySign = '{$currencySign|html_entity_decode:2:"UTF-8"}';
|
||||
var currencyRate = '{$currencyRate|floatval}';
|
||||
var currencyFormat = '{$currencyFormat|intval}';
|
||||
var currencyBlank = '{$currencyBlank|intval}';
|
||||
var id_carrier = '{$id_carrier|intval}';
|
||||
var id_state = '{$id_state|intval}';
|
||||
var SE_RedirectTS = "{l s='Refreshing the page and updating your cart...' mod='carriercompare'}";
|
||||
var SE_RefreshStateTS = "{l s='Checking available states...' mod='carriercompare'}";
|
||||
var SE_RetrievingInfoTS = "{l s='Retrieving information...' mod='carriercompare'}";
|
||||
var SE_RefreshMethod = {$refresh_method};
|
||||
var txtFree = "{l s='Free!' mod='carriercompare'}";
|
||||
PS_SE_HandleEvent();
|
||||
//]]>
|
||||
</script>
|
||||
<form class="box" id="compare_shipping_form" method="post" action="#" >
|
||||
<fieldset id="compare_shipping">
|
||||
<h1 class="page-heading bottom-indent">{l s='Estimate the cost of shipping & taxes.' mod='carriercompare'}</h1>
|
||||
<div class="form-group">
|
||||
<label for="id_country">{l s='Country' mod='carriercompare'}</label>
|
||||
<select name="id_country" id="id_country" class="form-control">
|
||||
{foreach from=$countries item=country}
|
||||
<option value="{$country.id_country}" {if $id_country == $country.id_country}selected="selected"{/if}>{$country.name|escape:'htmlall':'UTF-8'}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
<div id="states" class="form-group" style="display: none;">
|
||||
<label for="id_state">{l s='State' mod='carriercompare'}</label>
|
||||
<select name="id_state" id="id_state" class="form-control">
|
||||
<option></option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group last">
|
||||
<label for="zipcode">{l s='Zip Code' mod='carriercompare'}</label>
|
||||
<input class="form-control" type="text" name="zipcode" id="zipcode" value="{$zipcode|escape:'htmlall':'UTF-8'}"/> ({l s='Needed for certain carriers.' mod='carriercompare'})
|
||||
</div>
|
||||
<div id="carriercompare_errors" style="display: none;">
|
||||
<ul id="carriercompare_errors_list"></ul><br />
|
||||
</div>
|
||||
<div id="SE_AjaxDisplay">
|
||||
<img src="{$new_base_dir}loader.gif" alt="Loading data" /><br />
|
||||
<p></p>
|
||||
</div>
|
||||
<div id="availableCarriers" style="display: none;">
|
||||
<table cellspacing="0" cellpadding="0" id="availableCarriers_table" class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="carrier_action first_item"></th>
|
||||
<th class="carrier_name item">{l s='Carrier' mod='carriercompare'}</th>
|
||||
<th class="carrier_infos item">{l s='Information' mod='carriercompare'}</th>
|
||||
<th class="carrier_price last_item">{l s='Price' mod='carriercompare'}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="carriers_list">
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<p class="alert alert-warning text-center" id="noCarrier" style="display: none;">{l s='No carrier has been made available for this selection.' mod='carriercompare'}</p>
|
||||
<p class="SE_SubmitRefreshCard">
|
||||
<button class="btn btn-default button button-small" id="carriercompare_submit" type="submit" name="carriercompare_submit"><span>{l s='Update cart' mod='carriercompare'}<i class="icon-chevron-right right"></i></span></button>
|
||||
<button id="update_carriers_list" type="button" class="btn btn-default button button-small"><span>{l s='Update carrier list' mod='carriercompare'}<i class="icon-chevron-right right"></i></span></button>
|
||||
<!--input id="update_carriers_list" type="button" class="exclusive_large" value="{l s='Update carrier list' mod='carriercompare'}" /-->
|
||||
</p>
|
||||
</fieldset>
|
||||
</form>
|
||||
{/if}
|
||||
@@ -0,0 +1,27 @@
|
||||
{if isset($display_error)}
|
||||
{if $display_error}
|
||||
<div class="error">{l s='An error occured during form validation.' mod='carriercompare'}</div>
|
||||
{else}
|
||||
<div class="conf">{l s='Configuration updated' mod='carriercompare'}</div>
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
<form method="post" action="{$smarty.server.REQUEST_URI|escape:'htmlall':'UTF-8'}">
|
||||
<fieldset>
|
||||
<div class="warn">{l s='This module is only available during the standard five-step checkout process. The carrier list has already been defined for one-page checkout. ' mod='carriercompare'}.</div>
|
||||
<legend>{l s='Global Configuration' mod='carriercompare'}</legend>
|
||||
|
||||
<label for="refresh_method">Refresh carrier list method</label>
|
||||
<div class="margin-form">
|
||||
<select id="refresh_method" name="refresh_method">
|
||||
<option value="0" {if $refresh_method == 0}selected{/if}>{l s='Anytime' mod='carriercompare'}</option>
|
||||
<option value="1" {if $refresh_method == 1}selected{/if}>{l s='The required information is set.' mod='carriercompare'}</option>
|
||||
</select>
|
||||
<p>{l s='How would you like to refresh information for a customer?' mod='carriercompare'}</p>
|
||||
</div>
|
||||
|
||||
<div class="margin-form">
|
||||
<input name="setGlobalConfiguration" type="submit" class="button" value="{l s='Submit' mod='carriercompare'}">
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
Reference in New Issue
Block a user