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>
36 lines
1.7 KiB
PHP
36 lines
1.7 KiB
PHP
@extends('layouts.site')
|
|
|
|
@section('title', 'Shop')
|
|
|
|
@section('content')
|
|
<h1>Shop</h1>
|
|
<p class="lede">Hier findest du kaufbare Produkte und Pakete. Jede Kachel öffnet die Produktseite mit Inhalt und den verfügbaren Lizenzoptionen.</p>
|
|
|
|
<form class="shop-search" method="get" action="{{ route('shop') }}" role="search">
|
|
<label for="shop-suche">Shop durchsuchen</label>
|
|
<input id="shop-suche" type="search" name="suche" value="{{ $term }}" autocomplete="off">
|
|
<button class="button" type="submit">Suchen</button>
|
|
@if ($term !== '')
|
|
<a class="button button-quiet" href="{{ route('shop') }}">Suche zurücksetzen</a>
|
|
@endif
|
|
</form>
|
|
|
|
@if ($cards === [])
|
|
<div class="empty">
|
|
<h2>{{ $term !== '' ? 'Keine Treffer' : 'Noch keine kaufbaren Produkte' }}</h2>
|
|
<p>{{ $term !== '' ? 'Zu „'.$term.'“ gibt es keine kaufbaren Produkte. Prüfe die Schreibweise oder setze die Suche zurück.' : 'Sobald ein Angebot aktiv ist, erscheint es hier.' }}</p>
|
|
</div>
|
|
@else
|
|
<p class="shop-count" role="status">{{ count($cards) }} {{ count($cards) === 1 ? 'Produkt' : 'Produkte' }}</p>
|
|
<ul class="shop-tiles">
|
|
@foreach ($cards as $card)
|
|
<li class="shop-tile">
|
|
<h2><a href="{{ $card['url'] }}">{{ $card['title'] }}</a></h2>
|
|
@if ($card['teaser'] !== '')<p>{{ $card['teaser'] }}</p>@endif
|
|
<p class="shop-tile-price">ab {{ $card['from'] }} · {{ $card['count'] }} {{ $card['count'] === 1 ? 'Lizenzoption' : 'Lizenzoptionen' }}</p>
|
|
</li>
|
|
@endforeach
|
|
</ul>
|
|
@endif
|
|
@endsection
|