diff --git a/include/sieve/templates/edit_frame_base.tpl b/include/sieve/templates/edit_frame_base.tpl
index 9de761cfb073613ea722524af1203be13ef9d562..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; '>
- {$Contents}
+ <td class='editing_surface_content'>
+
+ {if $Script_Error != ""}
+ <div class='sieve_error_msgs'>
+ {$Script_Error}
+ </div>
+ {/if}
+
+
+ {if $Mode == "Structured"}
+ {$Contents}
+ {else}
+ <textarea class='editing_source' name='script_contents'>{$Contents}</textarea>
+ {/if}
</td>
</tr>
</table>
+<div class='seperator' style='text-align:right; width:100%;'>
+ <input type='submit' name='save_sieve_changes' value='{t}Save{/t}'>
+
+ <input type='submit' name='cancel_sieve_changes' value='{t}Cancel{/t}'>
+</div>