1 |
|
<td class="editor-form"> |
2 |
|
|
3 |
[% c.prototype.form_remote_tag( |
[% c.prototype.form_remote_tag( |
4 |
url => base _ 'editor/template', |
url => base _ 'editor/template', |
9 |
name => 'form_editor_css', |
name => 'form_editor_css', |
10 |
} |
} |
11 |
) %] |
) %] |
|
<div id="div_template_form"> |
|
12 |
|
|
13 |
<script type="text/javascript">edToolbar();</script> |
<div id="template_content_toolbar" class="content_toolbar"> |
|
|
|
|
<form name="form_editor_template" action="[% base %]" method="post"> |
|
|
|
|
|
<div id="template_content_toolbar"> |
|
14 |
<span class="notice">...not changed yet...</span> |
<span class="notice">...not changed yet...</span> |
15 |
</div> |
</div> |
16 |
|
|
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="submit" name="save_template" value="Save" /> |
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 |
|
|
33 |
|
|
34 |
</form> |
</form> |
35 |
|
|
36 |
</div> |
</td><td class="file-list"> |
|
|
|
|
<div id="div_template_list"> |
|
37 |
|
|
38 |
Templates: |
Templates: |
39 |
|
|
40 |
<ul> |
<ul> |
41 |
[% FOREACH t IN template_list %] |
[% FOREACH t IN template_list %] |
42 |
[% IF t == template_filename %] |
[% IF t == template_filename %] |
43 |
<li id="template_list_selected">[% t %]</li> |
<li class="file-selected">[% t %]</li> |
44 |
[% ELSE %] |
[% ELSE %] |
45 |
<li><a href="#" onclick="return switch_template('[% t %]');">[% t %]</a></li> |
<li><a href="#" onclick="return switch_template('[% t %]');">[% t %]</a></li> |
46 |
[% END %] |
[% END %] |
47 |
[% END %] |
[% END %] |
48 |
</ul> |
</ul> |
49 |
|
|
50 |
</div> |
</td> |