Skip to content
Snippets Groups Projects
Commit c1b6ef53 authored by Elmar Ludwig's avatar Elmar Ludwig Committed by David Siegfried
Browse files

drop studip-checkbox CSS class, fixes #111

parent 4113494c
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,6 @@ export default {
},
props: {
id: String,
type: String,
total: {
type: Array,
required: true
......@@ -36,9 +35,6 @@ export default {
},
render (createElement) {
const checkbox = createElement('input', {
class: {
'studip-checkbox': this.type === 'studip'
},
attrs: {
type: 'checkbox',
name: this.name,
......@@ -53,23 +49,7 @@ export default {
}
});
if (this.type !== 'studip') {
return checkbox;
}
return createElement('span', {
style: {
display: 'contents',
},
}, [
checkbox,
createElement('label', {
attrs: {
for: this.proxyId
}
}),
]);
}
};
</script>
......@@ -99,18 +99,19 @@
: '' ?>"
data-range_id="<?= htmlReady($item['range_id']) ?>">
<td class="item-name">
<label>
<input type="checkbox"
name="selected_clipboard_items[]"
title="<?= _('Diesen Eintrag auswählen.') ?>"
value="<?= htmlReady($item['id']) ?>"
id="<?= htmlReady($checkbox_id) ?>"
<?= in_array($item['id'], $selected_clipboard_items)
? 'checked="checked"'
: (!$selected_clipboard_items
? 'checked="checked"'
: '') ?>
class="studip-checkbox">
<label for="<?= htmlReady($checkbox_id) ?>"><?= htmlReady($item['name']) ?></label>
>
<?= htmlReady($item['name']) ?>
</label>
</td>
<? if (!$readonly): ?>
<td class="item-actions">
......@@ -149,8 +150,7 @@
<input type="checkbox"
name="selected_clipboard_items[]"
value=""
class="studip-checkbox item-id">
<label></label>
class="item-id">
</td>
<? if (!$readonly): ?>
<td class="item-actions">
......@@ -192,9 +192,7 @@
<td>
<input type="checkbox"
name="clipboard_selected_items[]"
value=""
class="studip-checkbox">
<label></label>
value="">
</td>
<td>
<?= Icon::create('trash', 'clickable')->asImg(
......
......@@ -7,7 +7,6 @@
<? if ($element['type'] == 'checkbox'): ?>
<input type="checkbox" name="<?= htmlReady($element['name']) ?>"
value="<?= htmlReady($element['value']) ?>"
class="<?= '' /*studip-checkbox*/ ?>"
<?= $element['checked'] ? 'checked="checked"' : '' ?>>
<label for="<?= htmlReady($element['name']) ?>">
<?= htmlReady($element['label']) ?>
......
......@@ -31,19 +31,20 @@ if (!$item) {
<tr class="<?= htmlReady($classes) ?>"
data-range_id="<?= htmlReady($item['range_id']) ?>">
<td class="item-name">
<label>
<input type="checkbox"
name="selected_clipboard_items[]"
title="<?= _('Diesen Raum auswählen.') ?>"
value="<?= htmlReady($item['id']) ?>"
<?= $checkbox_id ? sprintf('id="%s"', htmlReady($checkbox_id)) : ''?>
<?= in_array($item['id'], $selected_clipboard_items)
? 'checked="checked"'
: (!$selected_clipboard_items
? 'checked="checked"'
: ''
) ?>
class="studip-checkbox">
<label for="<?= htmlReady($checkbox_id) ?>"></label><?= htmlReady($item['name']) ?>
>
<?= htmlReady($item['name']) ?>
</label>
</td>
<td class="item-actions">
<?
......
......@@ -38,7 +38,7 @@
*/
?>
<li class="item">
<input type="checkbox" class="special-item-switch studip-checkbox" value="1"
<input type="checkbox" class="special-item-switch" value="1"
title="<?= _('Kriterium ausgewählt'); ?>" id="cb_<?= htmlReady($criteria['name']); ?>"
name="<?= htmlReady($criteria['name'] . '_enabled')?>"
<?= $criteria['enabled'] ? 'checked="checked"' : ''?>>
......
......@@ -29,7 +29,7 @@
) ?>
<? endif ?>
<? if ($criteria['switch']): ?>
<input type="checkbox" class="special-item-switch studip-checkbox" value="1"
<input type="checkbox" class="special-item-switch" value="1"
title="<?= _('Kriterium ausgewählt'); ?>" id="cb_<?= htmlReady($criteria['name']); ?>"
name="<?= htmlReady($criteria['name'] . '_enabled')?>"
<?= $criteria['enabled'] ? 'checked="checked"' : ''?>>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment