<inp2:m_DefineElement name="form_field_text">
	<input type="text" class="input-text" name="<inp2:CustomInputName/>" value="<inp2:SubmissionTag tag="Field"/>" <inp2:m_param name="field_params" />/>
</inp2:m_DefineElement>

<inp2:m_DefineElement name="form_field_password">
	<input type="password" class="input-text" primarytype="password" name="<inp2:CustomInputName/>" id="<inp2:CustomInputName/>" value="" />
	<input type="password" class="input-text" name="<inp2:CustomInputName verify="1"/>" id="verify_<inp2:CustomInputName verify="1"/>" value="" />
</inp2:m_DefineElement>

<inp2:m_DefineElement name="form_field_option">
		<option value="<inp2:m_param name="key"/>"<inp2:m_param name="selected"/>><inp2:m_param name="option"/></option>
</inp2:m_DefineElement>

<inp2:m_DefineElement name="form_field_select">
	<select name="<inp2:CustomInputName/>" class="input-select">
		<inp2:SubmissionTag tag="PredefinedOptions" field="$field" block="form_field_option" selected="selected"/>
	</select>
</inp2:m_DefineElement>

<inp2:m_DefineElement name="form_field_checkbox">
	<input type="hidden" id="<inp2:CustomInputName/>" name="<inp2:CustomInputName/>" value="<inp2:SubmissionTag tag="Field" field="$field" db="db"/>">
	<input type="checkbox" id="_cb_<inp2:m_param name="field"/>" name="_cb_<inp2:m_param name="field"/>" <inp2:SubmissionTag tag="Field" checked="checked" db="db"/> class="<inp2:m_param name="field_class"/>" onclick="document.getElementById('<inp2:CustomInputName/>').value = this.checked ? 1:0">
</inp2:m_DefineElement>

<inp2:m_DefineElement name="form_field_textarea">
	<textarea name="<inp2:CustomInputName/>" class="input-textarea" <inp2:m_param name="field_params" />><inp2:SubmissionTag tag="Field" field="$field" /></textarea>
</inp2:m_DefineElement>

<inp2:m_DefineElement name="form_radio_item">
	<input type="radio" <inp2:m_param name="checked"/> name="<inp2:m_param name="field_name"/>" id="<inp2:m_param name="field_name"/>_<inp2:m_param name="key"/>" value="<inp2:m_param name="key"/>"><label for="<inp2:m_param name="field_name"/>_<inp2:m_param name="key"/>"><inp2:m_param name="option"/></label>&nbsp;
</inp2:m_DefineElement>

<inp2:m_DefineElement name="form_field_radio">
	<inp2:SubmissionTag tag="PredefinedOptions" field="$field" block="form_radio_item" selected="checked"/>
</inp2:m_DefineElement>

<inp2:m_DefineElement name="form_field">
	<tr>
		<td class="field-name">
			<strong><inp2:Field name="FieldLabel" plus_or_as_label="1"/><inp2:m_if check="FieldEquals" field="Required" value="1"><span class="field-required">*</span></inp2:m_if>:</strong>&nbsp;&nbsp;
		</td>
		<td class="field-value">
			<inp2:m_if check="SubmissionTag" tag="HasError">
				<span class="field-error"><inp2:SubmissionTag tag="Error"/></span><br />
			</inp2:m_if>

			<inp2:ConfigFormElement field="Value" blocks_prefix="form_field_" element_type_field="ElementType" value_list_field="ValueList" /><br/>
		</td>
	</tr>

	<inp2:m_if check="m_Param" name="not_last">
		<tr>
			<td colspan="2">
				<div class="horizontal-separator"><img src="<inp2:m_TemplatesBase module="In-Portal"/>img/s.gif" width="3" height="1" alt=""/><br /></div>
			</td>
		</tr>
	</inp2:m_if>
</inp2:m_DefineElement>