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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 167 by dpavlin, Sat Nov 26 21:11:41 2005 UTC revision 193 by dpavlin, Tue Nov 29 14:31:26 2005 UTC
# Line 1  Line 1 
1  <div class="template_form">  <td class="editor-form">
2    
3  <div id="div_template_list">  [% c.prototype.form_remote_tag(
4            url => base _ 'editor/template',
5  Templates:          update => 'div_template_status',
6            loading => 'show_working();',
7  <ul>          loaded => 'reload_rec(); hide_working();',
8  [% FOREACH t IN template_list %]          html_options => {
9   [% IF t == template_filename %]                  name => 'form_editor_css',
10    <li><b>[% t %]</b></li>          }
11   [% ELSE %]  ) %]
   <li><a href="#" onclick="return load_template('[% t %]');">[% t %]</a></li>  
  [% END %]  
 [% END %]  
 </ul>  
12    
13    <div id="template_content_toolbar" class="content_toolbar">
14    <span class="notice">...not changed yet...</span>
15  </div>  </div>
16    
17  <form name="form_editor_template" action="[% base %]" method="post">  <textarea name="template_content" id="template_content" cols="80" rows="10"
18            onkeydown="return edTab(event);"
19  <textarea name="template_content" id="template_content" cols="80" rows="10">          onfocus="return edFocus('template_content');"
20            onblur="_ts('not saved'); return edBlur();"
21    >
22  [% template_content %]  [% template_content %]
23  </textarea>  </textarea>
24    
25  <div class="edit_bar">  <div class="edit-bar">
26    <input type="submit" name="save_template" value="Save" />
 <input type="button" name="save_template" value="Save" onclick="javascript:iwfRequest(this);" />  
27  <span id="div_template_status" class="notice">idle</span>  <span id="div_template_status" class="notice">idle</span>
28    </div>
29    
30  <input type="hidden" name="template_filename" value="[% template_filename %]" />  <input type="hidden" name="template_filename" value="[% template_filename %]" />
31    
# Line 33  Templates: Line 33  Templates:
33    
34  </form>  </form>
35    
36  </div>  </td><td class="file-list">
37    
38    Templates:
39    
40    <ul>
41    [% FOREACH t IN template_list %]
42     [% IF t == template_filename %]
43      <li class="file-selected">[% t %]</li>
44     [% ELSE %]
45      <li><a href="#" onclick="return switch_template('[% t %]');">[% t %]</a></li>
46     [% END %]
47    [% END %]
48    </ul>
49    
50    </td>

Legend:
Removed from v.167  
changed lines
  Added in v.193

  ViewVC Help
Powered by ViewVC 1.1.26