aboutsummaryrefslogtreecommitdiff
path: root/templates/sidebar
diff options
context:
space:
mode:
authorDavid Siegfried <david.siegfried@uni-vechta.de>2022-08-20 12:40:20 +0000
committerDavid Siegfried <david.siegfried@uni-vechta.de>2022-08-20 12:40:20 +0000
commit2c78a0dc9bf533cfdd57971553d85bec81ca30d1 (patch)
treedf9961d6cc9bbc0c082821a954d9a03c00c83215 /templates/sidebar
parent97d455a336a4a0e7c0dfd2e4a722abfbce5fa194 (diff)
replace RoomClipboardWidget with SelectWidget, closes #236
Closes #236 Merge request studip/studip!911
Diffstat (limited to 'templates/sidebar')
-rw-r--r--templates/sidebar/clipboard-area.php31
-rw-r--r--templates/sidebar/room-clipboard-item.php19
2 files changed, 5 insertions, 45 deletions
diff --git a/templates/sidebar/clipboard-area.php b/templates/sidebar/clipboard-area.php
index dd8f676..4a4adf5 100644
--- a/templates/sidebar/clipboard-area.php
+++ b/templates/sidebar/clipboard-area.php
@@ -79,21 +79,7 @@
? 'draggable'
: '' ?>"
data-range_id="<?= htmlReady($item['range_id']) ?>">
- <td>
- <label>
- <input type="checkbox"
- name="selected_clipboard_items[]"
- title="<?= sprintf(_('%s auswählen.'), htmlReady($item['name'])) ?>"
- value="<?= htmlReady($item['id']) ?>"
- <?= in_array($item['id'], $selected_clipboard_items)
- ? 'checked="checked"'
- : (!$selected_clipboard_items
- ? 'checked="checked"'
- : '') ?>
- >
- <?= htmlReady($item['name']) ?>
- </label>
- </td>
+ <td class="item-name"><?= htmlReady($item['name']) ?></td>
<td class="actions">
<?= Icon::create('trash')->asInput(
[
@@ -126,12 +112,7 @@
: ''
?> clipboard-item-template invisible"
data-range_id="">
- <td class="item-name">
- <input type="checkbox"
- name="selected_clipboard_items[]"
- value=""
- class="item-id">
- </td>
+ <td class="item-name"></td>
<td class="item-actions">
<?= Icon::create('trash')->asInput(
[
@@ -169,13 +150,7 @@
: ''
?> clipboard-item-template invisible"
data-range_id="">
- <td>
- <input type="checkbox"
- name="selected_clipboard_items[]"
- title="<?= _('Diesen Eintrag auswählen.') ?>"
- value="">
- <label></label>
- </td>
+ <td class="item-name"></td>
<td>
<?= Icon::create('trash')->asInput(
[
diff --git a/templates/sidebar/room-clipboard-item.php b/templates/sidebar/room-clipboard-item.php
index caccb71..a433c9d 100644
--- a/templates/sidebar/room-clipboard-item.php
+++ b/templates/sidebar/room-clipboard-item.php
@@ -30,26 +30,11 @@ if (!$item) {
?>
<tr class="<?= htmlReady($classes) ?>"
data-range_id="<?= htmlReady($item['range_id']) ?>">
- <td>
- <label>
- <input type="checkbox"
- name="selected_clipboard_items[]"
- title="<?= _('Diesen Raum auswählen.') ?>"
- value="<?= htmlReady($item['id']) ?>"
- <?= in_array($item['id'], $selected_clipboard_items)
- ? 'checked="checked"'
- : (!$selected_clipboard_items
- ? 'checked="checked"'
- : ''
- ) ?>
- >
- <?= htmlReady($item['name']) ?>
- </label>
- </td>
+ <td class="item-name"><?= htmlReady($item['name']) ?></td>
<td class="actions">
<a href="<?= Room::getLinkForAction('show', ($item ? $item['range_id'] : 'RANGE_ID')) ?>" data-dialog>
<?= Icon::create(
- 'info',
+ 'info-circle',
Icon::ROLE_CLICKABLE,
[
'title' => _('Rauminformationen'),