<?php if(!isset($main)) { require('../classes/main.php'); } ?>
<?php $id = isset($_REQUEST['count']) ? (int) $_REQUEST['count'] : 1; ?>
<div id="divobjetivos<?php echo $id; ?>">
    <div class="form-group">
        <div class="form-input">
            <?php echo $main->input(array('span' => 'Dominio', 'name' => 'esyllabus_dominio_' . $id, 'type' => 'select', 'onchange' => 'loadVerbos(this.value, ' . $id . ')', 'required' => true), $dominios); ?>
        </div>
        <div class="form-input">
            <?php echo $main->input(array('span' => 'Verbo', 'name' => 'esyllabus_verbo_' . $id, 'type' => 'select', 'onchange' => 'loadVerbosDescr(this.value, ' . $id . ')', 'required' => true)); ?>
            <div id="formas_evaluacion<?php echo $id; ?>" class="help"></div>
        </div>
        <div class="form-input">
            <table>
                <tbody>
                    <tr>
                        <td><?php echo $main->input(array('span' => 'Objetivo', 'name' => 'esyllabus_objetivo_' . $id, 'required' => true)); ?>
                        </td>
                        <td><span>&nbsp;</span><?php if($id > 1) { ?><a
                                href="javascript:document.getElementById('divobjetivos<?php echo $id; ?>').remove();"
                                class="btn-compact error">-</a><?php } ?>
                            <a class="btn-compact success add-another" data-parentdiv="objetivos-especificos"
                                data-id="<?php echo $id; ?>" data-url="objetivos-especificos.php"
                                value="Agregar&nbsp;campo">+</a></td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
</div>