Ignore:
Timestamp:
Apr 13, 2011, 12:36:53 PM (13 years ago)
Author:
patdenice
Message:

Clean code

Location:
trunk/plugins/LocalFilesEditor/template
Files:
1 added
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/plugins/LocalFilesEditor/template/admin.tpl

    r10338 r10348  
    1212{combine_css path="plugins/LocalFilesEditor/codemirror/mode/css/css.css"}
    1313{combine_css path="plugins/LocalFilesEditor/codemirror/mode/clike/clike.css"}
    14 {combine_css path="plugins/LocalFilesEditor/locfiledit.css"}
     14{combine_css path="plugins/LocalFilesEditor/template/locfiledit.css"}
    1515
    1616{footer_script}
     
    6363{/if}
    6464
    65 <div style="overflow:auto;"> {* top bar buttons *}
     65{if isset ($zone_edit)}
     66<div id="title_bar">
     67{/if}
     68
    6669{if !empty($show_default)}
    6770{foreach from=$show_default item=file name=default_loop}
    68 <span class="top_right">
    69 <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>
     71<span class="default_file">
     72<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>
    7073</span>
    7174{if !($smarty.foreach.default_loop.last)}<br>{/if}
     
    7477
    7578{if isset ($zone_edit)}
    76 <b>{$zone_edit.FILE_NAME}</b>
    77 
    78 </div> {* top bar buttons *}
     79<span class="file_name">{$zone_edit.FILE_NAME}</span>
     80</div> {* title_bar *}
    7981
    8082<textarea rows="30" cols="90" name="text" id="text">{$zone_edit.CONTENT_FILE}</textarea>
     83<br>
     84<input class="submit" type="submit" value="{'locfiledit_save_file'|@translate}" name="submit"/>
    8185
    82 <br>
    83 
    84 <input class="submit" type="submit" value="{'locfiledit_save_file'|@translate}" name="submit"/>
    8586{if isset ($restore)}
    8687<input class="submit" type="submit" value="{'locfiledit_restore'|@translate}" name="restore" onclick="return confirm('{'locfiledit_restore_confirm'|@translate|escape:'javascript'}');"/>
     
    9293{/if}
    9394
    94 {/if}
     95{/if} {* zone_edit *}
    9596</div>
    9697</form>
Note: See TracChangeset for help on using the changeset viewer.