<section class="content">
    <div class="row">
        <div class="col-sm-12">
            <div class="tabbable">
                <div class="tab-content no-border padding-24">
                    <div class="tab-pane fade in active" id="faq-tab-1">
                        <div class="space-8"></div>
                        <div class="panel-group accordion-style1 accordion-style2" id="faq-list-1">
                            <div class="panel panel-default" id="edit-air-rail">
                                <div class="panel-headingnew">Add City Page</div>

                                <div id="faq-1-1" class="panel-collapse collapse in" aria-expanded="true">
                                    <div class="panel-body">

                                        <div class="tab-content" id="myTabContent">
                                            <div id="home" class="tab-pane fade active in">
                                                <div class="col-sm-col-sm-offset-1 margin-10auto0 paddingRL10px">


                                                    <div class="row">
                                                        <div class="col-sm-12 no-padding">


                                        <?php
                                        $form = $this->form;
                                        $form->prepare();
                                        $form->setAttribute('action', $this->url('city-page', ['action' => 'add-city-page']));
                                        $form->setAttribute('method', 'post');
                                        $form->setAttribute('id', 'add-city-page');
                                        echo $this->form()->openTag($form);
                                        ?>


                                                            <div class="form-group clearfix margintopbottom20">
                                                                <label class="col-sm-2 "><?php echo $this->translate($this->formLabel($form->get('fare_city'))); ?></label>
                                                                <div class="col-sm-4 form-group">
                                                                    <?php echo $this->FormElement($form->get('fare_city')); ?>
                                                                    <?php echo $this->FormElement($form->get('fare_city_id')); ?>
                                                                    <?php echo $this->formElementErrors($form->get('fare_city'), ['class' => 'error']); ?>
                                                                </div>
                                                                <label class="col-sm-2"><?php echo $this->translate($this->formLabel($form->get('booking_type'))); ?></label>
                                                                <div class="col-sm-4">
                                                                    <div class="row-fluid form-group">
                                                                        <?php echo $this->FormElement($form->get('booking_type')); ?>
                                                                        <?php echo $this->formElementErrors($form->get('booking_type'), ['class' => 'error']); ?>
                                                                    </div>
                                                                </div>
                                                            </div>


                                                            <div class="form-group clearfix margintopbottom20">
                                                                <label class="col-sm-2 "><?php echo $this->translate($this->formLabel($form->get('page_title'))); ?></label>
                                                                <div class="col-sm-4 form-group">
                                                                    <?php echo $this->FormElement($form->get('page_title')); ?>
                                                                    <?php echo $this->formElementErrors($form->get('page_title'), ['class' => 'error']); ?>
                                                                </div>
                                                                
                                                                <label class="col-sm-2" for="site_name"><?php echo $this->translate($this->formLabel($form->get('city_page_image'))); ?></label>
                                                        <div class="col-sm-4 col-xs-10">
                                                            <?php echo $this->FormElement($form->get('city_page_image')); ?>
                                                        </div>
                                                            </div>

                                                            <div class="form-group clearfix margintopbottom20">
                                                                <label class="col-sm-2 col-xs-12 control-label" for="site_name"><?php echo $this->translate($this->formLabel($form->get('page_desc'))); ?></label>
                                                                <div class="col-sm-10 col-xs-10">
                                                                    <?php echo $this->FormElement($form->get('page_desc')); ?>
                                                                    <?php echo $this->formElementErrors($form->get('page_desc'), ['class' => 'error']); ?>
                                                                </div>
                                                            </div>


                                                            <div class="form-group clearfix margintopbottom20">
                                                                <label class="col-sm-2 "><?php echo $this->translate($this->formLabel($form->get('meta_title'))); ?></label>
                                                                <div class="col-sm-4 form-group">
                                                                    <?php echo $this->FormElement($form->get('meta_title')); ?>
                                                                    <?php echo $this->formElementErrors($form->get('meta_title'), ['class' => 'error']); ?>
                                                                </div>
                                                                <label class="col-sm-2"><?php echo $this->translate($this->formLabel($form->get('meta_keywords'))); ?></label>
                                                                <div class="col-sm-4">
                                                                    <div class="row-fluid form-group">
                                                                        <?php echo $this->FormElement($form->get('meta_keywords')); ?>
                                                                        <?php echo $this->formElementErrors($form->get('meta_keywords'), ['class' => 'error']); ?>
                                                                    </div>
                                                                </div>
                                                            </div>

                                                            <div class="form-group clearfix margintopbottom20">
                                                                <label class="col-sm-2 "><?php echo $this->translate($this->formLabel($form->get('meta_desc'))); ?></label>
                                                                <div class="col-sm-4 form-group">
                                                                    <?php echo $this->FormElement($form->get('meta_desc')); ?>
                                                                    <?php echo $this->formElementErrors($form->get('meta_desc'), ['class' => 'error']); ?>
                                                                </div>

                                                                <label class="col-sm-2 "><?php echo $this->translate($this->formLabel($form->get('no_of_sightseeing'))); ?></label>
                                                                <div class="col-sm-4 form-group">
                                                                    <?php echo $this->FormElement($form->get('no_of_sightseeing')); ?>
                                                                    <?php echo $this->formElementErrors($form->get('no_of_sightseeing'), ['class' => 'error']); ?>
                                                                </div>

                                                            </div>

                                                            <div class="form-group clearfix margintopbottom20">


                                                                <label class="col-sm-2 "><?php echo $this->translate($this->formLabel($form->get('no_of_hotels'))); ?></label>
                                                                <div class="col-sm-4 form-group">
                                                                    <?php echo $this->FormElement($form->get('no_of_hotels')); ?>
                                                                    <?php echo $this->formElementErrors($form->get('no_of_hotels'), ['class' => 'error']); ?>
                                                                </div>

                                                                <label class="col-sm-2 "><?php echo $this->translate($this->formLabel($form->get('no_of_offers'))); ?></label>
                                                                <div class="col-sm-4 form-group">
                                                                    <?php echo $this->FormElement($form->get('no_of_offers')); ?>
                                                                    <?php echo $this->formElementErrors($form->get('no_of_offers'), ['class' => 'error']); ?>
                                                                </div>

                                                            </div>


                                                            <div class="form-group clearfix margintopbottom20">
                                                                <label class="col-sm-3 control-label labelalign col-sm-3-new">Status  </label>
                                                                    <div class="col-sm-3 col-sm-4-new">
                                                                        <div class="col-sm-6 no-padding">
                                                                            <div class="carbooking">
                                                                                <input type="radio" name="status" id="active" value="1" checked="checked" >
                                                                                <label for="active"><span class="radio">Active</span></label>
                                                                            </div>

                                                                        </div>

                                                                        <div class="col-sm-6 no-padding">

                                                                            <div class="carbooking">
                                                                                <input type="radio" name="status" id="deactive" value="0">
                                                                                <label for="deactive"><span class="radio">De-Active</span></label>
                                                                            </div>
                                                                        </div>
                                                                    </div>

                                                                <label class="col-sm-3 control-label labelalign col-sm-3-new"></label>
                                                                <div class="col-sm-3 col-sm-4-new">
                                                                    <a href="<?php echo $this->url('city-page', array('action' => 'index')); ?>" id="back" class="btn btn-github "><i class="fa fa-backward iconsearch" ></i>Back</a>
                                                                    <?php echo $this->FormElement($form->get('add_city_page')); ?>
                                                                </div>
                                                            </div>

                                                        </div>
                                                    </div>
                                                </div>
                                            </div>

                                            <?php echo $this->form()->closeTag(); ?>
                                        </div>
                                    </div>
                                </div>
                            </div>


                            <?php //echo $this->partial('airport-listing.phtml'); ?>
                        </div>
                    </div>
                </div>
            </div>

            <!-- /.widget-box -->
        </div>
        <!-- /.col -->
    </div>

    <!-- /.row -->
    <!-- Main row -->
</section>
<?php echo $this->inlineScript()->appendFile($this->basePath('/includes/ckeditor/ckeditor.js')); ?>
<script type="text/javascript">
    CKEDITOR.dtd.$removeEmpty['i'] = false;
    CKEDITOR.replace('page_desc',
            {
                filebrowserBrowseUrl: '/includes/ckfinder/ckfinder.html',
                filebrowserImageBrowseUrl: '/includes/ckfinder/ckfinder.html?type=Images',
                filebrowserFlashBrowseUrl: '/includes/ckfinder/ckfinder.html?type=Flash',
                filebrowserUploadUrl: '/includes/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files',
                filebrowserImageUploadUrl: '/includes/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images',
                filebrowserFlashUploadUrl: '/includes/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash',
                enterMode: CKEDITOR.ENTER_BR
            });
</script>
