From c37f410d3b6d4638a6f1d9a54d14a6d91b64b6b6 Mon Sep 17 00:00:00 2001 From: Nicolas Bally Date: Mon, 13 Nov 2017 22:41:12 +0100 Subject: [PATCH] suite --- app/views/admin/contacts/_contact.html.haml | 2 +- app/views/admin/contacts/_form.haml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/admin/contacts/_contact.html.haml b/app/views/admin/contacts/_contact.html.haml index 61cbf36..d7c423a 100644 --- a/app/views/admin/contacts/_contact.html.haml +++ b/app/views/admin/contacts/_contact.html.haml @@ -3,7 +3,7 @@ =image_tag "/provenance/#{contact.provenance_id}.png", :style => "width:20px;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,0.5)" %td -if contact.urgent - %div{:style => "width:10px;height:10px;border-radius:50%;"} + %div{:style => "width:20px;height:20px;border-radius:50%;background:red;"} %td{:style => "vertical-align:middle;"} -if !contact.readed %span{:style => "display:inline-block;width:10px;height:10px;border-radius:50%;background:#00B3EC"} diff --git a/app/views/admin/contacts/_form.haml b/app/views/admin/contacts/_form.haml index 666a931..4da0eab 100644 --- a/app/views/admin/contacts/_form.haml +++ b/app/views/admin/contacts/_form.haml @@ -1,7 +1,7 @@ = semantic_form_for [:admin, @contact], :remote => true do |f| .content =f.inputs do - = f.input :contact_status, :label => "Status :", :collection => ["En cours", "Signés","En attente", "Archivé"] + = f.input :contact_status, :label => "Status :", :collection => ["En cours", "Signés","En attente", "Archivé"], :include_blank => true = f.input :urgent, :label => "Urgent ?" = f.input :readed, :label => "Lu ?" = f.input :admin_id, :label => "Géré par ?", :collection => (Admin.where(:contact_role => true).all.map{|u|[ u.username, u.id]}), :as => :select