Start line:  
End line:  

Snippet Preview

Snippet HTML Code

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

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

<div id="group_manage">

<div>
<form method="post" action="$formurl$/groups">
	<input type="hidden" name="a" value="$auth$" />
	<input type="hidden" name="type" value="0" />

	<h2>Groups</h2>
	<p></p>


$if(!first(groups))$
<p>There are currently no groups.</p>

$else$

<ul class="chevron">
$groups:{g|
<li>
    $g.name;format="html"$
	<a href='$formurl$/group.members?uuid=$g.uuid$&amp;a=$auth$&update=y' class="members">Members</a>
	<a href='$formurl$/group.roles?uuid=$g.uuid$&amp;a=$auth$&update=y' class="roles">Roles</a>
</li>
}$
$endif$

	<input type="text" name="name" id="name" value="" placeholder="Group name" /><input type="submit" name="Add group" value="Add group" />

</form>
</div>
</div>

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

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