<?php
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
?>

<div id="w_sort05" class="w-box">    
    <div class="w-box-header">
        Añadir un nuevo agente
        <div class="pull-right">
            <i class="splashy-document_letter_upload"></i>
        </div>
    </div>
    <div class="w-box-content cnt_a">

        <?php
        $form = $this->beginWidget('CActiveForm', array(
            'id' => 'invitacion-agente-form',
            'enableAjaxValidation' => true,
            'htmlOptions' => array(
                'class' => ''
            ),
            'clientOptions' => array(
                'validateOnSubmit' => true,
                'validateOnType' => true
            ),
        ));
        ?>
        <fieldset>
            <div class="sepH_b">
                <?php echo $form->labelEx($invitacion, 'nombre', array('class' => 'control-label')); ?>
                <?php echo $form->textField($invitacion, 'nombre', array('class' => 'span12')); ?>                
                <?php echo $form->error($invitacion,'nombre'); ?>
            </div>
            <div class="sepH_b">
                <?php echo $form->labelEx($invitacion, 'email', array('class' => 'control-label')); ?>
                <?php echo $form->textField($invitacion, 'email', array('class' => 'span12')); ?>                
                <?php echo $form->error($invitacion,'email'); ?>
            </div>
            <div class="formSep">
                <?php echo $form->labelEx($invitacion, 'mensaje', array('class' => 'control-label')); ?>
                <?php echo $form->textArea($invitacion, 'mensaje', array('class' => 'span12 auto_expand')); ?>
            </div>
            <div class="clearfix">
                <button type="submit" class="btn btn-primary pull-right"><?php echo Yii::t('profind', 'Enviar invitación'); ?></button>                
            </div>
        </fieldset>
        <?php $this->endWidget(); ?>
    </div>
</div>