mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-17 13:54:26 +03:00
c4cba1602c
* Fixes #462
14 lines
344 B
Smarty
14 lines
344 B
Smarty
{**
|
|
* Чекбокс
|
|
*}
|
|
|
|
{extends './field.tpl'}
|
|
|
|
{block 'field' prepend}
|
|
{$_sMods = "$_sMods checkbox"}
|
|
{$_sValue = ( $_sValue ) ? $_sValue : '1'}
|
|
{/block}
|
|
|
|
{block 'field_input'}
|
|
<input type="checkbox" {field_input_attr_common} {if $smarty.local.bChecked}checked{else}{if $_aRequest[$smarty.local.sName] == 1}checked{/if}{/if} />
|
|
{/block} |