app/assets/javascripts/show_information.js
$('.modal-trigger').leanModal();
function modal_object(object, id){
$("span#name").html(object.firstname+ " "+ object.lastname);
$("span#phone").html(object.phone);
$("span#email").html(object.email);
$.get( "/dashboard/notifications/"+ id);
}
function quote_object(object, quote_object, id){
$("span#name").html(object.firstname+ " "+ object.lastname);
$("span#quote").html("$" +quote_object.quoted_value);
$("span#phone").html(object.phone);
$("span#email").html(object.email);
$.get( "/dashboard/notifications/"+ id);
}