aboutsummaryrefslogtreecommitdiff
path: root/app/views/materialien/files/sort.php
blob: da1c3b6a9e3fa083810368e393d8dc1d13240206 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<script type="text/javascript">
jQuery(function ($) {
    $('div.ui-dialog').on('dialogclose', function(event) {
        STUDIP.MVV.Document.reload_documenttable('<?= htmlReady($range_id) ?>', '<?= htmlReady($range_type) ?>');
    });
});
</script>

<div class="ordering" title="<?= _('Reihenfolge ändern') ?>">
    <div class="nestable" data-max-depth="1">
        <? if ($mvv_files): ?>
            <ol class="dd-list">
                <? foreach ($mvv_files as $mvv_file): ?>
                    <li class="dd-item" data-id="<?= $mvv_file->mvvfile_id; ?>">
                        <div class="dd-handle"><?= formatReady($mvv_file->getDisplayName()) ?></div>
                    </li>
                <? endforeach; ?>
            </ol>
        <? endif; ?>
    </div>
</div>

<form class="default" id="order_form" action="<?= $controller->action_link('sort', $range_type, $range_id) ?>" method="POST" data-dialog="size=auto">
    <input type="hidden" name="ordering" id="ordering">
    <footer data-dialog-button>
        <?= Studip\Button::createAccept(_('Speichern'), 'order') ?>
    </footer>
</form>