blob: f55f73d44c91ab2e26a8758a8e3ed19c84a95a92 (
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
<div id="clipboard-group-container" class="<?= $clipboards ? '' : 'invisible' ?>">
<?= $this->render_partial(
'sidebar/clipboard-area.php',
[
'clipboards' => $clipboards,
'allowed_item_class' => $allowed_item_class,
'empty_clipboard_string' => _('Ziehen Sie Räume in diesen Bereich um die Raumgruppe zu füllen.'),
'selected_clipboard_id' => $selected_clipboard_id,
'draggable_items' => $draggable_items,
'special_item_template' => 'sidebar/room-clipboard-item',
'clipboard_widget_id' => $clipboard_widget_id
]
); ?>
<ul class="widget-list widget-links invisible">
<? foreach ($elements as $index => $element): ?>
<li id="<?= htmlReady($index) ?>" <?= $element->icon ? 'style="' . $element->icon->asCSS() .'"' : '' ?>>
<?= $element->render() ?>
</li>
<? endforeach; ?>
</ul>
</div>
<form class="default new-clipboard-form"
action="<?= URLHelper::getLink(
'dispatch.php/clipboard/add'
)?>"
method="post">
<?= CSRFProtection::tokenTag() ?>
<input type="hidden" name="allowed_item_class"
value="<?= htmlReady($allowed_item_class) ?>">
<input type="hidden" name="widget_id"
value="<?= htmlReady($clipboard_widget_id) ?>">
<label>
<?= _('Raumgruppe hinzufügen') ?>
<?= tooltipIcon(_('Geben Sie bitte einen Namen ein und klicken Sie auf das Plus-Symbol um eine neue Raumgruppe zu erstellen.')) ?>
<input type="text" name="name" placeholder="<?= _('Name der neuen Raumgruppe') ?>">
<?= Icon::create('add')->asInput([
'name' => 'save',
'id' => 'add-clipboard-button',
'class' => 'middle',
'disabled' => 'disabled',
'title' => _('Hinzufügen'),
]) ?>
</label>
</form>
|