1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-17 05:44:26 +03:00
ifhub.club/application/frontend/components/poll/poll.form.item.tpl
Denis Shakhov 19239e8b79 Добавление префикса ls компонентам
+ Обновление фреймворка
2015-05-20 23:27:10 +07:00

35 lines
1.1 KiB
Smarty

{**
* Блок добавления ответа
*
* @styles poll.css
* @scripts <common>/js/poll.js
*}
<li class="ls-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}
{component 'icon'
icon='remove'
classes='ls-poll-form-answer-item-remove js-poll-form-answer-item-remove'
attributes=[
title => {lang 'blog.private'},
style => "{if ! $smarty.local.showRemove|default:true}display: none{/if}"
]}
{/if}
</li>