25 lines
1.1 KiB
HTML
Executable File
25 lines
1.1 KiB
HTML
Executable File
{* характеристики *}
|
|
|
|
<table class="table" id="tableHars">
|
|
<tr>
|
|
<td><b>Наименование</b></td>
|
|
<td><b>Значение</b></td>
|
|
<td></td>
|
|
</tr>
|
|
|
|
{section name=customer loop=$hars} {if $hars[customer].id}
|
|
<tr id="har_{$hars[customer].id}">
|
|
<td><input type="text" class="form-control save-h" value="{$hars[customer].opt}" data-opt="sp" data-id="{$hars[customer].tovar_har_sp_id}" data-tovar_id="{$smarty.get.id}"></span></td>
|
|
<td><input type="text" class="form-control save-h" value="{$hars[customer].txt}" data-opt="h" data-id="{$hars[customer].id}" data-tovar_id="{$smarty.get.id}"></td>
|
|
<td class="del_har" data-id="{$hars[customer].id}" style="cursor: pointer;">Удалить</td>
|
|
</tr>
|
|
{/if} {/section}
|
|
</table>
|
|
<table class="table">
|
|
<tr>
|
|
<td><input type="text" class="form-control" id="h"></td>
|
|
<td><input type="text" class="form-control" id="txt"></td>
|
|
<td><button class="btn btn-primary addHar" data-tovar_id="{$smarty.get.id}">Добавить</button></td>
|
|
</tr>
|
|
</table>
|