<?php defined('MW_PATH') || exit('No direct script access allowed');

/**
 * This file is part of the MailWizz EMA application.
 * 
 * @package MailWizz EMA
 * @author Serban George Cristian <cristian.serban@mailwizz.com> 
 * @link http://www.mailwizz.com/
 * @copyright 2013-2014 MailWizz EMA (http://www.mailwizz.com)
 * @license http://www.mailwizz.com/license/
 * @since 1.0
 */
 
?>

<div class="tabs-container">
    
    <?php 
    echo $this->renderTabs();
    $form = $this->beginWidget('CActiveForm'); 
    ?>
    <div class="panel panel-default no-top-border">
        
        <div class="panel-body">
            
            <div class="form-group col-lg-6">
                <?php echo $form->labelEx($customer, 'first_name');?>
                <?php echo $form->textField($customer, 'first_name', $customer->getHtmlOptions('first_name')); ?>
                <?php echo $form->error($customer, 'first_name');?>
            </div>        
    
            <div class="form-group col-lg-6">
                <?php echo $form->labelEx($customer, 'last_name');?>
                <?php echo $form->textField($customer, 'last_name', $customer->getHtmlOptions('last_name')); ?>
                <?php echo $form->error($customer, 'last_name');?>
            </div>    
        
            <div class="clearfix"><!-- --></div>
    
            <div class="form-group col-lg-6">
                <?php echo $form->labelEx($customer, 'email');?>
                <?php echo $form->textField($customer, 'email', $customer->getHtmlOptions('email')); ?>
                <?php echo $form->error($customer, 'email');?>
            </div>        
    
            <div class="form-group col-lg-6">
                <?php echo $form->labelEx($customer, 'confirm_email');?>
                <?php echo $form->textField($customer, 'confirm_email', $customer->getHtmlOptions('confirm_email')); ?>
                <?php echo $form->error($customer, 'confirm_email');?>
            </div>        
            
            <div class="clearfix"><!-- --></div>
    
            <div class="form-group col-lg-6">
                <?php echo $form->labelEx($customer, 'fake_password');?>
                <?php echo $form->textField($customer, 'fake_password', $customer->getHtmlOptions('password')); ?>
                <?php echo $form->error($customer, 'fake_password');?>
            </div>
            <div class="form-group col-lg-6">
                <?php echo $form->labelEx($customer, 'confirm_password');?>
                <?php echo $form->textField($customer, 'confirm_password', $customer->getHtmlOptions('confirm_password')); ?>
                <?php echo $form->error($customer, 'confirm_password');?>
            </div>
            
            <div class="clearfix"><!-- --></div>
            
            <div class="form-group col-lg-6">
                <?php echo $form->labelEx($customer, 'timezone');?>
                <?php echo $form->dropDownList($customer, 'timezone', $customer->getTimeZonesArray(), $customer->getHtmlOptions('timezone')); ?>
                <?php echo $form->error($customer, 'timezone');?>
            </div>
            
            <div class="form-group col-lg-6">
                <?php echo $form->labelEx($customer, 'language_id');?>
                <?php echo $form->dropDownList($customer, 'language_id', CMap::mergeArray(array('' => Yii::t('app', 'Application default')), Language::getLanguagesArray()), $customer->getHtmlOptions('language_id')); ?>
                <?php echo $form->error($customer, 'language_id');?>
            </div>
            
            <div class="clearfix"><!-- --></div>
            
        </div>
        
        <div class="panel-footer">
            <div class="pull-right">
                <button type="submit" class="btn btn-default btn-submit" data-loading-text="<?php echo Yii::t('app', 'Please wait, processing...');?>"><?php echo Yii::t('app', 'Save changes');?></button>
            </div>
            <div class="clearfix"><!-- --></div>
        </div>
        
    </div>
    <?php $this->endWidget(); ?>

</div>