source: branches/2.0/plugins/LocalFilesEditor/show_default.tpl @ 16930

Last change on this file since 16930 was 3187, checked in by patdenice, 16 years ago

merge r3186 from trunk to branch 2.0.
Cosmetic Corections for LocalFiles Editor.

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 1.3 KB
Line 
1{* $Id: show_default.tpl 3187 2009-03-11 16:42:01Z patdenice $ *}
2{html_head}
3<link rel="stylesheet" type="text/css" href="{$LOCALEDIT_PATH}locfiledit.css">
4<style type="text/css">#headbranch, #theHeader, #copyright {ldelim} display: none; }</style>
5{/html_head}
6{known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js"}
7{known_script id="editarea" src=$LOCALEDIT_PATH|@cat:"editarea/edit_area_full.js"}
8<script type="text/javascript">
9var editarea = "{$LOAD_EDITAREA}";
10
11function loadEditarea() {ldelim}
12  editAreaLoader.init({ldelim}
13    id: "text"
14    {foreach from=$EDITAREA_OPTIONS key=option item=value}
15    , {$option}: {$value|editarea_quote}
16    {/foreach}
17  });
18  jQuery("#showedit").hide();
19  jQuery("#hideedit").show();
20}
21
22function unloadEditarea() {ldelim}
23  editAreaLoader.delete_instance("text");
24  jQuery("#hideedit").hide();
25  jQuery("#showedit").show();
26}
27</script>
28
29<div id="LocalFilesEditor">
30<h1>{$TITLE}</h1>
31
32<textarea id="text" rows="30" cols="90">{$DEFAULT_CONTENT}</textarea>
33
34<div id="editarea_buttons">
35<a href="javascript:loadEditarea();" id="showedit">[{'locfiledit_enable_editarea'|@translate}]</a>
36<a href="javascript:unloadEditarea();" id="hideedit">[{'locfiledit_disable_editarea'|@translate}]</a>
37</div>
38
39</div>
40
41<script type="text/javascript">
42jQuery("#editarea_buttons").show();
43if (editarea == "on") loadEditarea();
44</script>
Note: See TracBrowser for help on using the repository browser.