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>


    <ul class="chevron">
$if(!first(groups))$
        <li>There are currently no general groups.</li>

$else$

$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" />
</ul>

</form>
</div>

<div>
<form>
<h3>System groups</h3>
<p>Roles associated with these groups are automatically assigned to users that match the following criteria:</p>
<ul class="chevron">
    $builtin_groups:{g|
    <li>
        $g.name;format="html"$
        <a href='$formurl$/group.roles?uuid=$g.uuid$&amp;a=$auth$&update=y' class="roles">Roles</a>
    </li>
    }$
</ul>

</form>
</div>

</div>

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

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