/[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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 172 - (show annotations)
Sun Nov 27 01:42:33 2005 UTC (18 years, 5 months ago) by dpavlin
File size: 980 byte(s)
 r11180@llin:  dpavlin | 2005-11-27 02:30:29 +0100
 saving of template and css now work

1
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">
14
15 <textarea name="template_content" id="template_content" cols="80" rows="10">
16 [% template_content %]
17 </textarea>
18
19 <div class="edit_bar">
20
21 <input type="submit" name="save_template" value="Save" />
22 <span id="div_template_status" class="notice">idle</span>
23
24 <input type="hidden" name="template_filename" value="[% template_filename %]" />
25
26 </div>
27
28 </form>
29
30 </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>

  ViewVC Help
Powered by ViewVC 1.1.26