responsive
This commit is contained in:
parent
0438ecf52e
commit
318bffc203
@ -120,12 +120,6 @@ $(document).ready ->
|
||||
|
||||
|
||||
@resize = () ->
|
||||
petition_margin = (($(".petition_3 .bandeau").height()-$(".petition_3 .petition").height())/ 2 - 30)
|
||||
|
||||
if petition_margin < 0
|
||||
petition_margin = 0
|
||||
|
||||
$(".petition_3 .petition").css('margin-top': petition_margin+'px')
|
||||
|
||||
|
||||
top = $("#menu_top_container").outerHeight()
|
||||
|
@ -34,6 +34,8 @@
|
||||
.numbers{
|
||||
background-color: #cc4b14;
|
||||
padding: 30px 0px;
|
||||
|
||||
|
||||
}
|
||||
|
||||
.center_programme {
|
||||
@ -273,5 +275,16 @@
|
||||
}
|
||||
.numbers {
|
||||
padding: 30px 20px;
|
||||
|
||||
text-align:center;
|
||||
|
||||
.chiffre{
|
||||
font-size:25px ;
|
||||
}
|
||||
.label-chiffre{
|
||||
font-size:20px ;
|
||||
padding-left:3px !important;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -8385,8 +8385,8 @@ img{
|
||||
.no-mobile{
|
||||
display:none;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
.columns{
|
||||
float:none;
|
||||
width:auto !important;
|
||||
@ -8450,8 +8450,8 @@ img{
|
||||
}
|
||||
|
||||
.right_intro{
|
||||
text-align:left;
|
||||
padding:5px 30px;
|
||||
|
||||
padding:0;
|
||||
|
||||
}
|
||||
|
||||
@ -8567,6 +8567,124 @@ img{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.inline_check_boxes{
|
||||
span{
|
||||
display:block;
|
||||
}
|
||||
|
||||
strong{
|
||||
display:block;
|
||||
margin-bottom:5px;
|
||||
}
|
||||
}
|
||||
|
||||
.row_home, .right_intro{
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.row1{
|
||||
.block_intro:last-child{
|
||||
padding-bottom:0 !important;
|
||||
}
|
||||
}
|
||||
|
||||
.row2{
|
||||
.block_intro:first-child{
|
||||
padding-top:0 !important;
|
||||
}
|
||||
}
|
||||
|
||||
.circuit{
|
||||
|
||||
h3{
|
||||
text-align:center;
|
||||
display:block;
|
||||
}
|
||||
.absolute_logo{
|
||||
float: none;
|
||||
text-align:center;
|
||||
margin: 10px auto;
|
||||
display: block;
|
||||
position: static;
|
||||
height: 100px;
|
||||
margin-top: 20px;
|
||||
|
||||
padding:0;
|
||||
|
||||
img{
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
.block_info{
|
||||
display:block;
|
||||
text-align:center;
|
||||
padding-bottom:5px;
|
||||
margin-right:0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.circuit_show{
|
||||
.localisation{
|
||||
display:block;
|
||||
text-align:center;
|
||||
span{
|
||||
display:block;
|
||||
}
|
||||
}
|
||||
|
||||
.circuit_img{
|
||||
width:auto;
|
||||
float:none;
|
||||
margin-bottom:20px;
|
||||
}
|
||||
|
||||
.info_lien{
|
||||
margin-bottom:0;
|
||||
}
|
||||
|
||||
.block_info{
|
||||
display:block;
|
||||
text-align:center;
|
||||
padding-bottom:5px;
|
||||
margin-right:0;
|
||||
}
|
||||
|
||||
|
||||
.right{
|
||||
float:none;
|
||||
text-align:center;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
.primes{
|
||||
.render_block{
|
||||
padding:0 15px;
|
||||
.new_btn{
|
||||
margin-bottom:10px;
|
||||
}
|
||||
|
||||
img{
|
||||
width:auto !important;
|
||||
margin:0 !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.m_event{
|
||||
.right_roulage{
|
||||
text-align:center;
|
||||
float:none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.country_icon{
|
||||
|
@ -3,6 +3,8 @@ class MOdrProductSize < ApplicationRecord
|
||||
|
||||
acts_as_csv_import :fields => [:name, :m_odr_product_id, :position, :sap]
|
||||
|
||||
default_scope { order(name: :asc) }
|
||||
|
||||
def member_label
|
||||
if self.m_odr_product
|
||||
"#{self.m_odr_product.name} - #{self.name} - #{self.position}"
|
||||
|
@ -13,7 +13,7 @@
|
||||
.desc
|
||||
-if circuit.logo
|
||||
.absolute_logo
|
||||
=image_tag (circuit.logo.file.large.medium.url )
|
||||
=image_tag(circuit.logo.file.large.medium.url, :class => "vertical_center")
|
||||
|
||||
.titre_list
|
||||
%h3=circuit.name
|
||||
|
@ -51,16 +51,18 @@
|
||||
=#<img src="/images/interface/picto_pointer.png">
|
||||
=@circuit.address2
|
||||
=@circuit.address3 if @circuit.address3?
|
||||
=@circuit.cp
|
||||
=@circuit.city
|
||||
%span
|
||||
=@circuit.cp
|
||||
|
||||
=@circuit.city
|
||||
|
||||
|
||||
-if @circuit.country? and @circuit.country.to_s != "FR"
|
||||
="-"
|
||||
-if @circuit.country? and @circuit.country.to_s != "FR"
|
||||
="-"
|
||||
|
||||
=image_tag "/countries/#{@circuit.country.downcase}.png", :class => "country_icon"
|
||||
=image_tag "/countries/#{@circuit.country.downcase}.png", :class => "country_icon"
|
||||
|
||||
= ISO3166::Country[@circuit.country].translations["fr"]
|
||||
= ISO3166::Country[@circuit.country].translations["fr"]
|
||||
|
||||
.clear
|
||||
.clear
|
||||
|
@ -29,11 +29,24 @@
|
||||
Organisé par
|
||||
%strong=link_to m_event.organisateur.name, public_organisateur_path(:id => m_event.organisateur.slug), :target => "_blank" if m_event.organisateur
|
||||
|
||||
-if m_event.description?
|
||||
%br
|
||||
=link_to "+ d'infos", "#", :onclick => "$(this).next('.details').toggle();return false;"
|
||||
.details{:style => "display:none;"}=simple_format m_event.description
|
||||
|
||||
.no-mobile
|
||||
-if m_event.description?
|
||||
%br
|
||||
=link_to "+ d'infos", "#", :onclick => "$(this).next('.details').toggle();return false;"
|
||||
.details{:style => "display:none;"}=simple_format m_event.description
|
||||
|
||||
.mobile-block.mobile_resp
|
||||
.details
|
||||
-if m_event.description.size > 80
|
||||
%p
|
||||
=simple_format m_event.description.truncate(80)
|
||||
|
||||
=link_to "+ d'infos", "#", :onclick => "$(this).closest('.desc').find('.mobile_detail').show();$(this).closest('.desc').find('.mobile_resp').hide();return false;"
|
||||
-else
|
||||
=simple_format m_event.description
|
||||
|
||||
.mobile_detail{:style => "display:none;"}
|
||||
.details=simple_format m_event.description
|
||||
%br
|
||||
%br
|
||||
.right_roulage.right
|
||||
|
@ -35,9 +35,9 @@
|
||||
|
||||
|
||||
-["Ecole / Stage de pilotage", "Roulage encadré", "Roulage libre"] .each do |pdt|
|
||||
|
||||
= check_box_tag :"search[m_event_type_title][]", pdt, (true if params[:search][:m_event_type_title].include?(pdt.to_s)), {:id => "p_document_type_ids_#{pdt.to_slug}"}
|
||||
= label_tag "p_document_type_ids_"+pdt.to_slug, pdt
|
||||
%span
|
||||
= check_box_tag :"search[m_event_type_title][]", pdt, (true if params[:search][:m_event_type_title].include?(pdt.to_s)), {:id => "p_document_type_ids_#{pdt.to_slug}"}
|
||||
= label_tag "p_document_type_ids_"+pdt.to_slug, pdt
|
||||
|
||||
.clear
|
||||
|
||||
|
@ -130,8 +130,8 @@
|
||||
|
||||
|
||||
|
||||
-c = current_p_customer.m_odr_primes.where(:state => ["En attente de roulage", "Virement envoyé"]).count
|
||||
-ca = current_p_customer.m_odr_primes.where(:state => ["En attente de roulage"]).count
|
||||
-c = current_p_customer.m_odr_primes.where(:state => ["En attente de roulage", "Virement envoyé"]).where("created_at >= ? or created_at <= ?", Date.today.beginning_of_year, Date.today.end_of_year).count
|
||||
-ca = current_p_customer.m_odr_primes.where(:state => ["En attente de roulage"]).where("created_at >= ? or created_at <= ?", Date.today.beginning_of_year, Date.today.end_of_year).count
|
||||
-if c > 0
|
||||
%br
|
||||
%br
|
||||
@ -150,9 +150,11 @@
|
||||
|
||||
=c
|
||||
-if c > 1
|
||||
primes obtenues sur 5 pour 2020
|
||||
primes obtenues sur 5 pour
|
||||
= Date.today.year
|
||||
-else
|
||||
prime obtenue sur 5 pour 2020
|
||||
prime obtenue sur 5 pour
|
||||
= Date.today.year
|
||||
|
||||
-if ca > 1
|
||||
(dont
|
||||
@ -165,7 +167,7 @@
|
||||
|
||||
-if current_p_customer.m_odr_primes.count > 0
|
||||
%table.table
|
||||
=render current_p_customer.m_odr_primes
|
||||
=render current_p_customer.m_odr_primes.where("created_at >= ? or created_at <= ?", Date.today.beginning_of_year, Date.today.end_of_year)
|
||||
|
||||
-else
|
||||
.empty
|
||||
|
Loading…
x
Reference in New Issue
Block a user