This commit is contained in:
Nicolas Bally 2017-11-13 22:41:12 +01:00
parent 846dc504fd
commit c37f410d3b
2 changed files with 2 additions and 2 deletions

View File

@ -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"}

View File

@ -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