<form method="post" action={concat( '/visual/templateedit/', $template )|ezurl}>
<div class="context-block">

{* DESIGN: Header START *}<div class="box-header"><div class="box-tc"><div class="box-ml"><div class="box-mr"><div class="box-tl"><div class="box-tr">

<h1 class="context-title">{'Edit template: <%template>'|i18n( 'design/standard/visual/templateedit',, hash( '%template', $template ) )|wash}</h1>

{* DESIGN: Mainline *}<div class="header-mainline"></div>

{* DESIGN: Header END *}</div></div></div></div></div></div>

{* DESIGN: Content START *}<div class="box-ml"><div class="box-mr"><div class="box-content">

<div class="context-attributes">
<div class="block">

<textarea class="box" name="TemplateContent" cols="40" rows="30">{$template_content|wash(xhtml)}</textarea>

</div>
</div>

{* DESIGN: Content END *}</div></div></div>

<div class="controlbar">

{* DESIGN: Control bar START *}<div class="box-bc"><div class="box-ml"><div class="box-mr"><div class="box-tc"><div class="box-bl"><div class="box-br">
<div class="block">
{section show=$is_writable}
<input class="button" type="submit" name="SaveButton" value="{'Apply changes'|i18n( 'design/standard/visual/templateedit' )}" title="{'Click this button to save the contents of the text field above to the template file.'|i18n( 'design/standard/visual/templateedit' )}" />
{section-else}
<input class="button-disabled" disabled="disabled" type="submit" name="SaveButton" value="{'Apply changes'|i18n( 'design/standard/visual/templateedit' )}" title="{'You do not have permission to save the contents of the text field above to the template file.'|i18n( 'design/standard/visual/templateedit' )}" />
{/section}

<input class="button" type="submit" name="DiscardButton" value="{'Back to overrides'|i18n( 'design/standard/visual/templateedit' )}" title="{'Back to override overview.'|i18n( 'design/standard/visual/templateedit' )}" />
</div>

{* DESIGN: Control bar END *}</div></div></div></div></div></div>

</div>

</div>

</form>
