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