<!-- BEGIN [% component.name %] -->
	[% # PROCESS dumper.tt dump = outreach.menu_options %]
  <div class="indent">
    <h4 class="blue">Pain:</h4>

	[%
	  pain_selection = questionnaire.symptoms.pain;
	  have_result = pain_selection ? 1 : 0;
	  DEFAULT pain_selection =
		c.get_meta_data('Outreach::QuestionnaireSymptoms').column('pain').default;
	%]
	
    <table class="xborders">
	  <tr> 
		<td class="title" align="right" valign="top">
		  Assessment: [% error_pain %]
		</td> 
		<td valign="top">
		[% FOREACH opt IN ['none' 'stable' 'unstable' 'unstated'] %]
		  <div>
			<input type="radio" name="pain" value="[% opt %]"
			  [% 'checked' IF pain_selection.match("^$opt") %] />
			  <span class="[% have_result AND pain_selection.match("^$opt")
				? 'bold' : 'normal' %]">[% opt | ucfirst %]</span>
		  </div>
		[% END %]
		</td>      
	  </tr> 

	  <tr> 
		<td class="title" align="right" valign="top">
		  Location: [% pain_option_id %]
		</td> 
		<td valign="top">
		  [% FOREACH opt IN outreach.menu_options.pain_options;            
                is_selected = questionnaire.pain.item(opt.key) ? 1 : 0 %]
		  <div>
			<input type="checkbox" name="pain_option_id" value="[% opt.key %]"
			  [% 'checked' IF is_selected %] />
                <span class="[% is_selected ? 'bold' : 'normal' %]">
                    [% opt.value.replace('_', ' ') %]
                </span>
		  </div>
		  [% END %]
		</td>      
	  </tr> 
	</table>
  </div>
<!-- END [% component.name %] -->