This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
khosb/themes/default/blocks/product_translate/add.tpl

71 lines
3.1 KiB
Smarty
Raw Normal View History

2010-11-29 22:41:08 +00:00
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
<!-- Display the form validation -->
{if $form_validation}
2010-11-29 22:41:08 +00:00
{$block->display('core:alert_fields')}
{/if}
2010-11-29 22:41:08 +00:00
<!-- tinyMCE -->
<script type="text/javascript" src="includes/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="themes/{$THEME_NAME}/tinymce.js"></script>
<!-- Display the form to collect the input values -->
2009-08-03 04:10:16 +00:00
<form id="add" method="post" action="" enctype="multipart/form-data">
2009-08-03 04:10:16 +00:00
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
2010-11-29 22:41:08 +00:00
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td style="width: 10%;">{osb f=tf field=name}</td>
<td><input type="text" name="product_translate_name" value="{$VAR.product_translate_name}" {if $product_translate_name == true}class="form_field_error"{/if}/></td>
</tr>
<tr valign="top">
<td style="width: 10%;">{osb f=tf field=description_short}</td>
<td><textarea name="product_translate_description_short" cols="50" rows="3" {if $product_translate_description_short == true}class="form_field_error"{/if}>{$VAR.product_translate_description_short|htmlspecialchars}</textarea></td>
</tr>
<tr valign="top">
<td style="width: 10%;">{osb f=tf field=description_full}</td>
<td><textarea name="product_translate_description_full" cols="50" rows="3" {if $product_translate_description_full == true}class="form_field_error"{/if}>{$VAR.product_translate_description_full|htmlspecialchars}</textarea></td>
</tr>
<tr valign="top">
<td style="width: 10%;">{osb f=tf field=email_template}</td>
<td><textarea name="product_translate_email_template" cols="50" rows="3" {if $product_translate_email_template == true}class="form_field_error"{/if}>{$VAR.product_translate_email_template}</textarea></td>
</tr>
<!-- @todo Unable to use include file='file:../core/add_tr_submit.tpl' the template dir is not set? -->
<tr valign="top">
<td>&nbsp;</td>
<td>
<input type="submit" name="Submit" value="{t}Submit{/t}" class="form_button"/>
<input type="hidden" name="_page" value="{$meth.0}:view"/>
<input type="hidden" name="_page_current" value="{$VAR._page}"/>
<input type="hidden" name="do[]" value="{$meth.0}:{$meth.1}"/>
<script type="text/javascript">
<!--
if (document.getElementById('focus'))
document.getElementById('focus').focus();
//-->
</script>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<div>
<input type="hidden" name="product_translate_product_id" value="{$VAR.product_translate_product_id}"/>
<input type="hidden" name="product_translate_language_id" value="{$VAR.product_translate_language_id}"/>
{if $VAR._escape}
<input type="hidden" name="_escape" value="1"/>
{/if}
</div>
</form>