<ul class="breadcrumb">
    <li><a href="{$data.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">
        	{if $data.event_details eq ''}
            <form class="form-horizontal" name="services-form" id="services-form" enctype="multipart/form-data" method="post" action="{$data.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>
            {else}
             <form class="form-horizontal" name="services-form" id="services-form" enctype="multipart/form-data" method="post" action="{$data.base_url}event/update">
             	<input type="hidden" id="id" name="data[id]" value="{$data.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="{$data.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="{$data.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="{$data.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>
            {/if}
        </div>
    </div> 

</div>
                                            

 
 

 