Commit a759dd8a authored by Kgneo's avatar Kgneo

up design + trad terla

parent a5ea6ccf
......@@ -2582,12 +2582,14 @@ var list = {
btnAction="<a href='#page.type."+type+".id."+data._id.$id+"' class='lbh btn bg-orange linkBtnList'>Manage it</a>";
else if(action=="history"){
btnAction="save";
labelAction="Leave your comment";
labelAction=trad["Leave your comment"];
if(typeof data.comment != "undefined"){
btnAction="show";
labelAction="Show your comment";
}
btnAction="<a href='javascript:;' class='btn bg-green orderItemComment linkBtnList' data-id='"+data._id.$id+"' data-action='"+btnAction+"'>"+labelAction+"</a>";
btnAction="<button class='btn btn-link bg-green-k orderItemComment linkBtnList' data-id='"+data._id.$id+"' data-action='"+btnAction+"'>"+
labelAction+
"</button>";
}
if(!data.useMinSize)
data.imgProfil = "<i class='fa fa-image fa-3x'></i>";
......@@ -2614,10 +2616,7 @@ var list = {
btnAction+
"</div>";
if(action=="history"){
str+= "<div class='col-md-12 col-sm-12 col-xs-12'>"+
"<div id='content-comment-"+data._id.$id+"' class='col-md-5 col-sm-5 col-xs-6 pull-right contentRatingComment'>"+
"</div>"+
"</div>"
str+= "<div id='content-comment-"+data._id.$id+"' class='col-xs-12 no-padding contentRatingComment'></div>";
}
if(action=="backup"){
if(typeof data.reservations != "undefined"){
......
......@@ -224,10 +224,12 @@ var circuit = {
else
circuit.obj.countQuantity--;
}
if(circuit.obj.show)
$('.btn-circuit').removeClass('hide');
else
$('.btn-circuit').addClass('hide');
if(circuit.obj.countQuantity > 0){
$(".circuit-count").html(circuit.obj.countQuantity);
$('.circuit-count').removeClass('hide');
......@@ -282,7 +284,7 @@ var circuit = {
typeHtml="";
if(Object.keys(listItem).length){
typeHtml="<div class='col-md-12 col-sm-12 col-xs-12 headerCategory margin-top-20 margin-bottom-10'>"+
"<h2 class='letter-orange mainTitle text-left' style='text-transform:uppercase;'>"+label+"</h2>"+
"<h2 class='letter-orange mainTitle text-left'>"+trad[label]+"</h2>"+
"</div>";
}
$.each(listItem,function(e,data){
......@@ -307,12 +309,14 @@ var circuit = {
itemHtml += "<div class='description'>"+data.description+"</div><br>";
itemHtml +="</div>";
if(edit){
itemHtml +="<div class='col-md-2 col-sm-2 col-xs-2 text-center pull-right'><span>"+
"<a href='javascript:;' class='letter-lightgray' onclick='circuit.removeInCircuit(\""+itemId+"\", \""+itemType+"\",true,\""+data.type+"\");' style='line-height:120px;'><i class='fa fa-trash fa-2x'></i></a>"+
"</span></div>";
itemHtml += "<div class='col-md-2 col-sm-2 col-xs-2 text-right pull-right'>"+
"<a href='javascript:;' class='btn btn-link' onclick='circuit.removeInCircuit(\""+itemId+"\", \""+itemType+"\",true,\""+data.type+"\");'>"+
"<i class='fa fa-trash fa-2x'></i>"+
"</a>"+
"</div>";
}
if(typeof data.reservations != "undefined"){
itemHtml += "<div class='col-md-12 col-sm-12 col-xs-12 dateHoursDetail no-padding'>";
itemHtml += "<div class='col-md-12 col-sm-12 col-xs-12 dateHoursDetail no-padding margin-top-15'>";
$.each(data.reservations, function(date, value){
dateStr=directory.getDateFormated({startDate:date}, true);
if(circuit.obj.show && circuit.obj.frequency=="unique"){
......@@ -326,15 +330,14 @@ var circuit = {
circuit.obj.end=date;
}
arrayDate=date.split("-");
itemHtml += "<div class='col-md-12 col-sm-12 col-xs-12 bookDate"+date+" shadow2 margin-bottom-10'>"+
"<div class='col-md-12 col-sm-12 col-xs-12 dateHeader'>"+
"<h4 class='pull-left margin-bottom-5 no-margin col-md-5 col-sm-5 col-xs-5 no-padding'><i class='fa fa-calendar'></i> "+dateStr+"</h4>";
itemHtml += "<div class='col-md-4 col-sm-4 col-xs-4 bookDate"+date+" margin-bottom-10'>"+
"<div class='col-md-12 col-sm-12 col-xs-12 dateHeader shadow2'>"+
"<h5 class='pull-left margin-bottom-5 no-margin col-md-12 col-sm-12 col-xs-12 no-padding'><i class='fa fa-calendar'></i> "+dateStr+"</h5>";
if(edit){
itemHtml += "<div class='pull-right'>"+
"<a href='javascript:;' class='text-red' onclick='circuit.removeInCircuit(\""+itemId+"\", \""+itemType+"\",true,\""+data.type+"\",\""+date+"\");'>"+
"<i class='fa fa-trash'></i> Remove this date"+
"</a>"+
"</div>";
itemHtml += "<br>"+
"<a href='javascript:;' class='text-red' onclick='circuit.removeInCircuit(\""+itemId+"\", \""+itemType+"\",true,\""+data.type+"\",\""+date+"\");'>"+
"<i class='fa fa-trash'></i> Remove this date"+
"</a>";
}
itemHtml += "</div>";
......
......@@ -1379,7 +1379,7 @@ var directory = {
if(directory.dirLog) mylog.log("----------- classifiedPanelHtml",params,params.name);
str = "";
str += "<div class='col-lg-6 col-md-12 col-sm-12 col-xs-12 searchEntityContainer "+params.type+params.id+" "+params.type+" "+params.elTagsList+" '>";
str += "<div class='col-lg-12 col-md-12 col-sm-12 col-xs-12 searchEntityContainer "+params.type+params.id+" "+params.type+" "+params.elTagsList+" '>";
str += "<div class='searchEntity' id='entity"+params.id+"'>";
// directory.colPos = directory.colPos == "left" ? "right" : "left";
......@@ -1397,7 +1397,7 @@ var directory = {
str += "<div class='padding-10 informations'>";
str += "<div class='entityRight no-padding'>";
str += "<div class='entityRight padding-5'>";
/*if(typeof params.size == "undefined" || params.size == "max"){
str += "<div class='entityCenter no-padding'>";
......@@ -1434,7 +1434,7 @@ var directory = {
// str += "<div class='entityPrice col-md-6'><span class='price-trunc'>"+ Math.trunc(params.price) + "</span> " + devise + "</div>";
str += "<a href='"+params.hash+"' class='showMore btn bg-orange text-white lbhp' data-modalshow='"+params.id+"'>"+
"Show +"+
tradDynForm["show"] + "+" +
"</a>";
str += "</div>";
......
......@@ -329,37 +329,37 @@ var shopping = {
"<a href='javascript:alert(\"Kill all mother fuck\")' class='text-white padding-5' onclick=''><i class='fa fa-trash'></i> Empty</a>"+
"</div>"+
"</div>"+
"<div class='col-md-11' style='margin-left:4.133333333%'>";
"<div class='col-xs-12'>";
str+=htmls.itemHtml;
str+="<div class='col-md-12 bg-orange-1 padding-5 margin-top-20'>"+
"<div class='pull-right'>"+
"<h3 class='letter-orange no-margin totalPrice'>Total of your order: "+shopping.totalCart+" euros</h3>"+
"</div>"+
"</div>";
str+="<div class='col-md-12 pull-right btn-cart margin-top-20 no-padding'>"+
"<a href='javascript:;' onclick='shopping.checkout();' class='btn bg-orange text-white pull-right col-md-3' onclick=''>Checkout</a>"+
"<a href='javascript:;' class='btn bg-orange pull-right col-md-3 text-white close-modal' >Continue</a>"+
str+="<div class='col-xs-12 bg-orange padding-10 margin-top-20 radius-5 text-right'>"+
"<h4 class='text-white no-margin totalPrice'>"+
"<small class='text-white'>"+trad["Total of your order"] + " : </small>"+shopping.totalCart+
"<small class='text-white'> euros</small>"+
"</h4>"+
"</div>";
str+="<div class='col-md-12 margin-top-10 text-left'>"+
"<span>* folder fee included and delivery tax not included</span>"+
"</div></div>";
str+="<div class='col-xs-12 pull-right btn-cart margin-top-20 no-padding'>"+
"<button onclick='shopping.checkout();' class='btn btn-link bg-orange text-white pull-right'>"+trad["Checkout"] +"</button>"+
"<button class='btn btn-link letter-orange pull-right margin-right-10 text-white' data-toggle='modal'>"+trad["Continue"] +"</button>"+
"<div class='margin-top-10 pull-left'>"+
"* folder fee included and delivery tax not included"+
"</div>"+
"</div>" +
"</div>";
//******************************************
// CHECKOUT
//******************************************
cStr = "<div class='col-md-12 bg-orange padding-10'>"+
cStr = "<div class='col-xs-12 bg-orange padding-10'>"+
"<div class='pull-left'>"+
"<span class='text-white'> CHECKOUT </span>"+
"<span class='text-white'> " + trad["Checkout"] + " </span>"+
"</div>"+
"</div>"+
"<div class='col-md-11' style='margin-left:4.133333333%'>";
"<div class='col-xs-12'>";
cStr += htmls.sellerHtml;
cStr += "<div class='col-md-12 bg-orange-1 padding-5 margin-top-20'>"+
"<div class='pull-right'>"+
"<h3 class='letter-orange no-margin totalPrice'>Passer à la caisse: "+shopping.totalCart+" euros</h3>"+
"</div>"+
"</div>";
cStr += "<div class='col-md-12 margin-top-10 text-left'>"+
cStr += "<div class='pull-right bg-orange text-right padding-5 margin-top-20 radius-5'>"+
"<h4 class='text-white no-margin totalPrice'>Passer à la caisse : "+shopping.totalCart+" euros</h4>"+
"</div>";
cStr += "<div class='col-xs-12 padding-15 text-right'>"+
"<span>* folder fee included and delivery tax not included</span>"+
"</div></div>";
return { cart : str , checkout : cStr };
......@@ -399,12 +399,13 @@ var shopping = {
var sellerHtml = "";
$.each(shopping.checkoutObj.sellers,function(id,seller){
console.log(seller);
sellerHtml += "<div class='col-md-12 headerCategory margin-top-20'>"+
"<div class='col-md-12'>"+
"<h2 class='letter-orange mainTitle text-left'>"+id+"<h3 class='pull-right subTitleCart letter-orange'>"+seller.total+" ttc<h3></h2>"+
"</div>"+
"</div>";
sellerHtml += "<div class='col-md-12 headerCategory margin-top-20'>"+
"<div class='col-md-12'>"+
"<h5 class='letter-orange text-left'>"+id+
"<span class='pull-right subTitleCart'>"+seller.total+" ttc</span>"+
"<h5>"+
"</div>"+
"</div>";
});
return { "itemHtml" : itemHtml , "sellerHtml" : sellerHtml };
......
......@@ -14,6 +14,7 @@
#content-social{
margin-top: 70px;
min-height:700px;
background-color: white;
}
.addServices, .show-form-new-circuit{
display:none;
......
......@@ -480,7 +480,9 @@
}
?>
<?php $col = ( !in_array($typeSelected, array("classified","products","services","circuits","events","vote","all","place") )) ? 10 : 8; ?>
<?php $col = ( !in_array($typeSelected,
array("classified","products","services","circuits","events","vote","all","place") )) ? 10 : 8; ?>
<?php if(Yii::app()->params["CO2DomainName"] == "terla"){ $col = 8; } ?>
<div class="col-sm-<?php echo $col ?>" id="dropdown_search"></div>
......@@ -529,7 +531,7 @@ var headerParams = {
"products" : { color: "orange", icon: "shopping-basket", name: trad.products },
"services" : { color: "orange", icon: "sun-o", name: trad.services },
"circuits" : { color: "orange", icon: "ravelry", name: trad.ravelry },
"circuits" : { color: "orange", icon: "ravelry", name: trad.circuits },
}
if( typeof themeObj != "undefined" && typeof themeObj.headerParams != "undefined" )
......
<div class="col-xs-12 associated">
<div class="col-xs-12 associated margin-bottom-15">
<div class="col-xs-4 col-sm-3 text-right letter-lightgray"><h5>Associated product</h5></div>
<div class="col-xs-4 col-sm-7"><hr></div>
......
......@@ -18,7 +18,7 @@ HtmlHelper::registerCssAndScriptsFiles($cssAnsScriptFilesTheme, Yii::app()->requ
padding-right: 50px;
left:-25px;
right:-25px;
top:88px;
top:99px;
}
.headerTitleStanalone span{
padding-top: 5px;
......
......@@ -3,7 +3,7 @@
.headerTitleStanalone{
left:-25px;
right:0px;
top:88px;
top:99px;
}
.contentOnePage{
margin-top: 135px;
......@@ -53,7 +53,7 @@
}
</style>
<div class="headerTitleStanalone">
<span>My Dashboard</span>
<span><?php echo Yii::t("terla", "My Dashboard"); ?></span>
<?php if(!@$element["professional"]){ ?>
<!--<button class="createPro bg-orange"><?php echo Yii::t("terla", "Create a professional account"); ?></button>-->
<?php } ?>
......@@ -90,7 +90,7 @@
</li>
<li class="nav-item">
<a class="nav-link letter-lightgray" href="javascript:;" id="btn-history">
<?php echo Yii::t("common","My travels") ?>
<?php echo Yii::t("common","My circuits") ?>
</a>
</li>
<!--<li class="nav-item">
......
......@@ -39,7 +39,7 @@ HtmlHelper::registerCssAndScriptsFiles($cssAnsScriptFilesTheme, Yii::app()->requ
}
.contentListItem .linkBtnList{
position: absolute;
right: 30px;
right: 0px;
bottom: 10px;
min-width: 170px;
border-radius: 2px;
......@@ -148,18 +148,37 @@ HtmlHelper::registerCssAndScriptsFiles($cssAnsScriptFilesTheme, Yii::app()->requ
<?php if(!@$subType || $subType!=Circuit::COLLECTION){ ?>
<div id="headerList" class="col-md-9 col-sm-9 col-xs-9 margin-bottom-20">
<h4 class="col-md-12 col-sm-12 title no-padding letter-orange"><?php echo $nameHeader ?></h4>
<span>Price of this command: <span class="price"><?php echo $priceHeader ?> <?php echo $currencyHeader ?></span></span>
<?php if($actionType=="history"){ ?>
<br/>
<a href='#circuit.index.id.<?php echo $circuitId ?>.tpl.show' data-modalshow="$circuitId"
class="lbhp btn bg-orange pull-right" id="programView">
<?php echo Yii::t("common", "Show programmation") ?>
</a>
<?php } ?>
<span>
<?php echo Yii::t("common", "Price of this command") ?> :
<span class="price"><?php echo $priceHeader ?> <?php echo $currencyHeader ?></span>
</span>
<a href="<?php echo Yii::app()->createUrl('/co2/pdf/create/id/'.$key) ;?>" target="_blank">
<i class='fa fa-file-pdf-o'></i>
</a><br/>
<span class="purchases"><i><?php echo $countHeader; ?> purchase<?php if ($countHeader >1) echo "s" ?></i></span>
<?php if($actionType=="history"){ ?>
<br/><a href='#circuit.index.id.<?php echo $circuitId ?>.tpl.show' data-modalshow="$circuitId" class="lbhp btn bg-orange" id="programView">Show programmation</a>
<?php } ?>
<span class="purchases">
<i><?php echo $countHeader; ?> <?php echo Yii::t("common", "purchase") ?>
<?php if ($countHeader >1) echo "s" ?>
</i>
</span>
<?php if($actionType=="backup") { ?>
<div class="pull-right">
<a href="javascript:;" id="goBackToThisCart" class="btn btn-success" data-id="<?php echo $key ?>">Continue this cart</a>
<a href="javascript:;" id="deleteBackup" class="btn btn-danger" data-id="<?php echo $key ?>">Delete</a>
<a href="javascript:;" id="goBackToThisCart" class="btn btn-success" data-id="<?php echo $key ?>">
<?php echo Yii::t("common", "Continue this cart") ?>
</a>
<a href="javascript:;" id="deleteBackup" class="btn btn-danger" data-id="<?php echo $key ?>">
<?php echo Yii::t("common", "Delete") ?>
</a>
</div>
<?php } ?>
</div>
......
......@@ -34,31 +34,35 @@ $returnUrl .= 'pay/done';
<div id ="divForm">
<label>Full Name</label>
<label><?php print $createdUser->FirstName . ' ' . $createdUser->LastName; ?></label>
<br />createdCardRegister->Id : <?php print $createdCardRegister->Id; ?>
<br />createdUser->Id : <?php print $createdUser->Id; ?>
<div class="clear"></div>
<br/>createdCardRegister -> Id : <?php print $createdCardRegister->Id; ?>
<br/>createdUser -> Id : <?php print $createdUser->Id; ?>
<hr>
<label>Amount</label>
<label><?php print $amount . ' ' . $currency; ?></label>
<div class="clear"></div>
<hr>
<form id="paymentForm">
<label for="cardNumber">Card Number</label>
<input type="text" name="cardNumber" value="4706750000000009" />
<div class="clear"></div>
<label for="cardNumber" class="col-xs-12 col-md-3 col-sm-4 text-right">Card Number</label>
<input type="text" name="cardNumber" value="4706750000000009" class="col-xs-12 col-md-7"/><br>
<div class="col-xs-12 margin-top-5"></div>
<label for="cardExpirationDate">Expiration Date</label>
<input type="text" name="cardExpirationDate" value="0118" />
<div class="clear"></div>
<label for="cardExpirationDate" class="col-xs-12 col-md-3 col-sm-4 text-right">Expiration Date</label>
<input type="text" name="cardExpirationDate" value="0118" class="col-xs-12 col-md-7"/><br>
<div class="col-xs-12 margin-top-5"></div>
<label for="cardCvx">CVV</label>
<input type="text" name="cardCvx" value="123" />
<div class="clear"></div>
<br>
<label for="cardCvx" class="col-xs-12 col-md-3 col-sm-4 text-right">CVV</label>
<input type="text" name="cardCvx" value="123" class="col-xs-12 col-md-7"/><br>
<input type="button" value="Register with Ajax (will fail for non supporting CORS browsers)" id="payAjax" />
<div class="clear"></div>
<br>
<br><br><hr>
<input type="button" class="pull-right"
value="Register with Ajax (will fail for non supporting CORS browsers)" id="payAjax" />
<?php /*
<input type="button" value="Register with Ajax or redirect if no CORS support" id="payAjaxOrRedirect" />
<div class="clear"></div>
......
......@@ -93,11 +93,11 @@
<div id="shoppingCart">
<div class="headerTitleStanalone">
<div class='col-md-6 no-padding'>
<span>Shopping cart</span>
<span><?php echo Yii::t("common","Shopping cart") ?></span>
</div>
</div>
<div class="col-md-10 col-md-offset-1 contentOnePage">
<div class="contentCart shadow2 col-md-12 no-padding text-center">
<div class="contentCart shadow2 col-md-12 padding-15 text-center">
</div>
</div>
</div>
......@@ -107,19 +107,19 @@
<div class="headerTitleStanalone">
<div class='col-md-6 no-padding'>
<span>Checkout</span>
<span><?php echo Yii::t("common","Checkout") ?></span>
</div>
</div>
<div class="col-md-10 col-md-offset-1 contentOnePage" style="margin-top:100px">
<div class="contentCheckout shadow2 col-md-12 no-padding text-center"></div>
<div class="contentCB shadow2 col-md-12 no-padding text-center"></div>
<div class="contentCheckout shadow2 col-xs-12 no-padding text-center"></div>
<div class="contentCB shadow2 col-xs-12 padding-15 text-left margin-top-25"></div>
<div class='col-md-12 pull-right btn-cart margin-top-20 no-padding'>
<a href='javascript:;' onclick='shopping.buyCart();'
class='btn bg-orange text-white pull-right col-md-3' onclick=''>
<button onclick='shopping.buyCart();'
class='btn btn-link bg-orange text-white pull-right'>
Validate
</a>
<a href='javascript:;' class='btn bg-orange pull-right col-md-3 text-white close-modal' >Continue</a>
<button class='btn btn-link letter-orange pull-right text-white margin-right-5' data-toggle="modal">Continue</a>
</div>
</div>
......
<?php
HtmlHelper::registerCssAndScriptsFiles(
array(
'/css/calendar.css',
) ,
Yii::app()->theme->baseUrl. '/assets');
$cssAnsScriptFilesModule = array(
'/js/default/calendar.js',
);
HtmlHelper::registerCssAndScriptsFiles($cssAnsScriptFilesModule, $this->module->assetsUrl);
array('/css/calendar.css',) ,Yii::app()->theme->baseUrl. '/assets');
HtmlHelper::registerCssAndScriptsFiles(
array('/js/default/calendar.js',), $this->module->assetsUrl);
$cssAnsScriptFilesTheme = array(
'/plugins/fullcalendar/fullcalendar/fullcalendar.min.js',
......@@ -74,7 +70,7 @@
}
.dateHeader{
/*border-bottom: 1px solid rgba(0,0,0,0.1);*/
padding: 15px 0px;
padding: 15px;
}
.contentHoursSession{
border-top: 1px solid rgba(0,0,0,0.1);
......@@ -107,6 +103,13 @@
margin-top: 100px;
}
.fc-center h2{
margin-top: 10px !important;
font-size: 20px !important;
color: #EF5B34;
}
</style>
<div id="circuit">
<?php if(!@$viewRender){ ?>
......@@ -117,53 +120,81 @@
</div>
<div class="col-md-10 col-md-offset-1 col-sm-10 col-sm-offset-1 col-xs-12 contentOnePage">
<?php } ?>
<div class="circuitsInfo shadow2 col-md-12 col-sm-12 col-xs-12 no-padding text-center">
<h2 id="name"></h2>
<span id="description" class="text-dark"></span><br/>
<span id="capacity">Capacity : <span class="capacityValue"></span></span><br/>
<span id="frequency">Frequency : <span class="frequencyValue"></span></span>
<h3 id="total">Total of circuit per person : <span class="totalValue"></span></h3>
<div class='col-md-12 col-sm-12 col-xs-12 btn-cart margin-top-20 margin-bottom-20 no-padding text-center'>
<div class="circuitsInfo shadow2 col-md-12 col-sm-12 col-xs-12 padding-20 text-left margin-top-50">
<h2 id="name" class="letter-orange"></h2>
<hr>
<span id="description" class="text-dark"></span>
<hr>
<span id="capacity"><?php echo Yii::t("common","Capacity") ?> : <span class="capacityValue"></span></span>
<br/>
<span id="frequency"><?php echo Yii::t("common","Frequency") ?> : <span class="frequencyValue"></span></span>
<hr>
<h4 id="total"><?php echo Yii::t("common","Total of circuit per person") ?> : <span class="totalValue"></span></h4>
<div class='col-md-12 col-sm-12 col-xs-12 btn-cart margin-top-20 margin-bottom-20 no-padding text-left'>
<?php if(!@$manage){ ?>
<a href='#activities' class='letter-blue lbh'>
<?php echo Yii::t("common","Continue cart") ?>
<a href='#activities' class='btn btn-link letter-blue lbh padding-top-5'>
<i class='fa fa-chevron-right'></i> <?php echo Yii::t("common","Continue cart") ?>
</a>
<a href='javascript:;' onclick='circuit.backup();' class='btn bg-orange col-md-4 col-sm-4 col-md-offset-2 col-sm-offset-2 col-xs-10 col-xs-offset-1'>
<a href='javascript:;' onclick='circuit.backup();'
class='btn bg-orange col-md-4 col-sm-4 col-xs-12 margin-right-5 margin-bottom-5'>
<i class='fa fa-floppy-o'></i> <?php echo Yii::t("common","Backup") ?>
</a>
<a href='javascript:;' onclick='circuit.save();' class='btn btn-success col-md-4 col-sm-4 col-xs-10 col-xs-offset-1'>
<i class='fa fa-check'></i><?php echo Yii::t("common","Save")?>
<a href='javascript:;' onclick='circuit.save();'
class='btn btn-success col-md-4 col-sm-4 col-xs-12 margin-right-5'>
<i class='fa fa-check'></i> <?php echo Yii::t("common","Save")?>
</a>
<?php }else if($manage=="backup"){ ?>
<a href="javascript:;" id="goBackToThisCart" class="btn btn-success col-md-4 col-sm-4 col-md-offset-2 col-sm-offset-2 col-xs-10 col-xs-offset-1" data-id="<?php echo @$backup ?>">
<a href="javascript:;" id="goBackToThisCart"
class="btn btn-success col-md-4 col-sm-4 col-md-offset-2 col-sm-offset-2 col-xs-10 col-xs-offset-1"
data-id="<?php echo @$backup ?>">
<i class="fa fa-ravelry"></i> <?php echo Yii::t("common","Continue this cart") ?>
</a>
<a href="javascript:;" id="deleteBackup" class="btn btn-danger col-md-4 col-sm-4 col-xs-10 col-xs-offset-1" data-id="<?php echo @$backup ?>">
<a href="javascript:;" id="deleteBackup" class="btn btn-danger col-md-4 col-sm-4 col-xs-10 col-xs-offset-1"
data-id="<?php echo @$backup ?>">
<i class="fa fa-trash"></i> <?php echo Yii::t("common","Delete") ?>
</a>
<?php }else if($manage=="admin"){ ?>
<a href="javascript:alert('pourtoi rapha, edit information circuits')" class="btn btn-default" data-id="<?php echo @$backup ?>"><i class="fa fa-pencil"></i> <?php echo Yii::t("common","Edit infos") ?></a>
<a href="javascript:alert('go to circuit.obj to continue building cart si pas de résa')" class="btn btn-default" data-id="<?php echo @$backup ?>">
<a href="javascript:alert('pourtoi rapha, edit information circuits')" class="btn btn-default"
data-id="<?php echo @$backup ?>"><i class="fa fa-pencil"></i> <?php echo Yii::t("common","Edit infos") ?>
</a>
<a href="javascript:alert('go to circuit.obj to continue building cart si pas de résa')"
class="btn btn-default" data-id="<?php echo @$backup ?>">
<i class="fa fa-ravelry"></i> <?php echo Yii::t("common","Update circuit") ?>
</a>
<a href="javascript:alert('delete this circuit if no résa');" class="btn btn-danger">
<i class="fa fa-trash"></i> <?php echo Yii::t("common","Delete") ?>
</a>
<?php }else if($manage=="buy"){ ?>
<span class="text-dark">Choose the quantity</span><br/>
<div class="col-md-6 col-sm-6 col-md-offset-4 col-sm-offset-4 col-xs-10 col-xs-offset-1 margin-bottom-20">
<input type="number" name="quantity" value="1" min="1" max="<?php echo $object["capacity"] ?>" id='bookingFor' class="form-control"/>
</div>
<a href='javascript:;' class='btn bg-orange col-md-6 col-sm-6 col-md-offset-4 col-sm-offset-4 col-xs-10 col-xs-offset-1 convertToShoppingCart'>
<hr>
<span class="text-dark"><?php echo Yii::t("common","Choose the quantity") ?></span><br/>
<div class="col-md-6 col-sm-6 col-xs-12 no-padding margin-bottom-20">
<input type="number" name="quantity" value="1" min="1" max="<?php echo $object["capacity"] ?>"
id='bookingFor' class="form-control"/>
</div>
<div class='col-md-6 col-sm-6 col-xs-12'>
<a href='javascript:;' class='btn bg-orange convertToShoppingCart'>
<i class='fa fa-shopping-cart'></i> <?php echo Yii::t("terla","Buy this circuit") ?>
</a>
</div>
<?php } ?>
</div>
</div>
<div class="contentCalendarCircuit shadow2 col-md-12 col-sm-12 col-xs-12 no-padding text-center">
</div>
<div class="contentCircuit shadow2 col-md-12 col-sm-12 col-xs-12 no-padding text-center">
</div>
<div class="col-md-12 col-sm-12 col-xs-12 no-padding margin-top-50 margin-bottom-50">
<button class="btn btn-link bg-orange" id="btn-show-calendar">
<i class="fa fa-calendar"></i> Afficher le calendrier
</button>
</div>
<div class="contentCalendarCircuit shadow2 col-md-12 col-sm-12 col-xs-12 no-padding text-center">
</div>
<?php if(!@$viewRender){ ?>
</div>
<?php } ?>
......@@ -171,19 +202,22 @@
<?php
if(!@$viewRender){
$layoutPath = 'webroot.themes.'.Yii::app()->theme->name.'.views.layouts.';
$this->renderPartial($layoutPath.'footer', array("subdomain"=>"page"));
//$layoutPath = 'webroot.themes.'.Yii::app()->theme->name.'.views.layouts.';
//$this->renderPartial($layoutPath.'footer', array("subdomain"=>"page"));
}
?>
<script type="text/javascript">
var totalCircuit=0;
<?php if(@$object){ ?>
var circuitObj=<?php echo json_encode($object) ?>;
<?php }else{ ?>
var circuitObj=circuit.obj;
<?php } ?>
var openDetails=[];
var eventsCircuit=[];
jQuery(document).ready(function() {
//if(typeof params.name != "undefined" && params.name != "")
initBtnLink();
......@@ -192,6 +226,8 @@
bookingFor=$("#bookingFor").val();
circuit.goToShoppingCart(circuitObj,bookingFor);
});
htmlCart = "";
if(circuitObj.countQuantity > 0 ){
circuitView = circuit.generateCircuitView(circuitObj);
......@@ -199,6 +235,7 @@
} else {
htmlCircuit=circuit.generateEmptyCircuitView();
}
circuit.initHeaderCircuit(circuitObj);
$(".contentCircuit").html(htmlCircuit);
if(notEmpty(eventsCircuit)){
......@@ -216,6 +253,12 @@
$(".contentCalendarCircuit").fullCalendar("gotoDate", moment(circuitObj.start));
});
}
$(".contentCalendarCircuit").hide();
$("#btn-show-calendar").click(function(){
$(".contentCalendarCircuit").toggle();
});
// bindCartEvent();
});
......
......@@ -171,6 +171,11 @@ var trad = {
"Mode" : "Mode",
"all" : "Tous",
"products" : "<?php echo Yii::t("common","products") ?>",
"services" : "<?php echo Yii::t("common","services") ?>",
"circuits" : "<?php echo Yii::t("common","circuits") ?>",
"Project maturity" : "<?php echo Yii::t("project","Project maturity",null,Yii::app()->controller->module->id)?>",
"idea" : "<?php echo Yii::t("project","idea")?>",
......@@ -405,6 +410,13 @@ var trad = {
"allcitieswiththispostalcode" : "<?php echo Yii::t("common", "All cities with this postal code") ?>",
"allDay" : "<?php echo Yii::t("common", "All day") ?>",
"Checkout" : "<?php echo Yii::t("common", "Checkout") ?>",
"Continue" : "<?php echo Yii::t("common", "Continue") ?>",
"Total of your order" : "<?php echo Yii::t("common", "Total of your order") ?>",
"Leave your comment" : "<?php echo Yii::t("common", "Leave your comment") ?>",
"Your comment" : "<?php echo Yii::t("common", "Your comment") ?>",
};
var tradDynForm = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment