﻿@model IEnumerable<Models.Person>
@{
    ViewBag.Title = "_FilterResults";
}

<style>
    table, tr, th, td {
        padding: 7px;
        border: 1px solid grey;
    }
</style>

<table>
    <tr>
        <th>Volunteer Name</th>
        <th>Email</th>
        <th>Phone</th>
        <th>Cluster</th>
    </tr>
    @if (Model != null)
    {
        foreach (var person in Model)
        {
            <tr>
                <td>@(person.LastName + ", " + person.FirstName)</td>
                <td>@person.Email</td>
                <td>@person.PhoneNumber</td>
                <td>@(Html.Encode(person.Cluster != null ? person.Cluster.Name : ""))</td>
            </tr>
        }
    }
</table>    


﻿@model IEnumerable<Models.Person>
@{
    ViewBag.Title = "_FilterResults";    
}

<style>
    table, tr, th, td {
        padding: 7px;
        border: 1px solid grey;
    }
</style>

<table>
    <tr>
        <th>Volunteer Name</th>
        <th>Email</th>
        <th>Phone</th>
        <th>Cluster</th>
    </tr>
    @if (Model != null)
    {
        foreach (var person in Model)
        {
            <tr>
                <td>@(person.LastName + ", " + person.FirstName)</td>
                <td>@person.Email</td>
                <td>@person.PhoneNumber</td>
                <td>
                    @foreach (var commitment in person.Commitments)
                    {
                        @(Html.Encode(commitment.Cluster != null ? commitment.Cluster.Name : ""))    
                    }            
                </td>
            </tr>
        }
    }
</table>    


Fix for the volunteer results page. Not finished.
Fix for the volunteer results page. Not finished.
