edit.html 2.12 KB
<div style="width:850px;height:600px;overflow:auto" id="conteiner">
		
		<form id="form_page" class="form" method="post" enctype="multipart/form-data" onsubmit="return false">
		<input type="hidden" name="id" tal:attributes="value row/snippet_id|" />
		<input type="hidden" name="form[lang]" tal:attributes="value lang" />
		<input type="hidden" name="form[link_id]" tal:attributes="value row/link_id|" />
		<table align="center">
		
			
      <tr tal:condition="not:lang_edit">
				<td width="15%" class="info" >Название</td>
				<td valign="top">
					<input type="text" style="width:400px" name="form[name]" tal:attributes="value row/name|"/>
				</td>
			</tr>
			
			<tal:block tal:condition="not:lang_edit">
			<tr tal:condition="MAIN_MULTILANG">
				<td width="15%" class="info" >Язык</td>
				<td valign="top">
					<select  name="form[lang]" tal:content="structure row/lang_list|"/>
				</td>
			</tr>
			</tal:block>
			
			
			<tr tal:condition="not:lang_edit">
				<td width="15%" class="info" >Модуль</td>
				<td valign="top">
					<input type="text" style="width:400px" name="form[m_path]" tal:attributes="value row/m_path|"/>
				</td>
			</tr>
			<tal:block tal:condition="lang_edit"><input type="hidden" name="form[m_path]" tal:attributes="value row/m_path|" /></tal:block>
			
		  <tr tal:condition="not:lang_edit">
				<td width="15%" class="info" >Функция</td>
				<td valign="top">
					<input type="text" style="width:400px" name="form[f_func]" tal:attributes="value row/f_func|"/>
				</td>
			</tr>
			<tal:block tal:condition="lang_edit"><input type="hidden" name="form[f_func]" tal:attributes="value row/f_func|" /></tal:block>
			
			<tr>
				<td class="info">* Спиппет</td>
				<td> <textarea  id="snippet" name="snippet" style="width:650px;height:500px"  tal:content="row/snippet|" /></td>
			</tr>
			
		
		
		
			<tr>
				<td colspan="2" style="text-align:right">
					<input type="button" id="save_b" onclick=" table.save()" value="${SAVE}" />
					<input type="button" onclick="wnd.close()" value="${CLOSE}" />
				</td>
				
			</tr>
		</table>

		</form>
</div>

<div tal:content="structure editor" />