<div class="col-sm-col-sm-offset-1 margin-10auto0 paddingRL10px">
    <?php
        $form = $this->form;
        $form->prepare();
        //$form->setAttribute('action', $this->url('local-hire', ['action' => 'index']));
        //$form->setAttribute('method', 'post');
        $form->setAttribute('id', 'other-detail-form');
        $form->setAttributes(['name'=>'other_detail_form', 'id'=>'other-detail-form',
        'onsubmit'=>"return formSubmit14('other-detail-form', '/vehicle-details/other-detail')"]);
        echo $this->form()->openTag($form);
    ?>
    <div class="row">
        <div class="col-sm-12">
            <div class="form-group clearfix margintopbottom20">
                <label class="col-sm-3 control-label labelalign col-sm-3-new" id="Categorie Name"><?php echo $this->translate('Pref City to Drive Cab');?> <span  class="defaultcolor">*</span></label>
                <div class="col-sm-3 col-sm-4-new">                    
                    <?php echo $this->FormElement($form->get('pref_city_to_drive_cab')); ?>
                    <?php echo $this->FormElement($form->get('pref_city_to_drive_cab_value')); ?>
                </div>
                <label class="col-sm-3 control-label labelalign col-sm-3-new" id="point_airport"><?php echo $this->translate('Route Knowledge');?> <span  class="defaultcolor">*</span> </label>
                <div class="col-sm-3 col-sm-4-new">                    
                    <?php echo $this->FormElement($form->get('route_knowledge')); ?>
                </div>
            </div>

            <div class="form-group clearfix margintopbottom20">
                <label class="col-sm-3 control-label labelalign col-sm-3-new" id="point_airport"><?php echo $this->translate('AC/Non-AC');?> <span  class="defaultcolor">*</span> </label>
                <div class="col-sm-3 col-sm-4-new">                    
                    <?php echo $this->FormElement($form->get('ac_non_ac')); ?>
                </div>

                <label class="col-sm-3 control-label labelalign col-sm-3-new" id="point_airport"><?php echo $this->translate('Pref Location/Zone');?>   </label>
                <div class="col-sm-4 col-sm-4-new">                    
                    <?php echo $this->FormElement($form->get('pref_location_zone')); ?>
                </div>
            </div>

            <div class="form-group clearfix margintopbottom20">
                <label class="col-sm-3 control-label labelalign col-sm-3-new" id="point_airport"><?php echo $this->translate('Week Off');?> <span  class="defaultcolor">*</span> </label>
                <div class="col-sm-3 col-sm-4-new">                    
                    <?php echo $this->FormElement($form->get('week_off')); ?>
                </div>

                <label class="col-sm-2 control-label labelalign col-sm-3-new" id="point_airport"><?php echo $this->translate('Shift of Login');?>  </label>
                <div class="col-sm-4 col-sm-4-new">
                    <div class="col-sm-12 no-padding">
                        <?php //echo $this->FormElement($form->get('shift_of_login')); ?>
                    </div>
                </div>
            </div>
        </div>

        <div class="form-group clearfix margintopbottom20">
            <label class="col-sm-3 control-label labelalign col-sm-3-new" id="">  </label>
            <div class="col-sm-4 col-sm-4-new">

            </div>
            <label class="col-sm-3 control-label labelalign col-sm-3-new" id="update_profiel"></label>
            <div class="col-sm-3 col-sm-4-new " align="right">

                <!--<a class="reset_btn btn btn-success btn-new-vehile" href="#">
                    <i class="fa fa-retweet"></i>
                    Reset
                </a>
                <button type="button" class="save_data_btn btn btn-primary btn-new-vehile butoon_save btn-warning" >Save</button>-->

                <?php echo $this->FormElement($form->get('submit_type')); ?>
                <a class="reset_btn btn btn-success btn-new-vehile" href="#"><i class="fa fa-retweet"></i> Reset</a>
                <?php echo $this->FormElement($form->get('other_save')); ?>

            </div>
        </div>
    </div>
    <?php echo $this->form()->closeTag(); ?>
</div>
<script>
$("#pref-city-to-drive-cab").autocomplete({
    source: function (request, response) {
        $.ajax({
            url: '/profile/city-list',
            dataType: "json",
            type: "POST",
            data: {
                term: request.term
            },
            success: function (data) {
                response(data);
            }
        });
    },
    min_length: 3,
    delay: 300,
    focus: function (event, ui) {
        $("#cityaa").val(ui.item.label);
        return false;
    },
    select: function (event, ui) {
        $("#pref-city-to-drive-cab").val(ui.item.label);
        $("#pref-city-to-drive-cab-value").val(ui.item.value);
        return false;
    }
});
</script>