{* Poll - Embed view *}
<div class="content-view-embed">
    <div class="class-poll">
        <h2>{$object.name}</h2>

       <div class="content-body">
        <form method="post" action={"content/action"|ezurl}>
        <input type="hidden" name="ContentNodeID" value="{$object.main_node_id}" />
        <input type="hidden" name="ContentObjectID" value="{$object.id}" />
        <input type="hidden" name="ViewMode" value="full" />

        {let attribute=$object.data_map.question
             option_id=cond( is_set( $#collection_attributes[$attribute.id]), $#collection_attributes[$attribute.id].data_int,false() )}

        <h3>{$attribute.content.name}</h3>

        {section name=OptionList loop=$attribute.content.option_list sequence=array(bglight,bgdark)}
            <input type="radio" name="ContentObjectAttribute_data_option_value_{$attribute.id}" value="{$OptionList:item.id}"
           {section show=$OptionList:item.id|eq($option_id)}checked="checked"{/section}
           />{$OptionList:item.value}<br />
        {/section}

        {/let}
        <input class="button" type="submit" name="ActionCollectInformation" value="Vote" />

        </form>
        </div>
    </div>
</div>
