Speichere formatierte Texte als bereinigtes HTML mit einem Editor (ADR-50)
Ein Baustein (FormattedText) bereinigt, bringt Werte in die kanonische Form und wandelt Klartext des Altbestands; RichField ist der eine Editor, ManagesRichFields verbindet ihn mit den Arbeitsplätzen. Formatiert sind Texte der Übungen und Textbausteine, Kurzbeschreibung und Beschreibung, Lernziel und Ausstattung. Mitgliederansicht und PDF zeigen fett, kursiv, Listen, Überschrift, Zitat und Link (PDF: schräge Schnitte, nur wenn gebraucht). Das Livewire-Limit für verschachtelte Pfade steigt auf 30, weil Aufzählungen sonst abgelehnt werden. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
be24f3bf64
commit
9fbd933e1e
50 files changed
+1461
-181
No files matched your search
@@ -10,7 +10,7 @@
|
||||
--}}
|
||||
@section('content')
|
||||
@php
|
||||
$hasOverview = filled($description) || filled($learning_goal);
|
||||
$hasOverview = filled($description_html) || filled($learning_goal);
|
||||
$hasUse = filled($material_note);
|
||||
$facts = [];
|
||||
if ($module_count > 0) {
|
||||
@@ -40,8 +40,8 @@
|
||||
<div class="mb-detail-copy">
|
||||
<x-member.type :type="$is_module ? 'modul' : 'programm'" :label="$kind" />
|
||||
<h1 class="mb-title">{{ $title }} <x-brand.underline class="mb-title-line" /></h1>
|
||||
@if (filled($summary))
|
||||
<p class="mb-lede">{{ $summary }}</p>
|
||||
@if (filled($summary_html))
|
||||
<div class="mb-lede mb-prose">{!! $summary_html !!}</div>
|
||||
@endif
|
||||
<ul class="mb-facts">
|
||||
@foreach ($facts as $fact)
|
||||
@@ -69,17 +69,17 @@
|
||||
@endif
|
||||
|
||||
@if ($hasOverview)
|
||||
<section class="mb-section mb-overview {{ filled($description) && filled($learning_goal) ? '' : 'mb-overview-single' }}" id="ueberblick" aria-label="Überblick">
|
||||
@if (filled($description))
|
||||
<section class="mb-section mb-overview {{ filled($description_html) && filled($learning_goal) ? '' : 'mb-overview-single' }}" id="ueberblick" aria-label="Überblick">
|
||||
@if (filled($description_html))
|
||||
<div class="mb-overview-text">
|
||||
<h2 id="ueberblick-titel">Darum geht es</h2>
|
||||
<div class="mb-prose">{!! nl2br(e($description)) !!}</div>
|
||||
<div class="mb-prose">{!! $description_html !!}</div>
|
||||
</div>
|
||||
@endif
|
||||
@if (filled($learning_goal))
|
||||
<aside class="mb-goal" aria-labelledby="lernziel-titel">
|
||||
<h3 id="lernziel-titel"><x-heroicon-o-check-circle aria-hidden="true" /> Lernziele</h3>
|
||||
<div class="mb-prose">{!! nl2br(e($learning_goal)) !!}</div>
|
||||
<div class="mb-prose">{!! \App\Domain\Catalog\FormattedText::display($learning_goal) !!}</div>
|
||||
</aside>
|
||||
@endif
|
||||
</section>
|
||||
@@ -104,7 +104,7 @@
|
||||
<h2 id="einsatz-titel">Einsatz & Vorbereitung</h2>
|
||||
<div class="mb-note-card">
|
||||
<h3>Material</h3>
|
||||
<div class="mb-prose">{!! nl2br(e($material_note)) !!}</div>
|
||||
<div class="mb-prose">{!! \App\Domain\Catalog\FormattedText::display($material_note) !!}</div>
|
||||
</div>
|
||||
</section>
|
||||
@endif
|
||||
|
||||
Reference in new issue
Block a user