List of Countries

This page uses a Hashtag List to show records for all Countries.   The table is styled using Bootstrap 3 default theme classes.   Methods are provided to Edit or Delete any Country record.  

No Countries



Processed this Hashtag Markup:
<# start list for countries; 
	sort by ISO Code desc;
	show 10 rows per page;
	hide bottom pager;
#>

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

<# start row #>
	<tr>
		<td><# Name as html #></td>
		<td><# ISO Code as html #></td>
		<td><a href="country?edit=<# id #>" class="label label-primary">Edit</a>
			<a href="delete-country?id=<# id #>&index=<#[url.index as html]#>"
				onclick="return confirm('Delete Country record?')"
				class="label label-primary">Delete</a>
		</td>
	</tr>
<# end row #>

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

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

<# end list #>
Hashtag Markup for Delete Action: /company/delete-country
<# delete record for "countries.<#[url.id]#>"; 
	redirect to "/company/countries?index=<#[url.index as url]#>";
#>

The Company Mini-App uses the Hashtag Markup Language to maintain multiple sets of records that relate to each other.

Records for Employees, Offices, and Countries are stored in an SQL Database.   Methods are provided to create, update, and delete any record.