<div class="row">
    <div class="col-xs-12">
        <div class="box box-danger mb0">
            <div class="box-body table-responsive table-fixed-height">
                <table id="KwalifikacjeTable" class="table hover-rows custom-table FullTable" data-start-sort="1"
                       data-start-sort-direction="desc" data-start-height="50vh">
                    <thead>
                    <tr class="text-uppercase">
                        <th>Kwalifikacja</th>
                        <th>Data uzyskania</th>
                        <th>Data ważności</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php if (isset($skills['bKwalifikacje']['bKwalifikacja'])) : ?>
                        <?php foreach ($skills['bKwalifikacje']['bKwalifikacja'] as $k => $skill): ?>
                            <tr
                                <?php if (!empty($skill['bInformacjeDodatkowe'])): ?>
                                    class="more-info-append" data-append-to="#more-info-container"
                                    data-more-info="<?php echo $skill['bInformacjeDodatkowe']; ?>"
                                <?php endif; ?>
                            >
                                <td class="info-addon"><?php echo $skill['bKwalifikacjaOpisKodu']; ?></td>
                                <td><span class="span-date"><?php echo $skill['bDataUzyskania']; ?></span></td>
                                <td><span class="span-date"><?php echo $skill['bDataWaznosci']; ?></span></td>
                            </tr>
                        <?php endforeach; ?>
                    <?php endif; ?>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
<div class="row more-info-container">
    <div class="col-xs-12">
        <div class="box">
            <div class="box-header">
                <h2 class="box-title">Informacje dodatkowe</h2>
            </div>
            <div class="box-body" id="more-info-container">

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

<script>
    $(function () {
        $('.page-name:first-of-type').html('<?php echo $pageName; ?>');
    })
</script>

<?php echo $this->element('alert_close'); ?>
