/[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 167 - (show annotations)
Sat Nov 26 21:11:41 2005 UTC (18 years, 5 months ago) by dpavlin
File size: 763 byte(s)
 r11170@llin:  dpavlin | 2005-11-26 22:13:58 +0100
 implemented template list and switching

1 <div class="template_form">
2
3 <div id="div_template_list">
4
5 Templates:
6
7 <ul>
8 [% FOREACH t IN template_list %]
9 [% IF t == template_filename %]
10 <li><b>[% t %]</b></li>
11 [% ELSE %]
12 <li><a href="#" onclick="return load_template('[% t %]');">[% t %]</a></li>
13 [% END %]
14 [% END %]
15 </ul>
16
17 </div>
18
19 <form name="form_editor_template" action="[% base %]" method="post">
20
21 <textarea name="template_content" id="template_content" cols="80" rows="10">
22 [% template_content %]
23 </textarea>
24
25 <div class="edit_bar">
26
27 <input type="button" name="save_template" value="Save" onclick="javascript:iwfRequest(this);" />
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>

  ViewVC Help
Powered by ViewVC 1.1.26