1 |
<div class="template_form"> |
|
2 |
|
[% c.prototype.form_remote_tag( |
3 |
|
url => base _ 'editor/template', |
4 |
|
update => 'div_template_status', |
5 |
|
loading => 'show_working();', |
6 |
|
loaded => 'reload_rec(); hide_working();', |
7 |
|
html_options => { |
8 |
|
name => 'form_editor_css', |
9 |
|
} |
10 |
|
) %] |
11 |
|
<div id="div_template_form"> |
12 |
|
|
13 |
<form name="form_editor_template" action="[% base %]" method="post"> |
<form name="form_editor_template" action="[% base %]" method="post"> |
14 |
|
|
16 |
[% template_content %] |
[% template_content %] |
17 |
</textarea> |
</textarea> |
18 |
|
|
19 |
<br/> |
<div class="edit_bar"> |
20 |
<input type="button" name="save_template" value="Save" onclick="javascript:iwfRequest(this);" /> |
|
21 |
|
<input type="submit" name="save_template" value="Save" /> |
22 |
<span id="div_template_status" class="notice">idle</span> |
<span id="div_template_status" class="notice">idle</span> |
23 |
|
|
24 |
<input type="hidden" name="template_filename" value="[% template_filename %]" /> |
<input type="hidden" name="template_filename" value="[% template_filename %]" /> |
25 |
|
|
26 |
|
</div> |
27 |
|
|
28 |
</form> |
</form> |
29 |
|
|
30 |
</div> |
</div> |
31 |
|
|
32 |
|
<div id="div_template_list"> |
33 |
|
|
34 |
|
Templates: |
35 |
|
|
36 |
|
<ul> |
37 |
|
[% FOREACH t IN template_list %] |
38 |
|
[% IF t == template_filename %] |
39 |
|
<li id="template_list_selected">[% t %]</li> |
40 |
|
[% ELSE %] |
41 |
|
<li><a href="#" onclick="return switch_template('[% t %]');">[% t %]</a></li> |
42 |
|
[% END %] |
43 |
|
[% END %] |
44 |
|
</ul> |
45 |
|
|
46 |
|
</div> |