/[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 189 - (show annotations)
Tue Nov 29 13:02:53 2005 UTC (18 years, 5 months ago) by dpavlin
File size: 1248 byte(s)
 r11247@llin:  dpavlin | 2005-11-29 14:05:53 +0100
 fixes in css, changed layout of editor to use tables (so it will render better
 without css). [0.08]

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

  ViewVC Help
Powered by ViewVC 1.1.26