diff options
author | patdenice <patdenice@piwigo.org> | 2011-04-13 10:36:53 +0000 |
---|---|---|
committer | patdenice <patdenice@piwigo.org> | 2011-04-13 10:36:53 +0000 |
commit | d2da26e467aec1347ae7c314c4c8279cb4618c34 (patch) | |
tree | 62593399f01a303f03608d910a98cce98cc8b664 /plugins/LocalFilesEditor/template/admin.tpl | |
parent | c01d0c1790613fd73efc3c78d0c12debdfb1cbc7 (diff) |
Clean code
git-svn-id: http://piwigo.org/svn/trunk@10348 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | plugins/LocalFilesEditor/template/admin.tpl (renamed from plugins/LocalFilesEditor/admin.tpl) | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/plugins/LocalFilesEditor/admin.tpl b/plugins/LocalFilesEditor/template/admin.tpl index d59df2f27..1761951d2 100644 --- a/plugins/LocalFilesEditor/admin.tpl +++ b/plugins/LocalFilesEditor/template/admin.tpl @@ -11,7 +11,7 @@ {combine_css path="plugins/LocalFilesEditor/codemirror/mode/javascript/javascript.css"} {combine_css path="plugins/LocalFilesEditor/codemirror/mode/css/css.css"} {combine_css path="plugins/LocalFilesEditor/codemirror/mode/clike/clike.css"} -{combine_css path="plugins/LocalFilesEditor/locfiledit.css"} +{combine_css path="plugins/LocalFilesEditor/template/locfiledit.css"} {footer_script} if (document.getElementById("text") != null) @@ -62,26 +62,27 @@ if (document.getElementById("text") != null) {/if} {/if} -<div style="overflow:auto;"> {* top bar buttons *} +{if isset ($zone_edit)} +<div id="title_bar"> +{/if} + {if !empty($show_default)} {foreach from=$show_default item=file name=default_loop} -<span class="top_right"> -<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=700' ); return false;">{'locfiledit_show_default'|@translate} "{$file.FILE}"</a> +<span class="default_file"> +<a href="{$file.URL}" onclick="window.open( this.href, 'local_file', 'location=no,toolbar=no,menubar=no,status=no,resizable=yes,scrollbars=yes,width=800,height=700' ); return false;">{'locfiledit_show_default'|@translate} "{$file.FILE}"</a> </span> {if !($smarty.foreach.default_loop.last)}<br>{/if} {/foreach} {/if} {if isset ($zone_edit)} -<b>{$zone_edit.FILE_NAME}</b> - -</div> {* top bar buttons *} +<span class="file_name">{$zone_edit.FILE_NAME}</span> +</div> {* title_bar *} <textarea rows="30" cols="90" name="text" id="text">{$zone_edit.CONTENT_FILE}</textarea> - <br> - <input class="submit" type="submit" value="{'locfiledit_save_file'|@translate}" name="submit"/> + {if isset ($restore)} <input class="submit" type="submit" value="{'locfiledit_restore'|@translate}" name="restore" onclick="return confirm('{'locfiledit_restore_confirm'|@translate|escape:'javascript'}');"/> {/if} @@ -91,6 +92,6 @@ if (document.getElementById("text") != null) {'locfiledit_save_bak'|@translate} {/if} -{/if} +{/if} {* zone_edit *} </div> </form> |