<?php /* Smarty version Smarty-3.1.8, created on 2020-12-10 17:04:42
         compiled from "/home/agmc/beta/application/core/views/frontend/mini/Testdrive.tpl" */ ?>
<?php /*%%SmartyHeaderCode:7702578955e26ecef434db1-62648062%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '83b4363ca5e2a68a3a0a3b95559ac56e8487f07d' => 
    array (
      0 => '/home/agmc/beta/application/core/views/frontend/mini/Testdrive.tpl',
      1 => 1605520856,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '7702578955e26ecef434db1-62648062',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5e26ecef491f49_21146383',
  'variables' => 
  array (
    'SelCurrLanguage' => 0,
    'languageDirection' => 0,
    'commonMetaTitle' => 0,
    'language' => 0,
    'commonMetaDescription' => 0,
    'view_styles' => 0,
    'listShowrooms' => 0,
    'productarray' => 0,
    'selCat' => 0,
    'resCountry' => 0,
    'currentCar' => 0,
    'compiled_js_path' => 0,
    'common_js' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5e26ecef491f49_21146383')) {function content_5e26ecef491f49_21146383($_smarty_tpl) {?><!DOCTYPE html>
<html lang="<?php echo $_smarty_tpl->tpl_vars['SelCurrLanguage']->value;?>
" dir="<?php echo $_smarty_tpl->tpl_vars['languageDirection']->value;?>
">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title><?php if ($_smarty_tpl->tpl_vars['commonMetaTitle']->value){?><?php echo $_smarty_tpl->tpl_vars['commonMetaTitle']->value;?>
<?php }else{ ?><?php echo $_smarty_tpl->tpl_vars['language']->value['lblBookATestDrive'];?>
<?php }?></title>
	<meta name="Description" content="<?php echo $_smarty_tpl->tpl_vars['commonMetaDescription']->value;?>
" />
    <meta name="viewport" content="width=device-width"> 
    <link href="<?php echo $_smarty_tpl->tpl_vars['view_styles']->value;?>
/cms.css" rel="stylesheet" type="text/css" media="screen" />
    <?php echo $_smarty_tpl->getSubTemplate ('CommonJavaScript.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>
 
    <?php echo $_smarty_tpl->getSubTemplate ('CommonStyles.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>
 
    <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->rootpath_script(array(),$_smarty_tpl);?>
 
    <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->basepath_script(array(),$_smarty_tpl);?>

</head>

<body ng-controller="SearchCtrl" class="<?php echo $_smarty_tpl->tpl_vars['languageDirection']->value;?>
">
    <!-- Begin : Outer Pane -->
    <div id="main">
        <!-- Begin : Header Pane-->
        <?php echo $_smarty_tpl->getSubTemplate ('CommonTop.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

        <!-- End : Header -->
        <!-- Begin : Content Pane --> 
        <div id="content-wrapper" ng-show="!query" >
            <nav class="breadcrumb-block" aria-label="breadcrumb">
                <div class="container py-1">
                    <ul class="breadcrumb list-unstyled m-0 py-2 px-0 text-left">
                        <li class="breadcrumb-item"><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"/",'caption'=>($_smarty_tpl->tpl_vars['language']->value['lblHome'])),$_smarty_tpl);?>
</li>
                        <li class="breadcrumb-item active"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblTestDrive'];?>
</li>
                    </ul>
                </div>
            </nav>
            <div class="test-drive-form pt-4 pb-5 text-left">
                <div class="container mb-lg-5">
                    <div class="drive_form bg-white p-4">
                        <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->start(array('name'=>"formTestDrive",'action'=>'','method'=>"post"),$_smarty_tpl);?>

                        <div class="p-2">
                            <h1 class="h3 text-uppercase font-weight-bold mb-1"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblBookATestDrive'];?>
</h1>
                            <p class="text-muted mb-4"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblPleaseFillTheDetails'];?>
</p>
                            <div id="common_message"></div>
                            <div class="form-group">
                                <label class=" mb-1"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblChooseShowroom'];?>
<sup class="font-xsmall">*</sup></label>
                                
                                 <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('name'=>"showroomID",'tabindex'=>"1",'class'=>"form-control",'caption'=>"->".($_smarty_tpl->tpl_vars['language']->value['lblSelect']),'options'=>$_smarty_tpl->tpl_vars['listShowrooms']->value,'validate'=>"required",'error'=>($_smarty_tpl->tpl_vars['language']->value['errShowroom'])),$_smarty_tpl);?>

                            </div>
                            <div class="form-group">
                                <label class=" mb-1"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblModel'];?>
<sup class="font-xsmall">*</sup></label>
                                <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('name'=>"model",'tabindex'=>"2",'class'=>"form-control",'caption'=>"->".($_smarty_tpl->tpl_vars['language']->value['lblSelect']),'options'=>$_smarty_tpl->tpl_vars['productarray']->value,'value'=>($_smarty_tpl->tpl_vars['selCat']->value),'validate'=>"required",'error'=>($_smarty_tpl->tpl_vars['language']->value['errModel'])),$_smarty_tpl);?>

                            </div>
                            <div class="form-group">
                                <label class=" mb-1"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblName'];?>
<sup class="font-xsmall">*</sup></label>
                                <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('autocomplete'=>"off",'name'=>"name",'class'=>"form-control",'tabindex'=>"4",'maxlength'=>"50",'validate'=>"required",'error'=>$_smarty_tpl->tpl_vars['language']->value['errName']),$_smarty_tpl);?>

                            </div>
                            <div class="form-group">
                                <label class=" mb-1"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblPhoneNumber'];?>
<sup class="font-xsmall">*</sup></label>
                                <div class="row"><div class="col-4 col-lg-3 pr-0">
                                <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('id'=>"countrycode",'name'=>"countrycode",'class'=>"form-control text-secondary",'options'=>$_smarty_tpl->tpl_vars['resCountry']->value),$_smarty_tpl);?>

                                </div>
                            <div class="col-8 col-lg-9">
                                <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('autocomplete'=>"off",'name'=>"phone",'class'=>"form-control",'tabindex'=>"5",'maxlength'=>'10','validate'=>"required~*isNumber",'error'=>(($_smarty_tpl->tpl_vars['language']->value['errPhone']).("~*")).($_smarty_tpl->tpl_vars['language']->value['errValidPhone'])),$_smarty_tpl);?>

                                </div>
								<span class="sub-text col-12 font-weight-light text-muted mt-2"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblPhoneSubText'];?>
</span>
								</div>
                            </div>
                            <div class="form-group">
                                <label class=" mb-1"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblEmailAddress'];?>
<sup class="font-xsmall">*</sup></label>
                                <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('autocomplete'=>"off",'name'=>"emailID",'class'=>"form-control",'tabindex'=>"6",'validate'=>"required~*email",'error'=>(($_smarty_tpl->tpl_vars['language']->value['errEmail']).("~*")).($_smarty_tpl->tpl_vars['language']->value['errEnterValidEmailID'])),$_smarty_tpl);?>

                            </div>
                            <div class="form-group">
                                <label class=" mb-1"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblCurrentCar'];?>
<sup class="font-xsmall">*</sup></label>
                                <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('name'=>"currentCar",'tabindex'=>"7",'class'=>"form-control",'caption'=>"->".($_smarty_tpl->tpl_vars['language']->value['lblSelect']),'options'=>$_smarty_tpl->tpl_vars['currentCar']->value,'validate'=>"required",'error'=>$_smarty_tpl->tpl_vars['language']->value['errOption']),$_smarty_tpl);?>

                            </div>
                            <div class="form-group">
                                <label class=" mb-1"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblWhenDoYouBuyCar'];?>
<sup class="font-xsmall">*</sup></label>
                                 <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('name'=>"whenTobuy",'tabindex'=>"3",'class'=>"form-control",'caption'=>"->".($_smarty_tpl->tpl_vars['language']->value['lblSelect']),'options'=>"Within one month->".($_smarty_tpl->tpl_vars['language']->value['lblNextOnemonth'])."~*Within next three months->".($_smarty_tpl->tpl_vars['language']->value['lblNextThreemonth'])."~*After three months->".($_smarty_tpl->tpl_vars['language']->value['lblAfterThreemonth']),'validate'=>"required",'error'=>($_smarty_tpl->tpl_vars['language']->value['errOption'])),$_smarty_tpl);?>

                            </div>
							<div class="form-group">
                                <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->checkbox(array('id'=>"agree",'name'=>"agree",'value'=>"1"),$_smarty_tpl);?>

                                <label for="agree" class="font-base"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblDataProtectionText'];?>
</label>
                                 <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->validate(array('name'=>"validateAgree",'validate'=>"agree->required",'error'=>$_smarty_tpl->tpl_vars['language']->value['errAgreement']),$_smarty_tpl);?>

                            </div>
                            <div class="text-right">
                                <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['language']->value['lblSubmit'];?>
<?php $_tmp1=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->submit(array('name'=>"submitFormtestDrive",'class'=>"btn btn-primary  px-5",'value'=>$_tmp1),$_smarty_tpl);?>
 
                                <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['language']->value['lblSubmit'];?>
<?php $_tmp2=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->submit(array('name'=>"submitFormtestDriveLoader",'class'=>"btn btn-primary  px-5 disabled hide",'value'=>$_tmp2),$_smarty_tpl);?>
 
                            </div>
                        </div>
                        <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->close(array(),$_smarty_tpl);?>
 
                    </div>
                </div>
            </div>
        </div>
        <!-- End : Content Pane --> 
        <!-- Begin : Footer	Pane -->
        <?php echo $_smarty_tpl->getSubTemplate ('CommonBottom.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

        <!-- End : Footer Pane -->
    </div>
    <!-- End : Outer Pane -->  
    <?php echo $_smarty_tpl->getSubTemplate ('CommonJavaScriptBottom.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>
 
    <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->messages_script(array('id'=>"common_message"),$_smarty_tpl);?>
 
    <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->script_group_start(array('name'=>($_smarty_tpl->tpl_vars['compiled_js_path']->value)."/testdrive.js"),$_smarty_tpl);?>

    <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->script(array('src'=>($_smarty_tpl->tpl_vars['common_js']->value)."/validate.plugin.js"),$_smarty_tpl);?>
    
     <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->script_group_end(array(),$_smarty_tpl);?>
 
    <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->validate_script(array('form'=>'formTestDrive'),$_smarty_tpl);?>

    <script language="javascript">
    $(document).on('submit','#formTestDrive',function() 
	{
                
		if($(".message_validation :visible").length>0)
		{
                    return false;
		}
		else
		{
			$("#submitFormtestDrive").addClass('hide');
                        $("#submitFormtestDriveLoader").removeClass('hide');
			
		}
	}
	);
    </script>
</body>
</html>

<?php }} ?>