{style}
{literal}

.ow_event_time {
    padding-left: 3px;
}

{/literal}
{/style}


<div class="ow_superwide ow_automargin">

    {if empty($err_msg)}
		{form name='event_add'}
		<table class="ow_table_1 ow_form ow_stdmargin">
            <tr class="ow_alt2 ow_tr_first">
		        <td class="ow_label">{label name='title'}</td>
                <td class="ow_value">{input name='title'}{error name='title'}</td>
		        <td class="ow_desc ow_small">{text key='event+add_form_title_desc'}</td>
		    </tr>
		    <tr class="ow_alt1">
		        <td class="ow_label">{text key='event+add_form_date_label'}</td>
                <td class="ow_value">
                    <div class="clearfix">
                        <div class="ow_left ow_event_date">{input name='start_date'}{error name='start_date'}</div>
                        <div class="ow_left ow_event_time">{input name='start_time'}<br />{error name='start_time'}</div>
                    </div>
                </td>
		        <td class="ow_desc ow_small">{text key='event+add_form_date_desc'}</td>
		    </tr>
            <tr class="ow_alt2" id="{$tdId}">
                <td class="ow_label">{text key='event+add_form_end_date_label'} <input type="checkbox" name="endDateFlag" id="{$chId}"{if !empty($endDateFlag)} checked="checked"{/if} /></td>
		        <td class="ow_value">
                    <div class="clearfix">
                        <div id='end_date_div' class="ow_left ow_event_date" style='display:none'>
                            {if !empty($endDateFlag)}{input name='end_date'}{else}{input name='end_date' disabled='disabled' }{/if}{error name='end_date'}</div>
                        <div class="ow_left ow_event_time">{if !empty($endDateFlag)}{input name='end_time'}{else}{input name='end_time' disabled='disabled'}{/if}<br />{error name='end_time'}</div>
                    </div>
                </td>
		        <td class="ow_desc ow_small">{text key='event+add_form_end_date_desc'}</td>
		    </tr>
            <tr class="ow_alt1">
		        <td class="ow_label">{label name='desc'}</td>
		        <td class="ow_value">{input name='desc'} <br /> {error name='desc'}</td>
		        <td class="ow_desc ow_small">{text key='event+add_form_desc_desc'}</td>
		    </tr>
            <tr class="ow_alt2">
		        <td class="ow_label">{label name='location'}</td>
		        <td class="ow_value">{input name='location'} <br /> {error name='location'}</td>
		        <td class="ow_desc ow_small">{text key='event+add_form_location_desc'}</td>
		    </tr>
            <tr class="ow_alt1">
		        <td class="ow_label">{label name='image'}</td>
		        <td class="ow_value">{input name='image'} <br /> {error name='image'}</td>
		        <td class="ow_desc ow_small">{text key='event+add_form_image_desc'}</td>
		    </tr>
            <tr class="ow_alt2">
		        <td class="ow_label">{label name='who_can_view'}</td>
		        <td class="ow_value">{input name='who_can_view'} <br /> {error name='who_can_view'}</td>
		        <td class="ow_desc ow_small">{text key='event+add_form_who_can_view_desc'}</td>
		    </tr>
            <tr class="ow_alt1 ow_tr_last">
		        <td class="ow_label">{label name='who_can_invite'}</td>
		        <td class="ow_value">{input name='who_can_invite'} <br /> {error name='who_can_invite'}</td>
		        <td class="ow_desc ow_small">{text key='event+add_form_who_can_invite_desc'}</td>
		    </tr>
		</table>
		<div class="clearfix ow_submit ow_stdmargin">
			<div class="ow_right">{submit name='submit' class='ow_ic_add ow_positive'}</div>
		</div>
		{/form}
    {else}
        <div class="ow_anno ow_std_margin ow_nocontent">{$err_msg}</div>
    {/if}
</div>