edit.html
2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<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" />