{#RUBRIK_FIELDS_TEMPLATES_H2#}
{if $code_text}
{if $params.func == 'new'}{#RUBRIK_FIELDS_EDIT_TPL_CREAT#}{else}{#RUBRIK_FIELDS_EDIT_TPL_EDIT#}{/if}
  {#RUBRIK_BUTTON_TPL_CLOSE#}
{if $params.id} {/if}
{include file="$codemirror_editor" conn_id="ftpl" textarea_id='code_text' ctrls='$("#code_templ").ajaxSubmit(sett_options);' height=400} {else}
{$main.name} -  {if $params.type == 'adm'} {#RUBRIK_FIELDS_EDIT_TPL_ADM#} {elseif $params.type == 'doc'} {#RUBRIK_FIELDS_EDIT_TPL_DOC#}{ elseif $params.type == 'req'} {#RUBRIK_FIELDS_EDIT_TPL_REQ#} {/if}
{/if}