small fixes on frontoffice

This commit is contained in:
Julien Chanséaume
2014-07-25 17:07:58 +02:00
committed by Julien Chanseaume
parent e76ad60342
commit bd5dd4a172
5 changed files with 13 additions and 9 deletions

View File

@@ -26,7 +26,8 @@
{loop name="customer.update" type="address" customer="current" id="{$address_id}"} {loop name="customer.update" type="address" customer="current" id="{$address_id}"}
<form id="form-address" class="form-horizontal" action="{url path="/address/update/{$address_id}"}" method="post"> <form id="form-address" class="form-horizontal" action="{url path="/address/update/{$address_id}"}" method="post">
{form_field form=$form field='success_url'} {form_field form=$form field='success_url'}
<input type="hidden" name="{$name}" value="{url path="/account"}" /> {$next_url=$smarty.get.next|default:{url path="/account"}}
<input type="hidden" name="{$name}" value="{$next_url}" />
{/form_field} {/form_field}
{form_field form=$form field='error_message'} {form_field form=$form field='error_message'}

View File

@@ -25,6 +25,7 @@
{form name="thelia.front.address.create"} {form name="thelia.front.address.create"}
<form id="form-address" class="form-horizontal" action="{url path="/address/create"}" method="post"> <form id="form-address" class="form-horizontal" action="{url path="/address/create"}" method="post">
{form_field form=$form field='success_url'} {form_field form=$form field='success_url'}
{$next_url=$smarty.get.next|default:{url path="/account"}}
<input type="hidden" name="{$name}" value="{url path="/account"}" /> <input type="hidden" name="{$name}" value="{url path="/account"}" />
{/form_field} {/form_field}

View File

@@ -57,8 +57,13 @@ var pseManager = (function($){
// get the select for options // get the select for options
$("#pse-options .pse-option").each(function(){ $("#pse-options .pse-option").each(function(){
var $option = $(this); var $option = $(this);
if ( $option.data("attribute") in PSE_COMBINATIONS){
$pse['options'][$option.data("attribute")] = $option; $pse['options'][$option.data("attribute")] = $option;
$option.on("change", updateProductForm); $option.on("change", updateProductForm);
} else {
// not affected to this product -> remove
$option.closest(".option").remove();
}
}); });
// build select // build select

View File

@@ -65,9 +65,7 @@
{/elseloop} {/elseloop}
</td> </td>
<td class="product" > <td class="product" >
<h3 class="name"><a href="{$PRODUCT_URL}"> <h3 class="name"><a href="{$PRODUCT_URL}">{$TITLE}</a></h3>
{$TITLE}
</a></h3>
<div class="product-options"> <div class="product-options">
<dl class="dl-horizontal"> <dl class="dl-horizontal">
<dt>{intl l="Available"} :</dt> <dt>{intl l="Available"} :</dt>
@@ -198,7 +196,6 @@
{loop name="product_upsell" type="product" promo="yes" limit="5"} {loop name="product_upsell" type="product" promo="yes" limit="5"}
{include file="includes/single-product.html" product_id=$ID hasBtn=false hasDescription=true width="218" height="146"} {include file="includes/single-product.html" product_id=$ID hasBtn=false hasDescription=true width="218" height="146"}
{/loop} {/loop}
</ul> </ul>
</div> </div>
</aside><!-- #products-upsell --> </aside><!-- #products-upsell -->

View File

@@ -39,7 +39,7 @@
<div id="delivery-address" class="panel"> <div id="delivery-address" class="panel">
<div class="panel-heading clearfix"> <div class="panel-heading clearfix">
<a href="{url path="/address/create"}" class="btn btn-add-address">{intl l="Add a new address"}</a> <a href="{url path="/address/create" next="{navigate to='current'}" }" class="btn btn-add-address">{intl l="Add a new address"}</a>
{intl l="Choose your delivery address"} {intl l="Choose your delivery address"}
{if $error} {if $error}
<span class="help-block"><span class="icon-remove"></span> {$message}</span> <span class="help-block"><span class="icon-remove"></span> {$message}</span>
@@ -97,7 +97,7 @@
</td> </td>
<td> <td>
<div class="group-btn"> <div class="group-btn">
<a href="{url path="/address/update/{$ID}"}" class="btn btn-edit-address" data-toggle="tooltip" title="{intl l="Edit this address"}"><i class="icon-pencil"></i> <span>{intl l="Edit"}</span></a> <a href="{url path="/address/update/{$ID}" next="{navigate to='current'}"}" class="btn btn-edit-address" data-toggle="tooltip" title="{intl l="Edit this address"}"><i class="icon-pencil"></i> <span>{intl l="Edit"}</span></a>
{if $DEFAULT != 1} {if $DEFAULT != 1}
<a href="{url path="/address/delete/{$ID}"}" class="btn btn-remove-address" data-confirm="{intl l="Do you really want to delete this address ?"}" data-confirm-callback="address.delete" title="{intl l="Remove this address"}" data-toggle="tooltip"><i class="icon-remove"></i> <span>{intl l="Cancel"}</span></a> <a href="{url path="/address/delete/{$ID}"}" class="btn btn-remove-address" data-confirm="{intl l="Do you really want to delete this address ?"}" data-confirm-callback="address.delete" title="{intl l="Remove this address"}" data-toggle="tooltip"><i class="icon-remove"></i> <span>{intl l="Cancel"}</span></a>
{/if} {/if}