1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-08 01:14:24 +03:00
ifhub.club/application/frontend/components/poll/poll.form.item.tpl
Denis Shakhov c31a235423 Компоненты специфичные для lscms перенесены во frontend/components
Остальные перенесены во фреймворк
2015-01-31 19:16:15 +07:00

29 lines
1 KiB
Smarty

{**
* Блок добавления ответа
*
* @styles poll.css
* @scripts <common>/js/poll.js
*}
<li class="poll-form-answer-item js-poll-form-answer-item"
{if $bPollItemIsTemplate|default:false}data-is-template="true"{/if}
{if $bPollItemIsTemplate|default:false}style="display: none"{/if}>
{* ID *}
{component 'field' template='hidden'
name = "answers[{$iPollItemIndex|default:0}][id]"
value = "{if $oPollItem}{$oPollItem->getId()}{/if}"
classes = "js-poll-form-answer-item-id"}
{* Текст *}
{component 'field' template='text'
name = 'answers[]'
value = ($oPollItem) ? $oPollItem->getTitle() : ''
isDisabled = ! $bPollIsAllowUpdate|default:true
inputClasses = 'width-full js-poll-form-answer-item-text'}
{* Кнопка удаления *}
{if $bPollIsAllowRemove|default:true}
<i class="icon-remove poll-form-answer-item-remove js-poll-form-answer-item-remove" title="{$aLang.common.remove}" {if ! $smarty.local.showRemove|default:true}style="display: none"{/if}></i>
{/if}
</li>