aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/LocalFilesEditor/admin.tpl
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2008-03-25 23:30:23 +0000
committerpatdenice <patdenice@piwigo.org>2008-03-25 23:30:23 +0000
commit6aa72e141a0b651f35e6d4dc08777d715aed2e71 (patch)
tree87d7ac32a669d0708a7ed8108d939474df3df5e2 /plugins/LocalFilesEditor/admin.tpl
parentee70a108bea04c718b7a6edb97aec56f2dae2679 (diff)
Add editarea to LocalFiles Editor.
git-svn-id: http://piwigo.org/svn/trunk@2291 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--plugins/LocalFilesEditor/admin.tpl18
1 files changed, 15 insertions, 3 deletions
diff --git a/plugins/LocalFilesEditor/admin.tpl b/plugins/LocalFilesEditor/admin.tpl
index d8a228d67..f1306080e 100644
--- a/plugins/LocalFilesEditor/admin.tpl
+++ b/plugins/LocalFilesEditor/admin.tpl
@@ -1,3 +1,15 @@
+{if isset($editarea)}
+<script type="text/javascript" src="{$editarea.URL}"></script>
+<script type="text/javascript">
+editAreaLoader.init({ldelim}
+ id: "text"
+ {foreach from=$editarea.OPTIONS key=option item=value}
+ , {$option}: {$value|editarea_quote}
+ {/foreach}
+{rdelim});
+</script>
+{/if}
+
<div class="titrePage">
<h2>LocalFiles Editor</h2>
{$TABSHEET}
@@ -14,7 +26,7 @@
{/if}
{foreach from=$show_default item=file}
-<a href="{$file.SHOW_DEFAULT}" onclick="window.open( this.href, 'local_file', 'location=no,toolbar=no,menubar=no,status=no,resizable=yes,scrollbars=yes,fullscreen=yes' ); return false;">{'locfiledit_show_default'|@translate} "{$file.FILE}"</a>
+<a href="{$file.SHOW_DEFAULT}" onclick="window.open( this.href, 'local_file', 'location=no,toolbar=no,menubar=no,status=no,resizable=yes,scrollbars=yes,width=800,height=600' ); return false;">{'locfiledit_show_default'|@translate} "{$file.FILE}"</a>
<br>
{/foreach}
@@ -23,12 +35,12 @@
<input type="text" style="display:none;" value="{$zone_edit.EDITED_FILE}" name="edited_file"/>
<b>{$zone_edit.FILE_NAME}</b>
<br>
-<textarea rows="30" name="text" style="width:90%;">{$zone_edit.CONTENT_FILE}</textarea>
+<textarea rows="30" name="text" id="text" style="width:90%;">{$zone_edit.CONTENT_FILE}</textarea>
<br>{'locfiledit_save_bak'|@translate}
<br><br>
<input class="submit" type="submit" value="{'locfiledit_save_file'|@translate}" name="submit" {$TAG_INPUT_ENABLED}/>
{if isset ($restore)}
-<input class="submit" type="submit" value="{'locfiledit_restore'|@translate}" name="restore" onclick="return confirm('{'locfiledit_restore_confirm'|@translate}');" {$TAG_INPUT_ENABLED}/>
+<input class="submit" type="submit" value="{'locfiledit_restore'|@translate}" name="restore" onclick="return confirm('{'locfiledit_restore_confirm'|@translate|escape:'javascript'}');" {$TAG_INPUT_ENABLED}/>
{/if}
{/if}