blob: 46365acfd0158a053ad6c0f4c3d507d82f3c95bb (
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.Contact.reload_contacttable('<?= htmlReady($range_id) ?>', '<?= htmlReady($range_type) ?>');
});
});
</script>
<? $contact_cat = MvvContactRange::getCategoriesByRangetype($range_type); ?>
<div class="ordering" title="<?= _('Reihenfolge ändern') ?>">
<div class="nestable" data-max-depth="1">
<? if ($contacts): ?>
<ol class="dd-list">
<? foreach ($contacts as $contact): ?>
<li class="dd-item" data-id="<?= $contact->contact_id ?>_<?= $contact->category ?>">
<div class="dd-handle"><?= htmlReady($contact->name) ?> (<?= htmlReady($contact_cat[$contact->category]['name']) ?>)</div>
</li>
<? endforeach; ?>
</ol>
<? endif; ?>
</div>
</div>
<form class="default" id="order_form" action="<?= $controller->action_link('sort', $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>
|