@(tag: Tag, people: List[Person], people_with_family: Collection[Person])

@import helper._

@main("All people tagged " + tag.title) {
<h1>@tag.title</h1>

<ul>
	@for( p <- people ) {
		<li><a href="@routes.Application.person(p.person_id)">@p.first_name @p.last_name</a>
	}
</ul>

<p>Emails:
	@for( p <- people ) {
		@if( p.email ) {
			@p.email,
		}
	}

<p>Emails for all family members:
	@for( p <- people_with_family ) {
		@if( p.email ) {
			@p.email,
		}
	}

}


@(tag: Tag, people: List[Person], people_with_family: Collection[Person])

@import helper._

@main("All people tagged " + tag.title) {
<h1>@tag.title</h1>

<ul>
	@for( p <- people ) {
		<li><a href="@routes.Application.person(p.person_id)">@p.first_name @p.last_name</a>
	}
</ul>

<h3>Emails</h3>
<p>
	@for( p <- people ) {
		@if( p.email ) {
			@p.email,
		}
	}

<h3>Emails for all family members</h3>
<p>
	@for( p <- people_with_family ) {
		@if( p.email ) {
			@p.email,
		}
	}

}

<h3>Table (you can paste this into Excel or mailchimp's "paste from Excel" page</h3>
<p>
<table border=1 cellpadding=5 cellspacing=0>
@for( p <- people ) {
<tr><td>@p.email<td>@p.first_name<td>@p.last_name</tr>
}
</table>

Add table view for tagged people
Add table view for tagged people
