/[webpac2]/Webpacus/root/editor/template.tt
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /Webpacus/root/editor/template.tt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 170 - (hide annotations)
Sun Nov 27 00:50:27 2005 UTC (18 years, 5 months ago) by dpavlin
File size: 1019 byte(s)
 r11176@llin:  dpavlin | 2005-11-27 01:07:46 +0100
 enter record number

1 dpavlin 137
2 dpavlin 170 [% 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 dpavlin 169 <div id="div_template_form">
12 dpavlin 167
13 dpavlin 134 <form name="form_editor_template" action="[% base %]" method="post">
14    
15 dpavlin 164 <textarea name="template_content" id="template_content" cols="80" rows="10">
16 dpavlin 134 [% template_content %]
17     </textarea>
18    
19 dpavlin 165 <div class="edit_bar">
20    
21 dpavlin 134 <input type="button" name="save_template" value="Save" onclick="javascript:iwfRequest(this);" />
22 dpavlin 164 <span id="div_template_status" class="notice">idle</span>
23 dpavlin 134
24     <input type="hidden" name="template_filename" value="[% template_filename %]" />
25    
26 dpavlin 165 </div>
27    
28 dpavlin 134 </form>
29 dpavlin 137
30     </div>
31 dpavlin 169
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>

  ViewVC Help
Powered by ViewVC 1.1.26