diff --git a/include/sieve/templates/edit_frame_base.tpl b/include/sieve/templates/edit_frame_base.tpl
index 241ab9429aa1a0eac39f9f3043fe98234283c819..83d62a0261120a3b1b9ad2532220e3850aca50df 100644 (file)
-<table style='width:100%;' cellspacing=0 cellpadding=0>
+<table class='editing_surface'>
<tr>
- <td style='background-color: #CCCCCC; padding:5px;'>
+ <td class='editing_surface_menu'>
<input type='submit' name='Save_Copy' value="{t}Export{/t}">
<input type='submit' name='Import_Script' value="{t}Import{/t}">
{if $Mode != "Source-Only"}
- <input type='submit' name='View_Source' value="{t}View source{/t}">
+
+ {if $Mode == "Source"}
<input type='submit' name='View_Structured' value="{t}View structured{/t}">
+ {else}
+ <input type='submit' name='View_Source' value="{t}View source{/t}">
+ {/if}
{/if}
</td>
</tr>
<tr>
- <td style='background-color: #FFFFFF; border: solid 2px #CCCCCC; '>
+ <td class='editing_surface_content'>
{if $Script_Error != ""}
- <table style='width:100%;' cellspacing=0 cellpadding=0>
- <tr>
- <td style='background-color: orange;padding:5px;'>
- <b>{$Script_Error}</b>
- </td>
- </tr>
- </table>
+ <div class='sieve_error_msgs'>
+ {$Script_Error}
+ </div>
{/if}
{if $Mode == "Structured"}
{$Contents}
{else}
- <textarea name='script_contents' style='width:100%;height:350px;'>{$Contents}</textarea>
+ <textarea class='editing_source' name='script_contents'>{$Contents}</textarea>
{/if}
</td>