<!-- BEGIN [% component.name %] -->
    [% # PROCESS dumper.tt dump = user_permissions %]

    <table>
        <tr>
            <th>Function description</th>
            <th>Active</th>
        </tr>

        [% FOREACH function IN user_permissions; # defaults
			NEXT UNLESS function.detail.match('(default)') %]
        <tr>
            <td>[% function.detail %]</td>
            <td align="center"><img src="/images/tick.gif" alt="" />
            </td>
        </tr>
        [% END %]
		<tr><td colspan="2" style="background: #f5f5f5"></td></tr>
        [% FOREACH function IN user_permissions; # non-defaults
			NEXT IF function.detail.match('(default)') OR NOT function.active.match('yes') %]
        <tr>
            <td>[% function.detail %]</td>
            <td align="center">
                [% IF function.selected %]<img src="/images/tick.gif" alt="" />
				[% ELSE %]&nbsp;[% END %]
            </td>
        </tr>
        [% END %]
	</table>
<!-- END [% component.name %] -->
