ZeusView

Zurück zu Zeus

<?php
/**
 * @var \Application\View\Model\AbstractViewModel $this
 * @var \Tools\Form\ZeusForm                      $zeusForm
 * @var array|null                                $zeusData
 * @var array                                     $sources
 */
?>

<style type="text/css">
    th {
        text-align: right;
    }
</style>

<div class="grid">
    <div class="row">
        <div class="col-12">
            Hier befindet sich das Journal in Zeus:<br />
            &quot;Journale&quot; -> &quot;Übersichtslisten&quot; -> &quot;Urlaubsliste&quot;
        </div>
        <div class="col-12">
            <hr />
        </div>
        <div class="col-12 textarea-wide">
            <?php
            $zeusForm
->setAttribute('action''#result');
            echo 
$this->form()->render($zeusForm);
            
?>
        </div>
        <div class="col-12">
            <hr />
        </div>
    </div>

    <?php if ($zeusData !== null): ?>
        <div class="row">
            <div class="col-12">
                <table id="result">
                    <tr>
                        <th>Journal vom:</th>
                        <td><?php echo $zeusData['lastUpdate']; ?></td>
                        <td></td>
                    </tr>
                    <tr>
                        <th>Urlaub insgesamt:</th>
                        <td><?php echo $zeusData['total']; ?></td>
                        <td></td>
                    </tr>
                    <?php if ($zeusData['available'] > $zeusData['total']): ?>
                        <tr>
                            <th>Urlaub verfügbar:</th>
                            <td><?php echo $zeusData['available']; ?></td>
                            <td>(inkl. Resturlaub von letztem Jahr)</td>
                        </tr>
                    <?php endif; ?>
                    <tr>
                        <th>Nicht mehr verfügbarer Urlaub:</th>
                        <td><?php echo $zeusData['used']; ?></td>
                        <td>(geplant oder genommen)</td>
                    </tr>
                    <tr>
                        <th>Noch verfügbarer Urlaub:</th>
                        <td><?php echo $zeusData['remaining']; ?></td>
                        <td></td>
                    </tr>
                    <?php if ($zeusData['expireCount'] > 0): ?>
                        <tr style="color: #f00;">
                            <th>Urlaub verfällt:</th>
                            <td><?php echo $zeusData['expireCount']; ?></td>
                            <td></td>
                        </tr>
                    <?php endif; ?>
                </table>
            </div>
            <div class="col-12">
                <hr />
            </div>
        </div>
    <?php endif; ?>

    <?php echo $this->partial('tools/zeus/partial/sources', ['sources' => $sources]); ?>
</div>

<script type="text/javascript">
    $(document).ready(function () {
        $('#content').focus();
    });
</script>