<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<main>

        <div class="container">

            <div class="row">
                <div class="col s12 xl5 z-depth-3">

                    <table class="responsive-table">
                        <thead>
                        <tr>
                            <th><?php echo $text_delegado['delegado_name'] ?></th>
                            <th><?php echo $text_delegado['delegado_surname'] ?></th>
                            <th><?php echo $text_delegado['delegado_second_surname'] ?></th>
                            <th><?php echo $text_delegado['delegado_email'] ?></th>
                        </tr>
                        </thead>

                        <tbody>
                        <tr>
                            <td><?php echo $delegado->nombre ?></td>
                            <td><?php echo $delegado->apellido1 ?></td>
                            <td><?php echo $delegado->apellido2 ?></td>
                            <td><?php echo $delegado->email ?></td>
                        </tr>

                        </tbody>
                    </table>

                </div>


                <div class="col s12 offset-xl1 xl5 z-depth-3 center">

                    <span style="font-weight: bold"> <?php echo $text_delegado['delegado_text_change_password'] ?></span>
                    <form class="row" action="<?php echo base_url() ?>delegado/modifyPassword" method="post"
                          onsubmit=" return validatePassword('Las contraseñas deben de ser las mismas')">
                        <div class="input-field col xl7 offset-xl2 s12">
                            <input style="width: 300px;" type="password" name="old_password" required id="old_password"/>
                            <label for="old_password"> <?php echo $text_delegado['delegado_old_password'] ?></label>
                        </div>
                        <div class="input-field  col xl7 offset-xl2 s12">
                            <input style="width: 300px;" type="password" name="new_password" id="password1" required/>
                            <label for="password12"> <?php echo $text_delegado['delegado_new_password'] ?></label>
                        </div>
                        <div class="input-field  col xl7 offset-xl2 s12">
                            <input style="width: 300px;" type="password" name="repeat_password" id="password2" required/>
                            <label for="password2"> <?php echo $text_delegado['delegado_repeat_password'] ?></label>
                        </div>
                        <button style="width: 170px" id="delete_button"
                                class="btn btn-neutral waves-effect indigo lighten-1  col xl7 offset-xl2 s7 offset-s3"> <?php echo $text_delegado['delegado_btn_change'] ?>
                        </button>

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

</main>
<body>




</body>
