<inp2:m_include t="incs/header"/>
<inp2:m_RenderElement name="combined_header" prefix="trans" perm_event="trans:OnLoad" section="in-portal:root" title_preset="trans_edit"/>

<!-- ToolBar -->
<table class="toolbar" height="30" cellspacing="0" cellpadding="0" width="100%" border="0">
<tbody>
	<tr>
	  	<td>
	  		<script type="text/javascript">
					a_toolbar = new ToolBar();

	  				a_toolbar.AddButton( new ToolBarButton('select', '<inp2:m_phrase label="la_ToolTip_Save" escape="1"/>', function() {
								submit_event('trans','OnSaveAndClose');
							}
						) );
					a_toolbar.AddButton( new ToolBarButton('cancel', '<inp2:m_phrase label="la_ToolTip_Cancel" escape="1"/>', function() {
								window_close();
							}
					 	) );

					a_toolbar.Render();
			</script>

		</td>
	</tr>
</tbody>
</table>

<input type="hidden" name="trans_prefix" value="<inp2:m_get var="trans_prefix"/>">
<input type="hidden" name="trans_field" value="<inp2:m_get var="trans_field"/>">

<div id="scroll_container">
	<table class="edit-form">
		<inp2:m_RenderElement name="inp_edit_hidden" prefix="trans" field="Language"/>

		<inp2:m_RenderElement name="subsection" prefix="trans" fields="Original,SwitchLanguage,Translation" title="la_section_Translation"/>
			<inp2:m_RenderElement name="inp_label" prefix="trans" title="la_fld_PrimaryTranslation" field="Original"/>
			<inp2:m_RenderElement name="inp_edit_options" prefix="trans" field="SwitchLanguage" title="la_fld_Language" size="50" onchange="submit_event('trans', 'OnChangeLanguage')"/>

			<inp2:m_if check="m_get" var="trans_multi_line" value="1">
				<inp2:m_RenderElement name="inp_edit_textarea" prefix="trans" field="Translation" title="la_fld_Translation" cols="70" rows="13"/>
			<inp2:m_else/>
				<inp2:m_RenderElement name="inp_edit_box" prefix="trans" field="Translation" title="la_fld_Translation" size="50"/>
			</inp2:m_if>
		<inp2:m_RenderElement name="inp_edit_filler"/>

	</table>
</div>

<inp2:m_include t="incs/footer"/>