<section class="content-header">
    <ol class="breadcrumb">
        <li><a href="<?php echo $this->url('home');?>"><i class="fa fa-home"></i>Home</a></li>
        <li class="active"><a href="<?php echo $this->url('dashboard');?>">Dashboard</a></li>
        <li class="active">Edit Profile</li>
    </ol>
</section>

<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">
                                <div class="panel-headingnew"><?php echo $this->translate('Edit Profile'); ?> </div>
                                <div class="left_panel col-sm-12 padding_margin0 pull-left bgwhite">
                                    <?php echo $this->partial('profile-menu.phtml'); ?>
                                    <div class="tab-content tab_editprofile col-sm-10 padding-left0 marginbott10px margintop10px">
                                        <div id="common-tab" class="tab-pane fade in tab_editprofile tab_editprofile1 active">
                                            <div class="col-sm-col-sm-offset-1 margin-10auto0 paddingRL10px">
                                                <?php
                                                $form = $this->form;
                                                $form->prepare();
                                                $form->setAttribute('action', $this->url('profile', ['action' => 'bank-detail']));
                                                $form->setAttribute('method', 'post');
//        $form->setAttributes(['name'=>'bank_detail_form', 'id'=>'bank-detail-form',
//         'onsubmit'=>"return formSubmit2('bank-detail-form','bank-detail')"]);
                                                echo $this->form()->openTag($form);
                                                ?>
                                                <div class="row">
                                                    <div class="col-sm-10">
                                                        <span style="color:<?php echo $msg_color; ?>"><?php echo $msg; ?></span><br/>
                                                        <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($this->formLabel($form->get('name'))); ?></label>
                                                            <div class="col-sm-5">
                                                                <?php echo $this->FormElement($form->get('name')); ?>
                                                                <?php echo $this->formElementErrors($form->get('name'), ['class' => 'error']); ?>
                                                            </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($this->formLabel($form->get('ac_holder_name'))); ?></label>
                                                            <div class="col-sm-5">
                                                                <?php echo $this->FormElement($form->get('ac_holder_name')); ?>
                                                                <?php echo $this->formElementErrors($form->get('ac_holder_name'), ['class' => 'error']); ?>
                                                            </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($this->formLabel($form->get('ac_no'))); ?></label>
                                                            <div class="col-sm-5">
                                                                <?php echo $this->FormElement($form->get('ac_no')); ?>
                                                                <?php echo $this->formElementErrors($form->get('ac_no'), ['class' => 'error']); ?>
                                                            </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($this->formLabel($form->get('ifsc_code'))); ?></label>
                                                            <div class="col-sm-5">
                                                                <?php echo $this->FormElement($form->get('ifsc_code')); ?>
                                                                <?php echo $this->formElementErrors($form->get('ifsc_code'), ['class' => 'error']); ?>
                                                            </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($this->formLabel($form->get('branch'))); ?></label>
                                                            <div class="col-sm-5">
                                                                <?php echo $this->FormElement($form->get('branch')); ?>
                                                                <?php echo $this->formElementErrors($form->get('branch'), ['class' => 'error']); ?>
                                                            </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($this->formLabel($form->get('address'))); ?></label>
                                                            <div class="col-sm-5">
                                                                <?php echo $this->FormElement($form->get('address')); ?>
                                                                <?php echo $this->formElementErrors($form->get('address'), ['class' => 'error']); ?>
                                                            </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($this->formLabel($form->get('bank_proof'))); ?></label>
                                                            <div class="col-sm-5">
                                                                <?php echo $this->FormElement($form->get('bank_proof')); ?>
                                                                <?php echo $this->formElementErrors($form->get('bank_proof'), ['class' => 'error']); ?>
                                                            </div>
                                                            <?php if(isset($bankproof) && $bankproof != '') { ?>
                                                                <div class="avatar-view userimg_byratio preview_img" title="Bank Proof">
                                                                    <img src="<?php echo '/upload/' . $id . '/' . $bankproof; ?>" id="residential_proof" alt="Bank Proof"> <h6><center><b>Bank Proof</b></center></h6><br/>
                                                                </div>
                                                            <?php } ?>
                                                        </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-5" 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('profile_submit')); ?>

                                                            </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">
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <?php echo $this->form()->closeTag(); ?>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <br>
        <!-- /.widget-box -->
    </div>
    <!-- /.col -->
</section>



