/[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 134 by dpavlin, Thu Nov 24 16:30:16 2005 UTC revision 189 by dpavlin, Tue Nov 29 13:02:53 2005 UTC
# Line 1  Line 1 
1  <form name="form_editor_template" action="[% base %]" method="post">  <table>
2    <tr><td>
3    
4  <textarea name="template_content" cols="80" rows="10" style="display: block;">  <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 %]  [% template_content %]
26  </textarea>  </textarea>
27    
28  <br/>  <div class="edit_bar">
29  <input type="button" name="save_template" value="Save" onclick="javascript:iwfRequest(this);" />  
30  <span id="div_template_status" style="color: #808080;">idle</span>  <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 %]" />  <input type="hidden" name="template_filename" value="[% template_filename %]" />
34    
35    </div>
36    
37  </form>  </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>

Legend:
Removed from v.134  
changed lines
  Added in v.189

  ViewVC Help
Powered by ViewVC 1.1.26