1 |
<td class="editor-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="resize-bar"> |
26 |
<a href="#" onClick="textarea_resize('template_content', +100); return false;" title="++">⇩</a> |
27 |
<a href="#" onClick="textarea_resize('template_content', -100); return false;" title="--">⇧</a> |
28 |
</div> |
29 |
|
30 |
<div class="edit-bar"> |
31 |
<input type="submit" name="save_template" value="Save" /> |
32 |
<span id="div_template_status" class="notice">idle</span> |
33 |
</div> |
34 |
|
35 |
<input type="hidden" name="template_filename" value="[% template_filename %]" /> |
36 |
|
37 |
</div> |
38 |
|
39 |
</form> |
40 |
|
41 |
</td><td class="file-list"> |
42 |
|
43 |
Templates: |
44 |
|
45 |
<ul> |
46 |
[% FOREACH t IN template_list %] |
47 |
[% IF t == template_filename %] |
48 |
<li class="file-selected">[% t %]</li> |
49 |
[% ELSE %] |
50 |
<li><a href="#" onclick="return switch_template('[% t %]');">[% t %]</a></li> |
51 |
[% END %] |
52 |
[% END %] |
53 |
</ul> |
54 |
|
55 |
</td> |