suite
This commit is contained in:
parent
a4af3b1df0
commit
ba8c4201cc
@ -37,6 +37,7 @@
|
|||||||
$(".customer_message_list .height_frame").css
|
$(".customer_message_list .height_frame").css
|
||||||
"height" : $(".customer_message_show").height()+"px"
|
"height" : $(".customer_message_show").height()+"px"
|
||||||
min_height = 0
|
min_height = 0
|
||||||
|
|
||||||
min_height = $(window).height() - $(".top").height() - $(".top_home").height() - $(".bottom").height() - 30
|
min_height = $(window).height() - $(".top").height() - $(".top_home").height() - $(".bottom").height() - 30
|
||||||
|
|
||||||
$("#main").css("min-height", min_height+"px")
|
$("#main").css("min-height", min_height+"px")
|
||||||
@ -73,8 +74,6 @@
|
|||||||
$(this).find("li").css("max-height", height+"px")
|
$(this).find("li").css("max-height", height+"px")
|
||||||
|
|
||||||
|
|
||||||
position_img_now();
|
|
||||||
|
|
||||||
|
|
||||||
@flash_delay = ->
|
@flash_delay = ->
|
||||||
$("#flashs").find(".alert").each ->
|
$("#flashs").find(".alert").each ->
|
||||||
@ -97,284 +96,8 @@ prev_link = ""
|
|||||||
$("document").ready ->
|
$("document").ready ->
|
||||||
|
|
||||||
flash_delay();
|
flash_delay();
|
||||||
|
|
||||||
position_img_now = ->
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# alert $("#large .large-img").outerHeight(false)
|
|
||||||
|
|
||||||
imgheight = $("#large .large-img").outerHeight(false) + $("#large h3").outerHeight(false)
|
|
||||||
|
|
||||||
|
|
||||||
margintop = (( $(window).height() - imgheight) / 2 )
|
|
||||||
|
|
||||||
$("#large .large-img").css
|
|
||||||
"margin-top" :(margintop+"px")
|
|
||||||
#"width" : "100px"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
position_img = ->
|
|
||||||
$("#large .large-img").one "load", ->
|
|
||||||
|
|
||||||
position_img_now()
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$(".expandable_image").click ->
|
|
||||||
maxwidth = 1000
|
|
||||||
maxheight = 900
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
prev_link = $(this)
|
|
||||||
$("body").append "<div id='large'></div>"
|
|
||||||
title = false
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$("#large").append "<div class='img_container first'></div>"
|
|
||||||
$("#large").append "<img src='/close.png' class='close_link' />"
|
|
||||||
$(".img_container.first").append "<img src="+$(this).attr("href")+" class='large-img' />"
|
|
||||||
|
|
||||||
if $(this).attr "title"
|
|
||||||
title = $(this).attr "title"
|
|
||||||
$(".img_container.first").append "<h3>"+title+"</h3>"
|
|
||||||
|
|
||||||
$("#large .large-img").one "load", ->
|
|
||||||
$("#large").fadeIn(500)
|
|
||||||
position_img();
|
|
||||||
if $(window).height() > (maxheight+100)
|
|
||||||
$("#large .large-img").css
|
|
||||||
"max-height" : maxheight
|
|
||||||
else
|
|
||||||
$("#large .large-img").css
|
|
||||||
"max-height" : "85%"
|
|
||||||
|
|
||||||
if $(window).width() > (maxwidth+100)
|
|
||||||
$("#large .large-img").css
|
|
||||||
"max-width" : maxwidth
|
|
||||||
else
|
|
||||||
$("#large .large-img").css
|
|
||||||
"max-width" : "85%"
|
|
||||||
|
|
||||||
position_img();
|
|
||||||
|
|
||||||
|
|
||||||
false
|
|
||||||
|
|
||||||
|
|
||||||
$(".rea-gal a").click ->
|
|
||||||
maxwidth = 1000
|
|
||||||
maxheight = 900
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
prev_link = $(this)
|
|
||||||
$("body").append "<div id='large'></div>"
|
|
||||||
title = false
|
|
||||||
|
|
||||||
|
|
||||||
$("#large").append "<img src='/arrow-next.png' class='next' />"
|
|
||||||
$("#large").append "<img src='/arrow-prev.png' class='prev' />"
|
|
||||||
$("#large").append "<img src='/close.png' class='close_link' />"
|
|
||||||
|
|
||||||
$("#large").append "<div class='img_container first'></div>"
|
|
||||||
$(".img_container.first").append "<img src="+$(this).attr("href")+" class='large-img' />"
|
|
||||||
|
|
||||||
if $(this).attr "title"
|
|
||||||
title = $(this).attr "title"
|
|
||||||
$(".img_container.first").append "<h3>"+title+"</h3>"
|
|
||||||
|
|
||||||
$("#large .large-img").one "load", ->
|
|
||||||
$("#large").fadeIn(500)
|
|
||||||
position_img();
|
|
||||||
if $(window).height() > (maxheight+100)
|
|
||||||
$("#large .large-img").css
|
|
||||||
"max-height" : maxheight
|
|
||||||
else
|
|
||||||
$("#large .large-img").css
|
|
||||||
"max-height" : "85%"
|
|
||||||
|
|
||||||
if $(window).width() > (maxwidth+100)
|
|
||||||
$("#large .large-img").css
|
|
||||||
"max-width" : maxwidth
|
|
||||||
else
|
|
||||||
$("#large .large-img").css
|
|
||||||
"max-width" : "85%"
|
|
||||||
|
|
||||||
position_img();
|
|
||||||
|
|
||||||
|
|
||||||
false
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$("body").on "click", "#large", ->
|
|
||||||
$(this).fadeOut 300, ->
|
|
||||||
$(this).remove()
|
|
||||||
|
|
||||||
|
|
||||||
$("body").on "click" ,"#large .prev",->
|
|
||||||
|
|
||||||
if prev_link.prev("a").length > 0
|
|
||||||
link = prev_link.closest("a").prev("a")
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
else
|
|
||||||
link = prev_link.closest("div").children("a:last")
|
|
||||||
|
|
||||||
|
|
||||||
#titre = photo.find("h3")
|
|
||||||
$(".img_container.first").fadeOut 300, ->
|
|
||||||
$("#large h3").remove()
|
|
||||||
if link.attr "title"
|
|
||||||
title = link.attr "title"
|
|
||||||
$(".img_container.first").append "<h3>"+title+"</h3>"
|
|
||||||
|
|
||||||
|
|
||||||
$('#large .large-img').attr("src", link.attr("href"))
|
|
||||||
$("#large .large-img").one "load", ->
|
|
||||||
$(".img_container.first").fadeIn()
|
|
||||||
position_img();
|
|
||||||
prev_link = link
|
|
||||||
|
|
||||||
false
|
|
||||||
|
|
||||||
|
|
||||||
$("body").on "click" ,"#large .next",->
|
|
||||||
|
|
||||||
if prev_link.next("a").length > 0
|
|
||||||
link = prev_link.closest("a").next("a")
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
else
|
|
||||||
link = prev_link.closest("div").children("a:first")
|
|
||||||
|
|
||||||
|
|
||||||
#titre = photo.find("h3")
|
|
||||||
|
|
||||||
$(".img_container.first").fadeOut 300, ->
|
|
||||||
$("#large h3").remove()
|
|
||||||
if link.attr "title"
|
|
||||||
title = link.attr "title"
|
|
||||||
$(".img_container.first").append "<h3>"+title+"</h3>"
|
|
||||||
|
|
||||||
$('#large .large-img').attr("src", link.attr("href"))
|
|
||||||
$("#large .large-img").one "load", ->
|
|
||||||
$(".img_container.first").fadeIn()
|
|
||||||
position_img();
|
|
||||||
prev_link = link
|
|
||||||
|
|
||||||
false
|
|
||||||
|
|
||||||
|
|
||||||
$('.gal').bxSlider
|
|
||||||
adaptiveHeight: true,
|
|
||||||
auto: true,
|
|
||||||
speed:1000,
|
|
||||||
pause:5000,
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
left =0
|
|
||||||
|
|
||||||
top = 0
|
|
||||||
offset= 0
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
resize()
|
|
||||||
$('.bxslider').bxSlider
|
|
||||||
mode: 'fade'
|
|
||||||
captions: true
|
|
||||||
auto: true
|
|
||||||
resize()
|
resize()
|
||||||
|
|
||||||
|
|
||||||
|
$(window).on "resize", ->
|
||||||
resize_annonces = ->
|
|
||||||
$(".search_results").each ->
|
|
||||||
|
|
||||||
width = $(this).width()
|
|
||||||
|
|
||||||
|
|
||||||
small_width = (width - 4*14) / 2
|
|
||||||
small_height = small_width * (250 / 450)
|
|
||||||
|
|
||||||
big_width = width - 2*14
|
|
||||||
|
|
||||||
if width > 740
|
|
||||||
|
|
||||||
$(this).find(".annonce_list").css
|
|
||||||
"width" : small_width+"px"
|
|
||||||
"max-width" : small_width+"px"
|
|
||||||
$(this).find(".annonce_list .default_image").css
|
|
||||||
"height" : small_height+"px"
|
|
||||||
|
|
||||||
$(this).find(".annonce_list.big").css
|
|
||||||
"width" : big_width+"px"
|
|
||||||
"max-width" : big_width+"px"
|
|
||||||
$(this).find(".annonce_list.big .default_image").css
|
|
||||||
"height" : (small_height+90)+"px"
|
|
||||||
|
|
||||||
else
|
|
||||||
$(this).find(".annonce_list").css
|
|
||||||
"width" : big_width+"px"
|
|
||||||
"max-width" : big_width+"px"
|
|
||||||
$(this).find(".annonce_list .default_image").css
|
|
||||||
"height" : "height" : small_height+"px"
|
|
||||||
|
|
||||||
$(this).find(".annonce_list.big").css
|
|
||||||
"width" : big_width+"px"
|
|
||||||
"max-width" : big_width+"px"
|
|
||||||
$(this).find(".annonce_list.big .default_image").css
|
|
||||||
"height" : (small_height+90)+"px"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
resize_annonces()
|
|
||||||
|
|
||||||
$(window).on "resize", ->
|
|
||||||
resize()
|
resize()
|
||||||
resize_annonces()
|
|
||||||
|
|
||||||
place_annonce_panel = ->
|
|
||||||
if $(window).scrollTop() > 230
|
|
||||||
$("#annonce_save").addClass("fixed")
|
|
||||||
else
|
|
||||||
$("#annonce_save").removeClass("fixed")
|
|
||||||
|
|
||||||
|
|
||||||
$(window).on "scroll", ->
|
|
||||||
place_annonce_panel()
|
|
||||||
|
|
||||||
place_annonce_panel()
|
|
||||||
|
|
||||||
top_height = $(window).height()
|
|
||||||
img_height = 0.0
|
|
||||||
initial_y = 0
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$(document).on "click", ".tags label", ->
|
|
||||||
if $("#"+$(this).attr("for")).is(':checked')
|
|
||||||
$(this).removeClass("active")
|
|
||||||
else
|
|
||||||
$(this).addClass("active")
|
|
||||||
|
@ -16,57 +16,20 @@
|
|||||||
|
|
||||||
@import "vendor/flipclock";
|
@import "vendor/flipclock";
|
||||||
|
|
||||||
|
.quartz{
|
||||||
|
|
||||||
|
|
||||||
#document_cart_overlay{
|
|
||||||
background:rgba(255,255,255,0.9);
|
|
||||||
position:fixed;
|
|
||||||
top:0;
|
|
||||||
left:0;
|
|
||||||
right:0;
|
|
||||||
bottom:0;
|
|
||||||
z-index:10000;
|
|
||||||
|
|
||||||
#document_cart{
|
|
||||||
position:relative;
|
|
||||||
width:90%;
|
|
||||||
max-width:600px;
|
|
||||||
margin:auto;
|
|
||||||
background:white;
|
|
||||||
text-align:center;
|
|
||||||
padding:20px;
|
|
||||||
box-shadow:0 0 10px rgba(0,0,0,0.3);
|
|
||||||
.button{
|
|
||||||
padding:5px 10px;
|
|
||||||
text-transform:uppercase;
|
|
||||||
font-weight:bold;
|
|
||||||
cursor:pointer;
|
|
||||||
display:inline-block;
|
|
||||||
margin:20px 10px;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
a{
|
|
||||||
.button{
|
|
||||||
color:white;
|
|
||||||
background:$orange;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.close{
|
|
||||||
padding:5px 10px;
|
|
||||||
background:#F7F7F7;
|
|
||||||
position:absolute;
|
position:absolute;
|
||||||
right:20px;
|
bottom:10px;
|
||||||
top:-30px;
|
right:10px;
|
||||||
cursor:hand;
|
color:rgba(black, 0.5);
|
||||||
|
font-size:0.9em;
|
||||||
|
img{
|
||||||
|
height:20px;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.reseaux_body{
|
.reseaux_body{
|
||||||
|
|
||||||
.top{
|
.top{
|
||||||
@ -109,16 +72,9 @@
|
|||||||
|
|
||||||
#main{
|
#main{
|
||||||
position:relative;
|
position:relative;
|
||||||
.body-container{
|
padding-bottom:60px;
|
||||||
|
padding-top:50px;
|
||||||
|
|
||||||
background-color: #ededed;
|
|
||||||
padding-top:50px;
|
|
||||||
padding-bottom:30px;
|
|
||||||
}
|
|
||||||
.footer{
|
|
||||||
height:500px;
|
|
||||||
background-color: #777777;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -128,7 +84,7 @@ position:relative;
|
|||||||
|
|
||||||
//margin-bottom:10px;
|
//margin-bottom:10px;
|
||||||
position:relative;
|
position:relative;
|
||||||
background:rgba(2,43,71,1) ;
|
background:rgba(32,110,149,1) ;
|
||||||
background-size:100%;
|
background-size:100%;
|
||||||
background-size:cover;
|
background-size:cover;
|
||||||
|
|
||||||
@ -143,7 +99,8 @@ position:relative;
|
|||||||
color:white;
|
color:white;
|
||||||
}
|
}
|
||||||
|
|
||||||
background:white;
|
background:rgba(2,43,71,1);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -205,16 +162,12 @@ position:relative;
|
|||||||
|
|
||||||
#menu{
|
#menu{
|
||||||
|
|
||||||
background:rgba(0,0,0,0) !important;
|
|
||||||
width:100%;
|
width:100%;
|
||||||
|
|
||||||
z-index:10;
|
z-index:10;
|
||||||
|
|
||||||
-webkit-transition: background-color 1000ms linear;
|
|
||||||
-moz-transition: background-color 1000ms linear;
|
|
||||||
-o-transition: background-color 1000ms linear;
|
|
||||||
-ms-transition: background-color 1000ms linear;
|
|
||||||
transition: background-color 1000ms linear;
|
|
||||||
|
|
||||||
a{
|
a{
|
||||||
color:white;
|
color:white;
|
||||||
@ -1054,5 +1007,76 @@ height: 100%;
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.reseauxes_home_video{
|
||||||
|
a{
|
||||||
|
color:rgba(black,0.8);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.reseauxes_home_container{
|
||||||
|
text-align:center;
|
||||||
|
.logo{
|
||||||
|
max-width:180px;
|
||||||
|
display:block;
|
||||||
|
margin:auto;
|
||||||
|
margin-bottom:50px;
|
||||||
|
}
|
||||||
|
p{
|
||||||
|
max-width:320px;
|
||||||
|
margin:30px auto;
|
||||||
|
text-align:center;
|
||||||
|
|
||||||
|
strong{
|
||||||
|
font-size:1.2em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.reseauxes_home{
|
||||||
|
max-width:400px;
|
||||||
|
margin:auto;
|
||||||
|
border-bottom:1px solid #d9d9d9;
|
||||||
|
a{
|
||||||
|
display:block;
|
||||||
|
padding:10px 15px;
|
||||||
|
padding-right:20px;
|
||||||
|
font-size:1.2em;
|
||||||
|
color:rgba(black,0.7);
|
||||||
|
border:1px solid #d9d9d9;
|
||||||
|
border-bottom:0;
|
||||||
|
border-right:0;
|
||||||
|
border-left:0;
|
||||||
|
text-align:left;
|
||||||
|
position:relative;
|
||||||
|
.arrow{
|
||||||
|
position:absolute;
|
||||||
|
top:50%;
|
||||||
|
right:10px;
|
||||||
|
|
||||||
|
i{
|
||||||
|
position:relative;
|
||||||
|
top:-0.75em;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
span{
|
||||||
|
font-size:0.9em;
|
||||||
|
font-style:italic;
|
||||||
|
color:rgba(black,0.5);
|
||||||
|
display:block;
|
||||||
|
margin-top:-5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover{
|
||||||
|
background:#52bad5;
|
||||||
|
color:white;text-decoration:none;
|
||||||
|
border:#52bad5;
|
||||||
|
span{
|
||||||
|
color:white;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -207,7 +207,7 @@ $dark_orange:#206e95;
|
|||||||
|
|
||||||
&.active, &:hover{
|
&.active, &:hover{
|
||||||
|
|
||||||
background : $orange;
|
|
||||||
color:white !important;
|
color:white !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -223,3 +223,78 @@ $dark_orange:#206e95;
|
|||||||
padding:0 !important;
|
padding:0 !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#document_cart_overlay{
|
||||||
|
background:rgba(255,255,255,0.9);
|
||||||
|
position:fixed;
|
||||||
|
top:0;
|
||||||
|
left:0;
|
||||||
|
right:0;
|
||||||
|
bottom:0;
|
||||||
|
z-index:10000;
|
||||||
|
|
||||||
|
#document_cart{
|
||||||
|
position:relative;
|
||||||
|
width:90%;
|
||||||
|
max-width:600px;
|
||||||
|
margin:auto;
|
||||||
|
background:white;
|
||||||
|
text-align:center;
|
||||||
|
padding:20px;
|
||||||
|
box-shadow:0 0 10px rgba(0,0,0,0.3);
|
||||||
|
h3{
|
||||||
|
font-size:1.3em;
|
||||||
|
text-align:center;
|
||||||
|
}
|
||||||
|
.product.product-item{
|
||||||
|
background:#f9f9f9;
|
||||||
|
text-align:left;
|
||||||
|
padding:10px;
|
||||||
|
img{
|
||||||
|
float:left;
|
||||||
|
width:150px;
|
||||||
|
}
|
||||||
|
.description{
|
||||||
|
margin-left:155px;
|
||||||
|
text-align:left;
|
||||||
|
}
|
||||||
|
h3{
|
||||||
|
color:black;
|
||||||
|
margin-top:0;
|
||||||
|
font-size:1.1em;
|
||||||
|
text-decoration:none;
|
||||||
|
text-align:left;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.button{
|
||||||
|
padding:5px 10px;
|
||||||
|
text-transform:uppercase;
|
||||||
|
font-weight:bold;
|
||||||
|
cursor:pointer;
|
||||||
|
display:inline-block;
|
||||||
|
margin:20px 10px;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
a{
|
||||||
|
.button{
|
||||||
|
color:white;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.close{
|
||||||
|
padding:5px 10px;
|
||||||
|
background:#F7F7F7;
|
||||||
|
position:absolute;
|
||||||
|
right:20px;
|
||||||
|
top:-30px;
|
||||||
|
cursor:hand;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
@ -1,18 +1,25 @@
|
|||||||
|
html, body {
|
||||||
|
margin: 0;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
body{
|
body{
|
||||||
font-family:"Helvetica", "Arial", sans-serif;
|
font-family:"Lato", "Arial", sans-serif;
|
||||||
font-weight:400;
|
font-weight:400;
|
||||||
line-height:1.5;
|
line-height:1.5;
|
||||||
text-align:justify;
|
text-align:justify;
|
||||||
background:rgba(32,110,149,1);
|
background-color: #ededed;
|
||||||
font-size:15px;
|
font-size:15px;
|
||||||
color:#55595B;
|
color:#55595B;
|
||||||
|
padding:0;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
h1, h2, h3,h4{
|
h1, h2, h3,h4{
|
||||||
font-weight:400 ;
|
font-weight:400 ;
|
||||||
font-family:"Varela Round","Helvetica", "Arial", sans-serif;
|
font-family:"Lato","Helvetica", "Arial", sans-serif;
|
||||||
text-align:left;
|
text-align:left;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6,6 +6,16 @@ class ApplicationController < ActionController::Base
|
|||||||
|
|
||||||
before_filter :set_order
|
before_filter :set_order
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
def get_reseaux
|
||||||
|
if session[:reseaux_id]
|
||||||
|
@reseaux = current_customer.reseauxes.find(session[:reseaux_id])
|
||||||
|
@reseaux_layout = true
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
def set_order
|
def set_order
|
||||||
if session[:product_order_id] && @product_order = ProductOrder.where(id: session[:product_order_id]).first
|
if session[:product_order_id] && @product_order = ProductOrder.where(id: session[:product_order_id]).first
|
||||||
if @product_order.paid
|
if @product_order.paid
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
class Public::ContactMessagesController < ApplicationController
|
class Public::ContactMessagesController < ApplicationController
|
||||||
layout "public"
|
layout "public"
|
||||||
|
#before_filter :get_reseaux
|
||||||
def index
|
def index
|
||||||
ContactMessage.update_all(read_by_customer: true)
|
ContactMessage.update_all(read_by_customer: true)
|
||||||
@contact_message = ContactMessage.new
|
@contact_message = ContactMessage.new
|
||||||
|
@ -3,7 +3,10 @@ class Public::MyAccountController < ApplicationController
|
|||||||
layout "public"
|
layout "public"
|
||||||
|
|
||||||
before_filter :auth_customer
|
before_filter :auth_customer
|
||||||
|
def my_reseauxes
|
||||||
|
|
||||||
|
|
||||||
|
end
|
||||||
def index
|
def index
|
||||||
|
|
||||||
@accepted_offers = current_customer.accepted_offers.order(created_at: :desc).page(params[:page_offers]).per(5)
|
@accepted_offers = current_customer.accepted_offers.order(created_at: :desc).page(params[:page_offers]).per(5)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
class Public::ProductOrderProductsController < ApplicationController
|
class Public::ProductOrderProductsController < ApplicationController
|
||||||
|
|
||||||
layout "public"
|
layout "public"
|
||||||
|
before_filter :get_reseaux
|
||||||
def create
|
def create
|
||||||
#clear params
|
#clear params
|
||||||
params[:product_order_product][:product_size_id] = nil if params[:product_order_product][:product_size_id] == ""
|
params[:product_order_product][:product_size_id] = nil if params[:product_order_product][:product_size_id] == ""
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
class Public::ProductsController < ApplicationController
|
class Public::ProductsController < ApplicationController
|
||||||
|
|
||||||
|
before_filter :auth_customer
|
||||||
layout "public"
|
layout "public"
|
||||||
|
|
||||||
def show
|
def show
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
class Public::ReseauxesController < ApplicationController
|
class Public::ReseauxesController < ApplicationController
|
||||||
layout "public"
|
layout "public"
|
||||||
|
before_filter :auth_customer
|
||||||
|
|
||||||
def index
|
def index
|
||||||
@reseauxes = current_customer.own_reseauxes.order(:name)
|
@reseauxes = current_customer.own_reseauxes.order(:name)
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
%meta{:"http-equiv" => "Content-Type", :content=>"text/html; charset=UTF-8"}
|
%meta{:"http-equiv" => "Content-Type", :content=>"text/html; charset=UTF-8"}
|
||||||
%meta{:name=>"viewport", :content=>"width=device-width,initial-scale=1"}
|
%meta{:name=>"viewport", :content=>"width=device-width,initial-scale=1"}
|
||||||
|
<link href="https://fonts.googleapis.com/css?family=Lato:400,400i,700,700i" rel="stylesheet">
|
||||||
:scss
|
:scss
|
||||||
body{
|
body{
|
||||||
font-size:11pt;
|
font-size:11pt;
|
||||||
@ -11,7 +12,7 @@
|
|||||||
margin:0px;
|
margin:0px;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
|
|
||||||
font-family:"Arial" ;
|
font-family:"Lato", Arial, Sans-serif;
|
||||||
padding:1cm;
|
padding:1cm;
|
||||||
}
|
}
|
||||||
#main{
|
#main{
|
||||||
@ -96,7 +97,7 @@
|
|||||||
%body
|
%body
|
||||||
#main
|
#main
|
||||||
|
|
||||||
%div{:style => "position:absolute;top:4.8cm;right:1cm;text-align:right;"}
|
%div{:style => "position:absolute;top:4.4cm;right:1cm;text-align:right;"}
|
||||||
Bon de commande n°
|
Bon de commande n°
|
||||||
=@product_order.bl_number
|
=@product_order.bl_number
|
||||||
%br
|
%br
|
||||||
@ -107,9 +108,9 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
%table.table{:style => "position:absolute;right:1cm;top:240px"}
|
%table.table{:style => "position:absolute;right:1cm;top:220px"}
|
||||||
%tr
|
%tr
|
||||||
%td{:style => "min-width:6cm;border:0"}
|
%td{:style => "width:5.5cm;border:0"}
|
||||||
%h3 Adresse de facturation
|
%h3 Adresse de facturation
|
||||||
|
|
||||||
%strong=@product_order.particular_bill.organisation
|
%strong=@product_order.particular_bill.organisation
|
||||||
@ -131,7 +132,7 @@
|
|||||||
=@product_order.particular_bill.country
|
=@product_order.particular_bill.country
|
||||||
|
|
||||||
|
|
||||||
%td{:style => "border:0"}
|
%td{:style => "width:5.5cm;border:0"}
|
||||||
%h3 Adresse de livraison
|
%h3 Adresse de livraison
|
||||||
|
|
||||||
%strong=@product_order.particular_bill.organisation
|
%strong=@product_order.particular_bill.organisation
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
|
|
||||||
=f.inputs do
|
=f.inputs do
|
||||||
=f.input :name, :label => "Nom du réseau : "
|
=f.input :name, :label => "Nom du réseau : "
|
||||||
|
=f.input :baseline, :label => "Baseline :"
|
||||||
=f.input :description, :label => "A propos : ", :input_html => {:class => "redactor_textarea"}
|
=f.input :description, :label => "A propos : ", :input_html => {:class => "redactor_textarea"}
|
||||||
-if !@reseaux.parent
|
-if !@reseaux.parent
|
||||||
=f.input :chef_reseau, :label => "Chef réseau : ", :collection => Customer.where(:chef_reseau => true).pluck(Arel.sql("CONCAT(`firstname`, ' ', `name`)"), :id)
|
=f.input :chef_reseau, :label => "Chef réseau : ", :collection => Customer.where(:chef_reseau => true).pluck(Arel.sql("CONCAT(`firstname`, ' ', `name`)"), :id)
|
||||||
|
@ -21,13 +21,13 @@
|
|||||||
|
|
||||||
= stylesheet_link_tag 'public'
|
= stylesheet_link_tag 'public'
|
||||||
= stylesheet_link_tag '/fonts/Stylograph/stylesheet.css'
|
= stylesheet_link_tag '/fonts/Stylograph/stylesheet.css'
|
||||||
<link href='https://fonts.googleapis.com/css?family=Varela+Round' rel='stylesheet' type='text/css'>
|
<link href="https://fonts.googleapis.com/css?family=Lato:400,400i,700,700i" rel="stylesheet">
|
||||||
|
|
||||||
=javascript_include_tag "https://maps.googleapis.com/maps/api/js?libraries=places&sensor=false"
|
=javascript_include_tag "https://maps.googleapis.com/maps/api/js?libraries=places&sensor=false"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%body{:class => ("reseaux_body " if @reseaux_layout).to_s}
|
%body{:class => ("reseaux_body " if @reseaux_layout).to_s, :style => ("background:#f8f8f8 url('/fond-accueil.jpg') center center;background-size:100%;background-size:cover;" if @my_reseauxes).to_s }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -41,7 +41,8 @@
|
|||||||
.clear
|
.clear
|
||||||
|
|
||||||
-if @reseaux_layout
|
-if @reseaux_layout
|
||||||
=link_to image_tag("/logo-mb.png", :id => "logo-mb"), "/"
|
=link_to image_tag("/logo-mb.png", :id => "logo-mb"), public_my_reseauxes_path
|
||||||
|
-if !@my_reseauxes
|
||||||
-if @reseaux_layout
|
-if @reseaux_layout
|
||||||
=link_to public_reseaux_products_path(:reseaux_id => session[:reseaux_id].to_i) do
|
=link_to public_reseaux_products_path(:reseaux_id => session[:reseaux_id].to_i) do
|
||||||
.reseaux_top.with_ratio{:data => {:ratio => "0.2"},:style => "background-image:url('"+(@reseaux.background_image_file.file.large.url if @reseaux.background_image_file).to_s+"');"}
|
.reseaux_top.with_ratio{:data => {:ratio => "0.2"},:style => "background-image:url('"+(@reseaux.background_image_file.file.large.url if @reseaux.background_image_file).to_s+"');"}
|
||||||
@ -54,19 +55,29 @@
|
|||||||
=link_to image_tag("/logo.png", :id => "big-logo"), "/"
|
=link_to image_tag("/logo.png", :id => "big-logo"), "/"
|
||||||
-else
|
-else
|
||||||
=link_to image_tag("/logo.png", :id => "logo"), "/"
|
=link_to image_tag("/logo.png", :id => "logo"), "/"
|
||||||
|
.clear{:style => "height:1px;"}
|
||||||
|
|
||||||
|
|
||||||
#main
|
#main
|
||||||
.body-container
|
|
||||||
=yield
|
=yield
|
||||||
|
-if !@my_reseauxes
|
||||||
.footer
|
.footer
|
||||||
|
=link_to "http://quartz.xyz", :target => "_blank" do
|
||||||
|
.quartz
|
||||||
|
=image_tag "/logo-quartz.png"
|
||||||
|
Développement Quartz Agence
|
||||||
|
|
||||||
.clear
|
.clear
|
||||||
|
.clear
|
||||||
=#render :partial => "public/shared/bottom"
|
=#render :partial => "public/shared/bottom"
|
||||||
|
-if @my_reseauxes
|
||||||
|
.reseauxes_home_video{:style => "position:absolute;bottom:10px;right:10px;"}=link_to ic(:"youtube-play")+" Présentation Négos","", :class => "btn negos-video"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#flashs= bootstrap_flash
|
#flashs= bootstrap_flash
|
||||||
|
|
||||||
-if flash[:read_video]
|
-if flash[:read_video] and false
|
||||||
:javascript
|
:javascript
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$.magnificPopup.open({
|
$.magnificPopup.open({
|
||||||
|
30
app/views/public/my_account/my_reseauxes.html.haml
Normal file
30
app/views/public/my_account/my_reseauxes.html.haml
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
-@my_reseauxes = true
|
||||||
|
.padding.center.reseauxes_home_container
|
||||||
|
|
||||||
|
|
||||||
|
=link_to image_tag("/logo3.png", :class => "logo"), "/"
|
||||||
|
|
||||||
|
|
||||||
|
%p
|
||||||
|
%strong
|
||||||
|
Bonjour
|
||||||
|
=current_customer.firstname+","
|
||||||
|
%br
|
||||||
|
Choissisez le réseaux sur lequel vous souhaitez vous connecter :
|
||||||
|
.reseauxes_home
|
||||||
|
=link_to public_needs_path, :class => "reseauxes" do
|
||||||
|
.arrow
|
||||||
|
=ic :"angle-right"
|
||||||
|
Plateforme Négos
|
||||||
|
%span
|
||||||
|
Vous choisissez, nous négocions !
|
||||||
|
-current_customer.reseauxes.where(:parent_id => nil).each do |reseaux|
|
||||||
|
=link_to public_reseaux_products_path(:reseaux_id => reseaux.id), :class => "reseauxes" do
|
||||||
|
.arrow
|
||||||
|
=ic :"angle-right"
|
||||||
|
=reseaux.name
|
||||||
|
%span
|
||||||
|
=reseaux.baseline
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -13,13 +13,35 @@
|
|||||||
-else
|
-else
|
||||||
commandé
|
commandé
|
||||||
|
|
||||||
|
-product = Product.where(:archived => false, :reseaux_id => @reseaux.id).where("id != ?",@product.id ).first
|
||||||
|
-if product
|
||||||
|
%h3 Ce produit pourrait aussi vous intéresser :
|
||||||
|
=link_to public_reseaux_product_path(:reseaux_id => @reseaux.id,:id => product.id, :slug => product.lang(I18n.locale).slug) do
|
||||||
|
.product.product-item
|
||||||
|
.inner
|
||||||
|
=image_tag product.default_image.image_file.file.large.medium.url if product.default_image
|
||||||
|
|
||||||
|
.description
|
||||||
|
%h3.product-title
|
||||||
|
=product.lang(I18n.locale).title
|
||||||
|
%p
|
||||||
|
.btn.btn-primary
|
||||||
|
Voir ce produit
|
||||||
|
|
||||||
|
.clear
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.buttons
|
.buttons
|
||||||
.button{:onclick => "$('#document_cart_overlay').remove()"}
|
.button{:onclick => "$('#document_cart_overlay').remove()"}
|
||||||
|
=ic :"arrow-left"
|
||||||
Continuer ma visite
|
Continuer ma visite
|
||||||
|
|
||||||
=link_to public_my_cart_path do
|
=link_to public_my_cart_path do
|
||||||
.button
|
.button.btn.btn-primary
|
||||||
Commander
|
Commander
|
||||||
|
|
||||||
|
|
||||||
|
@ -3,12 +3,16 @@
|
|||||||
|
|
||||||
-if current_customer
|
-if current_customer
|
||||||
%ul
|
%ul
|
||||||
|
-if !@my_reseauxes
|
||||||
-if current_customer.account_validated?
|
-if current_customer.account_validated?
|
||||||
|
%li=link_to ic(:home)+" Accueil", public_my_reseauxes_path, :class => "btn"
|
||||||
|
-if !@reseaux
|
||||||
%li=link_to ic(:"youtube-play")+" Présentation Négos","", :class => "btn negos-video"
|
%li=link_to ic(:"youtube-play")+" Présentation Négos","", :class => "btn negos-video"
|
||||||
-if current_customer.account_validated?
|
-if current_customer.account_validated?
|
||||||
%li=link_to ic(:star)+" Besoins", public_needs_path, :class => "btn"
|
%li=link_to ic(:star)+" Besoins", public_needs_path, :class => "btn"
|
||||||
- unread_message = ContactMessage.where(contact_id: current_customer.id, read_by_customer: false).count
|
- unread_message = ContactMessage.where(contact_id: current_customer.id, read_by_customer: false).count
|
||||||
%li=link_to ic(:comment)+" Nous contacter" + (unread_message > 0 ? " (#{unread_message})" : ""), public_contact_messages_path, :class => "btn"
|
%li=link_to ic(:comment)+" Nous contacter" + (unread_message > 0 ? " (#{unread_message})" : ""), public_contact_messages_path, :class => "btn"
|
||||||
|
-if !@reseaux
|
||||||
%li=link_to ic(:user)+" Mon compte", public_my_account_path, :class => "btn"
|
%li=link_to ic(:user)+" Mon compte", public_my_account_path, :class => "btn"
|
||||||
|
|
||||||
-if current_customer.own_reseauxes.count > 0
|
-if current_customer.own_reseauxes.count > 0
|
||||||
|
@ -84,7 +84,7 @@ Rails.application.routes.draw do
|
|||||||
get :buy_option
|
get :buy_option
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
get 'my_account/mes-reseaux' => "my_account#my_reseauxes", :as => "my_reseauxes"
|
||||||
get 'my_account/favoris', :as => "favs"
|
get 'my_account/favoris', :as => "favs"
|
||||||
get 'my_account/filleuls', :as => "filleuls"
|
get 'my_account/filleuls', :as => "filleuls"
|
||||||
get 'my_account/binary', :as => "binary"
|
get 'my_account/binary', :as => "binary"
|
||||||
|
BIN
pdf_stamp/bl.pdf
BIN
pdf_stamp/bl.pdf
Binary file not shown.
BIN
public/fond-accueil.jpg
Normal file
BIN
public/fond-accueil.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 185 KiB |
BIN
public/fond-accueil1.jpg
Normal file
BIN
public/fond-accueil1.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 103 KiB |
Binary file not shown.
Before Width: | Height: | Size: 279 KiB After Width: | Height: | Size: 82 KiB |
BIN
public/logo-quartz.png
Normal file
BIN
public/logo-quartz.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 29 KiB |
BIN
public/logo3.png
Executable file
BIN
public/logo3.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 106 KiB |
Loading…
x
Reference in New Issue
Block a user