edit.html
3.78 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<div style="width:850px;height:400px;overflow:auto" id="conteiner">
<pre onclick="this.style.display='none'" class="form_error" id="message" ></pre>
<form id="form_page" class="form" method="post" enctype="multipart/form-data" onsubmit="return false">
<input type="hidden" name="id" tal:attributes="value row/p_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[p_title]" tal:attributes="value row/p_title|"/>
</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>
<td width="15%" class="info" >* ${M_ADMIN_SP_ADDRESS}</td>
<td valign="top">
<input type="text" style="width:400px" name="form[p_url]" tal:attributes="value row/p_url|"/>
<div style="font-size:12px;color:grey">${M_ADMIN_SP_ADDRESS_DESC}</div>
</td>
</tr>
<tr>
<td class="info">* ${M_ADMIN_SP_TMPL_DESC}</td>
<td valign="top"><select name="form[t_id]" tal:content="structure row/tmpl_list|" /></td>
</tr>
<tr>
<td class="info">* ${CONTENT}</td>
<td style="font-size:10px;">
<div style="padding:10px"><a onclick="table.changeEditor(0)">Обычный редактор</a> | <a onclick="table.changeEditor('CKEditor')">CKeditor</a> | <a onclick="table.changeEditor('codemirror')">Редактор кода</a></div>
<textarea id="p_content" style="width:100%;height:300px" name="p_content" tal:content="row/p_content|" /></td>
</tr>
<tr>
<td class="info">* ${M_ADMIN_BLOCKS_TYPE_CONTENT}</td>
<td valign="top"> <input type="radio" tal:attributes="checked row/type_content_php | NULL" name="form[p_type_content]" value="PHP"/> ${M_ADMIN_BLOCKS_CONTENT_PHP}<br/> <input type="radio" name="form[p_type_content]" tal:attributes="checked row/type_content_html | NULL" value="HTML"/> ${M_ADMIN_BLOCKS_CONTENT_HTML}<br/> <input type="radio" name="form[p_type_content]" tal:attributes="checked row/type_content_tmpl | NULL" value="TMPL"/> ${M_ADMIN_BLOCKS_CONTENT_TMPL}
</td>
</tr>
<tr>
<td class="info">* ${M_ADMIN_SP_ACCESS}</td>
<td valign="top">
<div ><input type="checkbox" name="form[free_access]" tal:attributes="checked row/free_access | NULL" value="free"/> - <b>Свободный доступ</b> </div>
<div tal:repeat="g row/groups"><input type="checkbox" name="access[]" tal:attributes="checked g/checked | NULL" value="${g/g_id}"/> - ${g/g_name} </div>
</td>
</tr>
<tr>
<td class="info">${M_ADMIN_SP_META_TITLE}</td>
<td valign="top"><input type="text" style="width:400px" name="form[p_meta_title]" tal:attributes="value row/p_meta_title|"/></td>
</tr>
<tr>
<td class="info">${M_ADMIN_SP_META_KEY}</td>
<td valign="top"><input type="text" style="width:400px" name="form[p_meta_keywords]" tal:attributes="value row/p_meta_keywords|"/></td>
</tr>
<tr>
<td class="info">${M_ADMIN_SP_META_DESC}</td>
<td valign="top">
<textarea id="p_meta_desc" name="form[p_meta_desc]" tal:content="row/p_meta_desc|"></textarea>
</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>