<div id="panel-2" class="panel ">

    <?php get_template_part('parts/dashboard/user'); ?>

    <?php if (!have_posts()) get_template_part('parts/notice/no-posts'); ?>

    <?php while (have_posts()) : the_post(); ?>

        <section id="dashboard-content">

            <div class="wrap">

                <?php get_template_part('parts/dashboard/edit-profile/intro'); ?>

                <?php $current_user = wp_get_current_user(); ?>

                <form method="post" id="adduser" action="<?php the_permalink(); ?>">
                    <ul>
                        <h3><?php _e('Personal info', 'liosa'); ?></h3>

                        <li>
                            <label for="first-name"><?php _e('Username', 'liosa'); ?></label>
                            <input class="text-input" name="user_login" type="text" id="user_login" value="<?php the_author_meta('user_login', $current_user->ID); ?>" disabled />
                        </li>
                        <li>
                            <label for="first-name"><?php _e('First name', 'liosa'); ?></label>
                            <input class="text-input" name="first-name" type="text" id="first-name" value="<?php the_author_meta('first_name', $current_user->ID); ?>" />
                        </li>

                        <li>
                            <label for="last-name"><?php _e('Last name', 'liosa'); ?></label>
                            <input class="text-input" name="last-name" type="text" id="last-name" value="<?php the_author_meta('last_name', $current_user->ID); ?>" />
                        </li>

                        <li>
                            <label for="email"><?php _e('E-mail *', 'liosa'); ?></label>
                            <input class="text-input" name="email" type="text" id="email" value="<?php the_author_meta('user_email', $current_user->ID); ?>" />
                        </li>
                        <li>
                            <label for="phone_number"><?php _e('Phone', 'liosa'); ?></label>
                            <input class="text-input" name="phone_number" type="text" id="phone_number" value="<?php the_author_meta('phone_number', $current_user->ID); ?>" />
                        </li>

                        <li>
                            <label for="location"><?php _e('Location', 'liosa'); ?></label>
                            <input class="text-input" name="location" type="text" id="location" value="<?php the_author_meta('location', $current_user->ID); ?>" />
                        </li>

                        <?php
                        // action hook for plugin and extra fields
                        do_action('edit_user_profile', $current_user);
                        ?>
                        <li class="form-password">
                            <label for="pass1"><?php _e('Password *', 'liosa'); ?> </label>
                            <input class="text-input" name="pass1" type="password" id="pass1" />
                        </li><!-- .form-password -->
                        <li class="form-password">
                            <label for="pass2"><?php _e('Repeat password *', 'liosa'); ?></label>
                            <input class="text-input" name="pass2" type="password" id="pass2" />
                        </li><!-- .form-password -->
                        <li class="form-submit">
                            <input name="updateuser" type="submit" id="updateuser" class="submit button" value="<?php _e('Update profile', 'liosa'); ?>" />
                            <?php wp_nonce_field('update-user') ?>
                            <input name="honey-name" value="" type="text" style="display:none;"></input>
                            <input name="action" type="hidden" id="action" value="update-user" />
                        </li><!-- .form-submit -->
                    </ul>
                </form><!-- #adduser -->

            </div>

        <?php endwhile; ?>

        <?php wp_reset_postdata(); ?>
</div>