/[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 357 - (show annotations)
Sat Jan 7 23:43:38 2006 UTC (18 years, 3 months ago) by dpavlin
File size: 1378 byte(s)
 r381@llin:  dpavlin | 2006-01-08 00:35:45 +0100
 resize textarea and store it's size into cookie, added log link at top [0.30]

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="++">&#8681;</a>
27 <a href="#" onClick="textarea_resize('template_content', -100); return false;" title="--">&#8679;</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>

  ViewVC Help
Powered by ViewVC 1.1.26