<?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="col-lg-6 no-margin-left">
                <div class="form-group">
                    <?php echo $form->labelEx($company, 'name');?>
                    <?php echo $form->textField($company, 'name', $company->getHtmlOptions('name')); ?>
                    <?php echo $form->error($company, 'name');?>
                </div>    
            </div>
            <div class="col-lg-6 no-margin-left">
                <div class="form-group">
                    <?php echo $form->labelEx($company, 'website');?>
                    <?php echo $form->textField($company, 'website', $company->getHtmlOptions('website')); ?>
                    <?php echo $form->error($company, 'website');?>
                </div>    
            </div>
            <div class="clearfix"><!-- --></div>
            <div class="col-lg-6 no-margin-left">
                <div class="form-group">
                    <?php echo $form->labelEx($company, 'country_id');?>
                    <?php echo $company->getCountriesDropDown(); ?>
                    <?php echo $form->error($company, 'country_id');?>
                </div>    
            </div>
            <div class="col-lg-6 no-margin-left">
                <div class="form-group">
                    <?php echo $form->labelEx($company, 'zone_id');?>
                    <?php echo $company->getZonesDropDown(); ?>
                    <?php echo $form->error($company, 'zone_id');?>
                </div>    
            </div>
            <div class="clearfix"><!-- --></div>
            <div class="col-lg-6 no-margin-left">
                <div class="form-group">
                    <?php echo $form->labelEx($company, 'address_1');?>
                    <?php echo $form->textField($company, 'address_1', $company->getHtmlOptions('address_1')); ?>
                    <?php echo $form->error($company, 'address_1');?>
                </div>    
            </div>
            <div class="col-lg-6 no-margin-left">
                <div class="form-group">
                    <?php echo $form->labelEx($company, 'address_2');?>
                    <?php echo $form->textField($company, 'address_2', $company->getHtmlOptions('address_2')); ?>
                    <?php echo $form->error($company, 'address_2');?>
                </div>    
            </div>
            <div class="clearfix"><!-- --></div>
            <div class="col-lg-4 no-margin-left zone-name-wrap">
                <div class="form-group">
                    <?php echo $form->labelEx($company, 'zone_name');?>
                    <?php echo $form->textField($company, 'zone_name', $company->getHtmlOptions('zone_name')); ?>
                    <?php echo $form->error($company, 'zone_name');?>
                </div>    
            </div>
            <div class="col-lg-4 no-margin-left city-wrap">
                <div class="form-group">
                    <?php echo $form->labelEx($company, 'city');?>
                    <?php echo $form->textField($company, 'city', $company->getHtmlOptions('city')); ?>
                    <?php echo $form->error($company, 'city');?>
                </div>    
            </div>
            <div class="col-lg-4 no-margin-left zip-wrap">
                <div class="form-group">
                    <?php echo $form->labelEx($company, 'zip_code');?>
                    <?php echo $form->textField($company, 'zip_code', $company->getHtmlOptions('zip_code')); ?>
                    <?php echo $form->error($company, 'zip_code');?>
                </div>    
            </div>
            <div class="clearfix"><!-- --></div>
            <div class="col-lg-6 no-margin-left">
                <div class="form-group">
                    <?php echo $form->labelEx($company, 'phone');?>
                    <?php echo $form->textField($company, 'phone', $company->getHtmlOptions('phone')); ?>
                    <?php echo $form->error($company, 'phone');?>
                </div>    
            </div>
            <div class="col-lg-6 no-margin-left">
                <div class="form-group">
                    <?php echo $form->labelEx($company, 'fax');?>
                    <?php echo $form->textField($company, 'fax', $company->getHtmlOptions('fax')); ?>
                    <?php echo $form->error($company, 'fax');?>
                </div>    
            </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>