<?php if (!$isAjax):?>
<div class="block block-aggregator" id="<?php echo $contentId; ?>">
<?php endif;?>
<h3 class="handle">
<a class="block-close"><span>toggle</span></a>
<a class="block-toggle"><span>toggle</span></a>
<a class="block-config"><span>toggle</span></a>
<?php echo translateAdmin('Novas Submiss&otilde;es');?>
</h3>

<div class="content">
  <div>
<?php if (isset($forms) && $forms):?>
<?php foreach ($forms as $form):?>
	<div class="tit_submissoes">
	<div class="form_titulo"><strong><?php echo $form['form']['titulo']?></strong></div>
	<div class="form_link">
        <a href="<?php echo $this->link($form['list'])?>"><?php echo translate('ver submiss&otilde;es'); ?>&nbsp;<span><?php echo $this->img('/admin/media/js/portal/view_all.png'); ?></span></a>
	</div>
    </div>
    <?php if (isset($form['submissoes']) && is_array($form['submissoes'])):?>
    <?php foreach ($form['submissoes'] as $submissoes):?>
    <?php if (!is_array($submissoes)) continue;?>
    <ul class="form_submissoes">
    	<?php foreach ($submissoes as $submissao):?>
    		<li class="form_submissao">
                <ul class="form_submissao">
                <?php foreach ($submissao->getCols() as $col):?>
                <?php if (strpos($col, 'element_') === false) continue; ?>
                    <li class="form_label">
						<?php if (isset($form['labels'][$col])):?>
                        <?php echo $form['labels'][$col]?>
                        <?php endif;?>
                    </li>
                    <li class="form_value">
                    	<strong><?php echo $this->truncate($submissao->{$col}, 30)?></strong>
                    </li>
                <?php endforeach;?>
                    <li class="form_link">
                        <a href="<?php echo $this->link($form['edit'] . $submissao->id)?>"><?php echo translate('ver mais'); ?>&nbsp;<span><?php echo $this->img('/admin/media/js/portal/mais.png'); ?></span></a>
                    </li>
                </ul>
    	    </li>
    	<?php endforeach;?>
    </ul>
    <?php endforeach;?>
    <?php endif; ?>
<?php endforeach;?>
<?php endif; ?>
    
  </div>
</div>
<?php if (!$isAjax):?>
</div>
<?php endif;?>