From ce2ae3a70c23bf3ad0d3d8628876df2b4b216dc4 Mon Sep 17 00:00:00 2001 From: Nicolas Bally Date: Thu, 27 Feb 2020 14:00:42 +0100 Subject: [PATCH] suite --- app/views/public/m_odrs/show.html.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/public/m_odrs/show.html.haml b/app/views/public/m_odrs/show.html.haml index 0b61509..6daa9a6 100644 --- a/app/views/public/m_odrs/show.html.haml +++ b/app/views/public/m_odrs/show.html.haml @@ -1,7 +1,7 @@ --if @m_odr.start_at > Date.today and !params[:force] +-if @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;"} -count = ((@m_odr.start_at) - (Date.today)) @@ -57,7 +57,7 @@ #odr_form =semantic_form_for [:public, @m_odr_rep], html: { multipart: true } , :remote => false do |f| =f.hidden_field :m_odr_id - + =hidden_field_tag :force, params[:force] =f.hidden_field :t .form_pannel