<h3>{$modname} {if !empty($title)}- {$title}{/if}</h3>
{if !empty($info)}<div class="information">{$info}</div>{/if}

{$formstart}{$hidden|default:''}
<div class="pageoverflow">
  <p class="pagetext">*{$prompt_templatename}:</p>
  <p class="pageinput">
    <input type="text" name="{$actionid}template" value="{$templatename}" required/>
  </p>
</div>
<div class="pageoverflow">
  <p class="pagetext">{$prompt_template}:</p>
  <p class="pageinput">
    {xt_textarea syntax=1 prefix=$actionid name=templatecontent content=$templatecontent rows=20}
  </p>
</div>
<div class="pageoverflow">
  <p class="pageinput">
    <input type="submit" name="{$actionid}xt_submit" value="{$xt->Lang('submit')}"/>
    <input type="submit" name="{$actionid}xt_cancel" value="{$xt->Lang('cancel')}" formnovalidate/>
    {if $mode == 'edit'}
      <input type="submit" name="{$actionid}xt_apply" value="{$xt->Lang('apply')}"/>
    {/if}
    <input type="submit" name="{$actionid}xt_reset" value="{$xt->Lang('reset')}"/>
  </p>
</div>
{$formend}
