<?php /* @var $this Controller */ ?>
<!DOCTYPE html>
    <!--[if IE 8]> <html lang="<?php echo Yii::app()->language; ?>" class="ie8"> <![endif]-->
    <!--[if IE 9]> <html lang="<?php echo Yii::app()->language; ?>" class="ie9"> <![endif]-->
<!--[if !IE]><!--> <html lang="<?php echo Yii::app()->language; ?>"> <!--<![endif]-->

    <!-- BEGIN HEAD -->
    <head>
        <meta charset="utf-8" />
        <title><?php echo CHtml::encode($this->pageTitle); ?></title>   

        <!-- BEGIN GLOBAL MANDATORY STYLES -->
        <?php Yii::app()->bootstrap->registerAllCss(); ?>
        <?php Yii::app()->clientScript->registerCssFile(Yii::app()->theme->baseUrl . '/assets/plugins/font-awesome/css/font-awesome.css'); ?>
        <?php Yii::app()->clientScript->registerCssFile(Yii::app()->theme->baseUrl . '/assets/css/style-metro.css'); ?>
        <?php Yii::app()->clientScript->registerCssFile(Yii::app()->theme->baseUrl . '/assets/css/style.css'); ?>
        <?php Yii::app()->clientScript->registerCssFile(Yii::app()->theme->baseUrl . '/assets/css/style-responsive.css'); ?>
        <?php Yii::app()->clientScript->registerCssFile(Yii::app()->theme->baseUrl . '/assets/css/themes/default.css'); ?>
        <?php Yii::app()->clientScript->registerCssFile(Yii::app()->theme->baseUrl . '/assets/plugins/uniform/css/uniform.default.css'); ?>
        <!-- END GLOBAL MANDATORY STYLES -->

        <!-- BEGIN PAGE LEVEL STYLES -->
        <?php Yii::app()->clientScript->registerCssFile(Yii::app()->theme->baseUrl . '/assets/css/pages/login.css'); ?>
        <!-- END PAGE LEVEL STYLES -->

        <link rel="shortcut icon" href="<?php echo Yii::app()->theme->baseUrl; ?>/assets/favicon.ico" />
    </head>

    <!-- BEGIN BODY -->
    <body class="login">

        <?php if (Yii::app()->user->hasFlash('registro')): ?>

            <?php
            $this->beginWidget('bootstrap.widgets.TbModal', array(
                'id' => 'registro-modal',
                'autoOpen' => true));
            ?>

            <div class="modal-header">
                <a class="close" data-dismiss="modal"></a>
                <h4><?php echo Yii::t('factuges', 'Registro'); ?></h4>
            </div>

            <div class="modal-body">
                <p><?php echo Yii::app()->user->getFlash('registro'); ?></p>
            </div>

            <div class="modal-footer">
                <?php $this->widget('bootstrap.widgets.TbButton', array(
                    'label' => Yii::t('factuges', 'Cerrar'),
                    'url' => '#',
                    'htmlOptions' => array('data-dismiss' => 'modal')));
                ?>
            </div>

    <?php $this->endWidget(); ?>        


<?php endif; ?>


        <!-- BEGIN LOGO -->
        <div class="logo">
            <img src="<?php echo Yii::app()->theme->baseUrl; ?>/assets/img/logo-big.png" alt="" /> 
        </div>
        <!-- END LOGO -->
        <!-- BEGIN LOGIN -->
        <div class="content">
<?php echo $content; ?>                   
        </div>
        <!-- END LOGIN -->
        <!-- BEGIN COPYRIGHT -->
        <div class="copyright">
            2013 &copy; Metronic. Admin Dashboard Template.
        </div>
        <!-- END COPYRIGHT -->
        <!-- BEGIN JAVASCRIPTS (Load javascripts at bottom, this will reduce page load time) -->
        <!-- BEGIN CORE PLUGINS -->
        <script src="<?php echo Yii::app()->theme->baseUrl; ?>/assets/plugins/jquery-1.8.3.min.js" type="text/javascript"></script> 
        <!-- IMPORTANT! Load jquery-ui-1.10.1.custom.min.js before bootstrap.min.js to fix bootstrap tooltip conflict with jquery ui tooltip -->  
        <script src="<?php echo Yii::app()->theme->baseUrl; ?>/assets/plugins/jquery-ui/jquery-ui-1.10.1.custom.min.js" type="text/javascript"></script>    
        <script src="<?php echo Yii::app()->theme->baseUrl; ?>/assets/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
        <!--[if lt IE 9]>
        <script src="<?php echo Yii::app()->theme->baseUrl; ?>/assets/plugins/excanvas.js"></script>
        <script src="<?php echo Yii::app()->theme->baseUrl; ?>/assets/plugins/respond.js"></script> 
        <![endif]-->  
        <script src="<?php echo Yii::app()->theme->baseUrl; ?>/assets/plugins/breakpoints/breakpoints.js" type="text/javascript"></script>  
        <!-- IMPORTANT! jquery.slimscroll.min.js depends on jquery-ui-1.10.1.custom.min.js -->  
        <script src="<?php echo Yii::app()->theme->baseUrl; ?>/assets/plugins/jquery-slimscroll/jquery.slimscroll.min.js" type="text/javascript"></script>
        <script src="<?php echo Yii::app()->theme->baseUrl; ?>/assets/plugins/jquery.blockui.js" type="text/javascript"></script> 
        <script src="<?php echo Yii::app()->theme->baseUrl; ?>/assets/plugins/jquery.cookie.js" type="text/javascript"></script>
        <script src="<?php echo Yii::app()->theme->baseUrl; ?>/assets/plugins/uniform/jquery.uniform.min.js" type="text/javascript" ></script>  
        <!-- END CORE PLUGINS -->
        <!-- BEGIN PAGE LEVEL PLUGINS -->
        <script src="<?php echo Yii::app()->theme->baseUrl; ?>/assets/plugins/jquery-validation/dist/jquery.validate.min.js" type="text/javascript"></script>
        <!-- END PAGE LEVEL PLUGINS -->
        <!-- BEGIN PAGE LEVEL SCRIPTS -->
        <script src="<?php echo Yii::app()->theme->baseUrl; ?>/assets/scripts/app.js" type="text/javascript"></script>
        <script src="<?php echo Yii::app()->theme->baseUrl; ?>/assets/scripts/login.js" type="text/javascript"></script>      
        <!-- END PAGE LEVEL SCRIPTS --> 
        <script>
            jQuery(document).ready(function() {
                App.init();
                Login.init();
            });
        </script>
        <!-- END JAVASCRIPTS -->
    </body>
    <!-- END BODY -->
</html>