This commit is contained in:
Nicolas Bally 2020-07-30 15:49:53 +02:00
parent 364681bf5d
commit 551d8bbf25
3 changed files with 3 additions and 3 deletions

View File

@ -36,7 +36,7 @@ class MOdrRep < ApplicationRecord
validates :rgpd, :presence => true, :if => :rgpd_needed?
validates :reduc_code, :presence => true, length: { in: 6..6 }, :if => :reduc_code_needed?
validates :reduc_code, :presence => true, :if => :reduc_code_needed? #length: { in: 6..6 },
validates :reduc, :presence => true, :if => :reduc_needed?

View File

@ -7,7 +7,7 @@ class Particular < ApplicationRecord
has_many :open_ranges, :through => :open_range_elements
belongs_to :owner, :polymorphic => true
validates :civilite, :presence => true, :if => :force_validate_name
#validates :civilite, :presence => true, :if => :force_validate_name
validates :name, :presence => true, :if => :force_validate_name
validates :firstname, :presence => true, :if => :force_validate_name
validates :email, :presence => true, :format => /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\z/i, :if => :force_email_validation

View File

@ -178,7 +178,7 @@
=image_tag(@m_odr.footer_image_file.file.url, :class => "odr_banner", :style => (@m_odr.footer_image_width? ? "max-width:#{@m_odr.footer_image_width}px;margin:auto;": ""))
-if @m_odr.conditions
.conditions=simple_format @m_odr.conditions
.conditions{:style => "text-align:justify;font-size: 0.75em;"}=simple_format @m_odr.conditions