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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 357 - (hide annotations)
Sat Jan 7 23:43:38 2006 UTC (18 years, 4 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 dpavlin 193 <td class="editor-form">
2 dpavlin 189
3 dpavlin 170 [% 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 dpavlin 167
13 dpavlin 179 <div id="template_content_toolbar" class="content_toolbar">
14 dpavlin 175 <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 dpavlin 134 [% template_content %]
23     </textarea>
24    
25 dpavlin 357 <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 dpavlin 193 <div class="edit-bar">
31 dpavlin 172 <input type="submit" name="save_template" value="Save" />
32 dpavlin 164 <span id="div_template_status" class="notice">idle</span>
33 dpavlin 193 </div>
34 dpavlin 134
35     <input type="hidden" name="template_filename" value="[% template_filename %]" />
36    
37 dpavlin 165 </div>
38    
39 dpavlin 134 </form>
40 dpavlin 137
41 dpavlin 193 </td><td class="file-list">
42 dpavlin 169
43     Templates:
44    
45     <ul>
46     [% FOREACH t IN template_list %]
47     [% IF t == template_filename %]
48 dpavlin 193 <li class="file-selected">[% t %]</li>
49 dpavlin 169 [% ELSE %]
50     <li><a href="#" onclick="return switch_template('[% t %]');">[% t %]</a></li>
51     [% END %]
52     [% END %]
53     </ul>
54    
55 dpavlin 193 </td>

  ViewVC Help
Powered by ViewVC 1.1.26