<!-- BEGIN request/consent.tt -->
	<h4>Patient consent:
		[% div_name = 'consent'; INCLUDE site/snippets/toggleview.tt %]
    </h4>

[% # PROCESS dumper.tt dump = request_data.request_consent %]
[% # PROCESS dumper.tt dump = consent_options %]

    <div class="itemhidden" id="[% div_name %]">
		<table class="indent">
			<tr>
				<td class="borderless">&nbsp;</td>
				<th><img src="/images/tick.gif" /></th>
				<th class="red">X</th>
				<th>?</th>					
			</tr>
		[% FOREACH option IN consent_options;
			NEXT UNLESS option.is_active.match('yes') %]			
			<tr>
				<td class="label">[% option.consent_label %]:</td>
				[% FOREACH status IN ['yes' 'no' ''] %]
				<td class="content">
					<input type="radio" name="[% option.consent_name %]" value="[% status %]"
						[% 'checked' IF
						   request_data.request_consent.item(option.consent_name) == status %] />
				</td>
				[% END %]						
			</tr>	
		[% END %]
		</table>
	</div>
<!-- END request/consent.tt -->