List of Groups

This page uses a Hashtag List to show all Member Groups.   The table is styled using Bootstrap 3 default theme classes.   Methods are provided to Edit or Delete any Group, or List all Group Memberships.  

No Groups




Processed this Hashtag Markup:
<# start list for groups;
	sort by name;
	show 10 rows per page;
#>

<# start header #>
<table class="table table-striped table-hover">
	<thead>
	<tr>
		<th>Group Name</th>
		<th>Action</th>
	</tr>
	</thead>
<# end header #>

<# start row #>
	<tr>
		<td><# name as html #></td>
		<td><a href="group?edit=<# id #>" class="label label-primary">Edit</a>
			<a href="delete-group?id=<# id #>&index=<#[url.index as html]#>"
				onclick="return confirm('Delete Group?')" 
				class="label label-primary">Delete</a>
			<a href="group-memberships?group_id=<# id #>" 
				class="label label-primary">List Memberships</a>
		</td>
	</tr>
<# end row #>

<# start footer #>
</table>
<# end footer #>

<# no results #>
<h4 class="alert alert-warning text-center">No Groups</h4>
<# end no results #>

<# end list #>

Hashtag Markup for Delete Action: /members/delete-group
<# start list for group_memberships;
	include when group_id is "<#[url.id]#>";
#>
<# start row #>
<# delete record for "group_memberships.<# id #>"; #>
<# end row #>
<# end list #>

<# delete record for "groups.<#[url.id]#>"; 
	redirect to "/members/groups?index=<#[url.index]#>";
#>

The Members Mini-App uses the Hashtag Markup Language to demonstrate a user authentication process for #WebApps.

Member, Group, and Group Membership records are all stored in an SQL Database.   Methods are provided to create, update, and delete all of these records.  

Members Only pages restrict access based on group membership.