<div id="main" role="main">
    <div id="content">
        <div class="row">
            <div class="col-xs-12 col-sm-7 col-md-8 col-lg-8">
                <h1 class="page-title txt-color-blueDark">
                    <i class="fa fa-user fa-fw "></i>
                    <?php echo $this->lang->line('my_account'); ?>
                </h1>
            </div>
        </div>
        <?php if ($this->session->flashdata('flashMsgType') == 'Success') : ?>
            <div class="alert alert-success fade in"><button class="close" data-dismiss="alert">×</button><i class="fa-fw fa fa-check"></i>
                <strong><?php print $this->session->flashdata('flashMsgType') ?></strong> <?php print $this->session->flashdata('flashMsg') ?>
            </div>
        <?php elseif ($this->session->flashdata('flashMsgType') == 'Error') : ?>
            <div class="alert alert-danger fade in"><button class="close" data-dismiss="alert">×</button><i class="fa-fw fa fa-times"></i>
                <strong><?php print $this->session->flashdata('flashMsgType') ?></strong> <?php print $this->session->flashdata('flashMsg') ?>
            </div>
        <?php endif; ?>
        <div class="row justify-content-center w-25 mx-auto">
            <div class="card card-body">
                <!-- <span class="widget-icon"> <i class="fa fa-comments"></i> </span> -->
                <i class="fa fa-refresh fa-spin"></i>
                <div role="content">
                    <!-- <ul id="myTab1" class="nav nav-tabs bordered">
                        <li class="active">
                            <a href="#s1" data-toggle="tab"><i class="fa fa-fw fa-lg fa-gear"></i><?php echo $this->lang->line('details_of_account'); ?></a>
                        </li>
                    </ul> -->

                    <div id="myTabContent1" class="tab-content tabs-pull-right">

                        <?php $customer = $this->data['customerData']; ?>
                        <div class="tab-pane padding-10 active" id="s1">
                            <form id="customer-form" class="smart-form" novalidate="novalidate" method="post" action="<?php print site_url(); ?>app/account/customerAction">
                                <fieldset>
                                    <section>
                                        <label class="input"> <i class="icon-append fa fa-bullseye"></i>
                                            <input type="text" class="form-control" name="customername" placeholder="<?php echo $this->lang->line('customer_name'); ?>">
                                        </label>
                                    </section>
                                    <div class="row">
                                        <section class="col col-6">
                                            <label class="input"> <i class="icon-append fa fa-user"></i>
                                                <input type="tel" class="form-control" name="customerName" placeholder="<?php echo $this->lang->line('contact_person'); ?>" value="<?php print $customer->customerName ?>">
                                            </label>
                                        </section>
                                        <section class="col col-6">
                                            <label class="input"> <i class="icon-append fa fa-phone"></i>
                                                <input type="tel" class="form-control" name="phonenumber" placeholder="<?php echo $this->lang->line('telephone'); ?>" value="<?php print $customer->phoneNumber ?>" />
                                            </label>
                                        </section>
                                    </div>
                                    <section>
                                        <label class="input"> <i class="icon-append fa fa-envelope-o"></i>
                                            <input type="email" class="form-control" name="email" placeholder="<?php echo $this->lang->line('mail'); ?>" value="<?php print $customer->email ?>" disabled="disabled" />
                                        </label>
                                    </section>
                                    <div class="row">
                                        <section class="col col-6">
                                            <label class="input"> <i class="icon-append fa fa-home"></i>
                                                <input type="text" class="form-control" name="address" placeholder="<?php echo $this->lang->line('address'); ?>" value="<?php print $customer->address ?>" />
                                            </label>
                                        </section>
                                        <section class="col col-6">
                                            <label class="select">
                                                <select name="city">
                                                    <option value=""><?php echo $this->lang->line('city'); ?></option>
                                                    <?php print printCitiesOptions($customer->city); ?>
                                                </select><i></i></label>
                                        </section>
                                    </div>

                                </fieldset>
                                <?php /*
                                                        <fieldset>
                                                            <section>
                                								<label class="input"> <i class="icon-append fa fa-calendar"></i>
                                									<input type="text" name="customerCalendarId" placeholder="מזהה לוח-שנה של גוגל" value="<?php print $customer->customerCalendarId ?>" />
                                								</label>
                                							</section>
                                                        </fieldset>
                                                        */ ?>
                                <footer>
                                    <button type="button" class="btn bg-color-purple txt-color-white pull-left" onclick="javascript: changeUserPassword(<?php print getUserId(); ?>);"><?php echo $this->lang->line('change_password'); ?></button>
                                    <button type="submit" class="btn btn-primary pull-right"><?php echo $this->lang->line('confirm'); ?></button>
                                </footer>
                            </form>
                        </div>

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