<?php /* Smarty version Smarty-3.1.11, created on 2017-10-09 18:37:53
         compiled from "application\views\templates\event_create.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1595259db5f91bea284-52231077%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'e2907ff2ffb5ec15c43dfe0d31414b25c645a675' => 
    array (
      0 => 'application\\views\\templates\\event_create.tpl',
      1 => 1504070792,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1595259db5f91bea284-52231077',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'data' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_59db5f92c731b5_98318808',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_59db5f92c731b5_98318808')) {function content_59db5f92c731b5_98318808($_smarty_tpl) {?><ul class="breadcrumb">
    <li><a href="<?php echo $_smarty_tpl->tpl_vars['data']->value['base_url'];?>
/event">Event List </a></li>
    <li class="active">Add Event</li>
</ul>
<div class="page-content-wrap">
	<div class="row">
        <div class="col-md-12">
        	<?php if ($_smarty_tpl->tpl_vars['data']->value['event_details']==''){?>
            <form class="form-horizontal" name="services-form" id="services-form" enctype="multipart/form-data" method="post" action="<?php echo $_smarty_tpl->tpl_vars['data']->value['base_url'];?>
event/create">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title"><strong>Add New Event</strong></h3>
                        
                    </div>
                    <div class="panel-body">
                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">
                                Event Name <span>*</span>
                            </label>
                            <div class="col-md-3 col-xs-12">    
                                <div class="input-group">
                                    <span class="input-group-addon"><span class="fa fa-pencil"></span></span>
                                   <input  class="form-control" type="text" id="name" name="data[name]" maxlength="55" required>
                                </div>                                            
                                <span class="help-block red" id="name_v"></span>
                            </div>
                            <!-- <label class="col-md-1 col-xs-12 control-label">Start Date <span>*</span></label>
                            <div class="col-md-3 col-xs-12">                                            
                                <div class="input-group">
                                    <span class="input-group-addon"><span class="fa fa-calendar"></span></span>
                                   <input  class="form-control datepicker" type="text" id="start_date" name="data[start_date]" maxlength="55"  required>
                                </div>                                            
                                <span class="help-block red" id="name_v"></span>
                            </div>
                            <label class="col-md-1 col-xs-12 control-label">End Date <span>*</span></label>
                            <div class="col-md-3 col-xs-12">                                            
                                <div class="input-group">
                                    <span class="input-group-addon"><span class="fa fa-calendar"></span></span>
                                   <input  class="form-control datepicker" type="text" id="end_date" name="data[end_date]" maxlength="55"  required>
                                </div>                                            
                                <span class="help-block red" id="name_v"></span>
                            </div> -->
                        </div>
                        <div class="form-group">
                            
                        </div> 
                        <div class="form-group">
                            
                        </div> 
                    </div>
                    <div class="panel-footer">
                        <input type="submit" class="btn btn-primary pull-right" value="Save" name="addevent">
                    </div>
                </div>
            </form>
            <?php }else{ ?>
             <form class="form-horizontal" name="services-form" id="services-form" enctype="multipart/form-data" method="post" action="<?php echo $_smarty_tpl->tpl_vars['data']->value['base_url'];?>
event/update">
             	<input type="hidden" id="id" name="data[id]" value="<?php echo $_smarty_tpl->tpl_vars['data']->value['event_details']['id'];?>
">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title"><strong>Add New Event</strong></h3>
                    </div>
                    <div class="panel-body">
                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">Event Name <span>*</span></label>
                            <div class="col-md-3 col-xs-12">                                            
                                <div class="input-group">
                                    <span class="input-group-addon"><span class="fa fa-pencil"></span></span>
                                   <input  class="form-control" type="text" id="name" name="data[name]" maxlength="55" value="<?php echo $_smarty_tpl->tpl_vars['data']->value['event_details']['name'];?>
"  required>
                                </div>                                            
                                <span class="help-block red" id="name_v"></span>
                            </div>
                            <!-- <label class="col-md-1 col-xs-12 control-label">Start Date <span>*</span></label>
                            <div class="col-md-3 col-xs-12">                                            
                                <div class="input-group">
                                    <span class="input-group-addon"><span class="fa fa-calendar"></span></span>
                                   <input  class="form-control datepicker" type="text" id="start_date" name="data[start_date]" maxlength="55"  required value="<?php echo $_smarty_tpl->tpl_vars['data']->value['event_details']['start_date'];?>
"  >
                                </div>                                            
                                <span class="help-block red" id="name_v"></span>
                            </div>
                            <label class="col-md-1 col-xs-12 control-label">End Date <span>*</span></label>
                            <div class="col-md-3 col-xs-12">                                            
                                <div class="input-group">
                                    <span class="input-group-addon"><span class="fa fa-calendar"></span></span>
                                   <input  class="form-control datepicker" type="text" id="end_date" name="data[end_date]" maxlength="55"  value="<?php echo $_smarty_tpl->tpl_vars['data']->value['event_details']['end_date'];?>
" required>
                                </div>                                            
                                <span class="help-block red" id="name_v"></span>
                            </div> -->
                        </div>
                    </div>
                    <div class="panel-footer">
                        <input type="submit" class="btn btn-primary pull-right" value="Save" name="addevent">
                    </div>
                </div>
            </form>
            <?php }?>
        </div>
    </div> 

</div>
                                            

 
 

 <?php }} ?>