modifs diverses (voir todo)
This commit is contained in:
parent
44912efc1e
commit
fc405e6a84
@ -13,10 +13,17 @@ class Admin::MOdrRepsController < ApplicationController
|
|||||||
|
|
||||||
def purge_test
|
def purge_test
|
||||||
@name = "Simion"
|
@name = "Simion"
|
||||||
@m_odr_reps = @m_odr_reps.where("cc_particular_name LIKE ? or cc_particular_firstname LIKE ?","%#{@name}%", "%#{@name}%")
|
@m_odr_reps = MOdrRep.where("cc_particular_name LIKE ? or cc_particular_firstname LIKE ?","%#{@name}%", "%#{@name}%")
|
||||||
@m_odr_reps.all.each do |mor|
|
@m_odr_reps.all.each do |mor|
|
||||||
mor.destroy
|
mor.destroy
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@name = "Bally"
|
||||||
|
@m_odr_reps = MOdrRep.where("cc_particular_name LIKE ? or cc_particular_firstname LIKE ?","%#{@name}%", "%#{@name}%")
|
||||||
|
@m_odr_reps.all.each do |mor|
|
||||||
|
mor.destroy
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def index
|
def index
|
||||||
|
@ -21,6 +21,13 @@
|
|||||||
= form.input :message
|
= form.input :message
|
||||||
= form.hidden_field :lang_site_id
|
= form.hidden_field :lang_site_id
|
||||||
|
|
||||||
|
%p
|
||||||
|
-"numero_bon_achat,bon_achat,nom_odr,remise,civilite,nom,prenom".split(",").each do |t|
|
||||||
|
="[#{t}]"
|
||||||
|
|
||||||
|
-if current_admin.id == 1
|
||||||
|
= form.input :tags
|
||||||
|
|
||||||
|
|
||||||
.actions=form.submit "sauvegarder", :class => "btn btn-primary"
|
.actions=form.submit "sauvegarder", :class => "btn btn-primary"
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
-if @m_odr
|
-if @m_odr
|
||||||
%br
|
%br
|
||||||
%br
|
%br
|
||||||
|
-if false
|
||||||
-if @m_odr.logo_image_file
|
-if @m_odr.logo_image_file
|
||||||
=image_tag "https://"+HOSTNAME+@m_odr.logo_image_file.file.url, :class => "odr_logo", :style => (@m_odr.logo_image_file_width? ? "max-width:#{@m_odr.logo_image_file_width}px;margin:auto;": "")
|
=image_tag "https://"+HOSTNAME+@m_odr.logo_image_file.file.url, :class => "odr_logo", :style => (@m_odr.logo_image_file_width? ? "max-width:#{@m_odr.logo_image_file_width}px;margin:auto;": "")
|
||||||
|
|
||||||
|
@ -1,7 +1,13 @@
|
|||||||
|
|
||||||
|
-if @m_odr.public_end and @m_odr.public_end < Date.today and params[:force].to_s == ""
|
||||||
|
%div{:style => "margin-top:30px;font-weight:bold;font-weight:800;font-size:2em;text-transform:uppercase;font-family: 'Open Sans','Helvetica Neue', Helvetica, sans-serif;text-align:center;"}
|
||||||
|
%br
|
||||||
|
Cette opération est terminée
|
||||||
|
|
||||||
|
%br
|
||||||
-if @m_odr.start_at > Date.today and params[:force].to_s == ""
|
%br
|
||||||
|
%br
|
||||||
|
-elsif @m_odr.start_at > Date.today and params[:force].to_s == ""
|
||||||
%div{:style => "margin-top:30px;font-weight:bold;font-weight:800;font-size:2em;text-transform:uppercase;font-family: 'Open Sans','Helvetica Neue', Helvetica, sans-serif;text-align:center;"}
|
%div{:style => "margin-top:30px;font-weight:bold;font-weight:800;font-size:2em;text-transform:uppercase;font-family: 'Open Sans','Helvetica Neue', Helvetica, sans-serif;text-align:center;"}
|
||||||
-count = ((@m_odr.start_at) - (Date.today))
|
-count = ((@m_odr.start_at) - (Date.today))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user