diff --git a/include/sieve/templates/edit_frame_base.tpl b/include/sieve/templates/edit_frame_base.tpl
index 93953fabc401c2de29511621dc717eba85cb8f58..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='Add_Element' value="{t}Add element{/t}">
- <input type='submit' name='Save_Copy' value="{t}Save copy{/t}">
- <input type='submit' name='Import_Copy' value="{t}Import copy{/t}">
+ <input type='submit' name='Save_Copy' value="{t}Export{/t}">
+ <input type='submit' name='Import_Script' value="{t}Import{/t}">
-
- <input type='submit' name='View_Source' value="{t}View source{/t}">
- <input type='submit' name='View_Structured' value="{t}View structured{/t}">
+ {if $Mode != "Source-Only"}
+
+ {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 != ""}
+ <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>