[dancer-users] Template Toolkit Sort Hash
Richard Reina
gatorreina at gmail.com
Sun Sep 27 23:59:42 BST 2015
2015-09-27 11:24 GMT-05:00 Dave Cross <dave at dave.org.uk>:
>
> On 27/09/15 16:34, Richard Reina wrote:
>
> I think I am going to try to figure out how to use an array reference
>> instead. Traveling so can't try it until I get back tomorrow.
>>
>
> You can, of course, try whatever approach you want. But my second solution
> will work.
>
> Dave...
>
> --
>
Hi Dave,
This did in fact work. Here is how I ended up incorporating your solution.
<div class="well" style="max-height: 300px;overflow: auto;">
<ul class="list-group fancy-list-items"> <!-- <ul
class="list-group checked-list-box"> -->
<table style="width:100%">
<% FOREACH Pat IN Pats.values.sort('SNAME') -%>
<tr class="list-group-item">
<td width="25"><% Pat.ID %>
<td width="70"><% Pat.SNAME %>
<td width="75"><% Pat.ANAME %>
<td width="35"><% Pat.SSN %>
<td width="35"><% Pat.YR %>
<td width="250"><% Pat.CHNAME %>
<td width="550"><% Pat.DESCRIP %>
</tr>
<% END -%>
</ul>
</table>
</div>
Thank you very much.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20150927/ff360736/attachment.html>
More information about the dancer-users
mailing list