AndyB
Well-known member
I have the following template:
	
	
	
		
When I try to save the template I get the following error:
My goal is to be able to display a drop down that allows the user to select a month, so the list would contain Jan, Feb, Mar etc..
				
			
		Code:
	
	<div class="formOverlay">
    <xen:title>{xen:phrase add_thread_to_calendar}</xen:title>
    <form action="{xen:link 'threads/calendar-add-save', $thread}" method="post" class="xenForm AutoValidator" data-redirect="on">
        <dl class="ctrlUnit submitUnit">
       
            <xen:selectunit label="{xen:phrase user_group}:" name="user_group_id" value="{$user.user_group_id}">
                <xen:options source="$userGroups" />
                <xen:explain>{xen:raw $_userChangesHtml}</xen:explain>
            </xen:selectunit>  
       
            <dd><input type="submit" value="Submit" class="button primary" accesskey="s" /></dd>
        </dl>
        <input type="hidden" name="_xfToken" value="{$visitor.csrf_token_page}" />
    </form>
</div>
	When I try to save the template I get the following error:
The following templates contained errors and were not saved: andy_calendar_add: 1) andy_calendar_add - Line 6: Unknown tag: selectunit
My goal is to be able to display a drop down that allows the user to select a month, so the list would contain Jan, Feb, Mar etc..