1 |
<div id="div_template_form"> |
2 |
|
3 |
[% c.prototype.form_remote_tag( |
4 |
url => base _ 'editor/template', |
5 |
update => 'div_template_status', |
6 |
loading => 'show_working();', |
7 |
loaded => 'reload_rec(); hide_working();', |
8 |
html_options => { |
9 |
name => 'form_editor_css', |
10 |
} |
11 |
) %] |
12 |
|
13 |
<div id="template_content_toolbar" class="content_toolbar"> |
14 |
<span class="notice">...not changed yet...</span> |
15 |
</div> |
16 |
|
17 |
<textarea name="template_content" id="template_content" cols="80" rows="10" |
18 |
onkeydown="return edTab(event);" |
19 |
onfocus="return edFocus('template_content');" |
20 |
onblur="_ts('not saved'); return edBlur();" |
21 |
> |
22 |
[% template_content %] |
23 |
</textarea> |
24 |
|
25 |
<div class="edit_bar"> |
26 |
|
27 |
<input type="submit" name="save_template" value="Save" /> |
28 |
<span id="div_template_status" class="notice">idle</span> |
29 |
|
30 |
<input type="hidden" name="template_filename" value="[% template_filename %]" /> |
31 |
|
32 |
</div> |
33 |
|
34 |
</form> |
35 |
|
36 |
</div><!-- id="div_template_form" --> |
37 |
|
38 |
<div id="div_template_list"> |
39 |
|
40 |
Templates: |
41 |
|
42 |
<ul> |
43 |
[% FOREACH t IN template_list %] |
44 |
[% IF t == template_filename %] |
45 |
<li id="template_list_selected">[% t %]</li> |
46 |
[% ELSE %] |
47 |
<li><a href="#" onclick="return switch_template('[% t %]');">[% t %]</a></li> |
48 |
[% END %] |
49 |
[% END %] |
50 |
</ul> |
51 |
|
52 |
</div> |