Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
$header(formurl,breadcrumbs,shortcuts)$

<ul id="people_manage" class="toolbar">
<li><a class="add_person" href="person.new?q=$q$">Add person</a></li>
$if(group_manager)$
<li><a class="manage_groups" href="groups">Groups</a></li>
$endif$
</ul>

$if(error)$<div class="error">$error$</div>$endif$
$if(success)$<div class="success">$success$</div>$endif$

<form method="get" action="$formurl$/people" class="people">
<input type="text" id="q" name="q" class="search" value='$q;format="html"$' placeholder="Search people"/>
<input type="submit" class='search_button' value="Search" />

<div class="people_results">
		$if(!first(people))$
		$if(q)$
		<p class="not_found">Your search for <i>$q;format="html"$</i> returns no results.</p>
		$endif$
		$else$

		<ul class="chevron">
			$people:{p|
			<li$if(p.expired)$ class="expired"$endif$>
			<a href='$formurl$/person.edit?id=$p.uuid$&amp;q=$q;format="url"$'>$p.displayName;format="html"$</a>
			<span class="email">$p.email;format="html"$</span>
			<span class="date">$p.lastAuth;format="english"$</span>
			</li>
			}$
		</ul>
		$endif$
</div>

</form>

<script type="text/javascript">
document.getElementById('q').focus();
</script>

$footer()$
New to GrepCode? Check out our FAQ X