/[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 179 - (show annotations)
Sun Nov 27 15:14:54 2005 UTC (18 years, 5 months ago) by dpavlin
File size: 1186 byte(s)
 r11194@llin:  dpavlin | 2005-11-27 16:17:24 +0100
 0.05: all requests in controller editor/ now send correct
 Content-type: text/html; charset=utf-8,
 simplified conversion to on-disk encoding when saving files,
 added editor toolbar to CSS tab, fixed edKill

1 <div id="div_template_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="edit_bar">
26
27 <input type="submit" name="save_template" value="Save" />
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><!-- id="div_template_form" -->
37
38 <div id="div_template_list">
39
40 Templates:
41
42 <ul>
43 [% FOREACH t IN template_list %]
44 [% IF t == template_filename %]
45 <li id="template_list_selected">[% t %]</li>
46 [% ELSE %]
47 <li><a href="#" onclick="return switch_template('[% t %]');">[% t %]</a></li>
48 [% END %]
49 [% END %]
50 </ul>
51
52 </div>

  ViewVC Help
Powered by ViewVC 1.1.26