CI Feature / test (push) Failing after 3m16s
Die Produktseite ist die Seite des Artikels (/shop/{id}), den die Option als einzige
Position verkauft, oder die Paketseite. Sie wird nicht mehr einem Programm zugeordnet.
Ein Kauf braucht genau eine Position und einen Preis, sonst lässt er sich nicht aktivieren.
Module und Programme werden dadurch nicht öffentlich (Karten und /programme unverändert).
Tests: Die Tests, die eine Programmseite als Produktseite voraussetzten, prüfen jetzt die
Artikelseite; die Zuordnung „eigene Paketseite oder Programmseite“ entfällt (ADR-52).
Ein Altbestandstest sichert die Programmseite für Angebote mit mehreren Positionen.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
40 lines
1.5 KiB
PHP
40 lines
1.5 KiB
PHP
@extends('layouts.site')
|
|
|
|
@section('title', $title)
|
|
|
|
@section('content')
|
|
<p><a href="{{ route('shop') }}">Shop</a></p>
|
|
<h1>{{ $title }}</h1>
|
|
@if ($profile->html('summary') !== '')
|
|
<div class="lede">{!! $profile->html('summary') !!}</div>
|
|
@elseif (filled($profile->value('teaser')))
|
|
<p class="lede">{{ $profile->value('teaser') }}</p>
|
|
@endif
|
|
@if ($profile->html('description') !== '')
|
|
<div class="shop-description">{!! $profile->html('description') !!}</div>
|
|
@endif
|
|
@if ($goal !== null)
|
|
<div><strong>Lernziel:</strong> {!! \App\Domain\Catalog\FormattedText::display($goal) !!}</div>
|
|
@endif
|
|
@if ($nodes !== [])
|
|
<section class="shop-package-contents" aria-labelledby="artikel-aufbau">
|
|
<h2 id="artikel-aufbau">Das ist enthalten</h2>
|
|
<ol class="course">
|
|
@foreach ($nodes as $node)
|
|
<li>
|
|
<h3>{{ $node->role }}: {{ $node->title }}</h3>
|
|
@if ($node->children !== [])
|
|
<ol>
|
|
@foreach ($node->children as $child)
|
|
<li>{{ $child->role }}: {{ $child->title }}</li>
|
|
@endforeach
|
|
</ol>
|
|
@endif
|
|
</li>
|
|
@endforeach
|
|
</ol>
|
|
</section>
|
|
@endif
|
|
@include('shop.optionen', ['options' => $options, 'cart' => $cart, 'switchTo' => $switchTo])
|
|
@endsection
|