From bb6e89d7f1f596a93e8c20ebf6b8d5b4fa45d83b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A9?= Date: Tue, 21 Sep 2021 10:55:22 +0200 Subject: [PATCH] add container --- .../admin/price_documents/consult.html.haml | 25 +++++++++++-------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/app/views/admin/price_documents/consult.html.haml b/app/views/admin/price_documents/consult.html.haml index 5554f0f..840b8fd 100644 --- a/app/views/admin/price_documents/consult.html.haml +++ b/app/views/admin/price_documents/consult.html.haml @@ -30,27 +30,32 @@ =f.hidden_field :doc_ref_id =f.hidden_field :price_document_type_id - - %center= f.input :public_fournisseur_name, :label => "Nom de votre société :" + + %center + .small-container + = f.input :public_fournisseur_name, :label => "Nom de votre société :" - %p{:style => "text-align:center;font-size:1.2em;"} - Vous pouvez également indiquer votre référence interne : + %p{:style => "text-align:center;font-size:1.2em;"} + Vous pouvez également indiquer votre référence interne : - =hidden_field_tag :public_edit, params[:public_edit] + =hidden_field_tag :public_edit, params[:public_edit] - .price_line_block_form - =f.semantic_fields_for :price_line_block do |f| - %center=render :partial => "admin/price_line_blocks/form_#{f.object.block_type_slug}", :locals => {:f => f} + .price_line_block_form + =f.semantic_fields_for :price_line_block do |f| + %center=render :partial => "admin/price_line_blocks/form_#{f.object.block_type_slug}", :locals => {:f => f} %center =f.submit "sauvegarder", :class => "btn btn-primary" - +:scss + .small-container{ + max-width: 500px; + } - \ No newline at end of file +