Skip to content
Snippets Groups Projects
Commit 73482db3 authored by Moritz Strohm's avatar Moritz Strohm
Browse files

fix for BIESt 4009, fixes #4009

Closes #4009

Merge request studip/studip!2865
parent 3d4b1124
No related branches found
No related tags found
No related merge requests found
......@@ -24,6 +24,11 @@ if (!$selected_terms_of_use_id) {
aria-description="<?= htmlReady(kill_format($content_terms_of_use_entry->description)) ?>">
<label for="content_terms_of_use-<?= htmlReady($content_terms_of_use_entry->id) ?>">
<?= Icon::create('radiobutton-unchecked')->asImg(24, ['class' => 'arrow']) ?>
<?= Icon::create('radiobutton-checked')->asImg(24, ['class' => 'check']) ?>
<div class="text">
<?= htmlReady($content_terms_of_use_entry->name) ?>
</div>
<div class="icon">
<? if ($content_terms_of_use_entry['icon']) : ?>
<? if (filter_var($content_terms_of_use_entry['icon'], FILTER_VALIDATE_URL)): ?>
......@@ -33,11 +38,6 @@ if (!$selected_terms_of_use_id) {
<? endif ?>
<? endif ?>
</div>
<div class="text">
<?= htmlReady($content_terms_of_use_entry->name) ?>
</div>
<?= Icon::create('arr_1down', Icon::ROLE_CLICKABLE)->asImg(24, ['class' => 'arrow']) ?>
<?= Icon::create('check-circle', Icon::ROLE_CLICKABLE)->asImg(32, ['class' => 'check']) ?>
</label>
<? if (trim($content_terms_of_use_entry->description)): ?>
......
......@@ -27,20 +27,19 @@
id="folder-type-<?= htmlReady($folder_type['class']) ?>"
<? if ($folder_type['class'] === get_class($folder)) echo 'checked'; ?>>
<label for="folder-type-<?= htmlReady($folder_type['class']) ?>">
<div class="icon">
<? if ($folder_type['icon']) : ?>
<?= $folder_type['icon']->asImg(32) ?>
<? endif ?>
</div>
<?= Icon::create('radiobutton-unchecked')->asImg(24, ['class' => 'arrow']) ?>
<?= Icon::create('radiobutton-checked')->asImg(24, ['class' => 'check']) ?>
<div class="text">
<?= htmlReady($folder_type['name']) ?>
<? if ($template = $folder_type['instance']->getDescriptionTemplate()): ?>
<?= tooltipIcon($template instanceof Flexi_Template ? $template->render() : $template, false, true) ?>
<? endif; ?>
<? endif ?>
</div>
<div class="icon">
<? if ($folder_type['icon']) : ?>
<?= $folder_type['icon']->asImg(32) ?>
<? endif ?>
</div>
<?= Icon::create('arr_1down')->asImg(24, ['class' => 'arrow']) ?>
<?= Icon::create('check-circle')->asImg(32, ['class' => 'check']) ?>
</label>
<? if ($folder_type['class'] === get_class($folder)) : ?>
<? $folder_template = $folder->getEditTemplate() ?>
......
......@@ -406,19 +406,20 @@ form.default {
display: flex;
justify-content: space-between;
align-items: center;
padding: 6px 6px 2px;
padding: 0 10px 0;
margin-bottom: 0;
border-top: none;
> .text {
width: 100%;
margin-left: 10px;
}
> .arrow {
margin-right: 5px;
}
> .check {
display: none;
}
> .icon {
margin-top: 6px;
}
}
> label:first-of-type {
border-top: 1px solid var(--content-color-40);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment