feat: serve isolated companies below a fixed product path
All checks were successful
Application acceptance / application-tests (push) Successful in 1m12s
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 1s
Build and Publish Container Image / build-and-push (push) Successful in 25s

Assistant: codex
Assistant-Model: gpt-6-astra
Assistant-Session: 01a07ff8-19d0-7820-b4d0-1353833cb7fc
This commit is contained in:
tegwick 2026-09-11 21:29:26 +02:00
parent 09e2239bc6
commit 9345a1bb1a
28 changed files with 350 additions and 117 deletions

View file

@ -7,7 +7,7 @@
</div>
<div x-show="formOpen" x-cloak class="mb-4 bg-slate-50 border border-slate-200 rounded-lg p-3">
<form hx-post="/core/attrs/{{ ct_id }}/{{ oid }}/neu/"
<form hx-post="{% url 'custom_attribute_neu' content_type_id=ct_id object_id=oid %}"
hx-target="closest div[x-data]"
hx-swap="outerHTML"
class="space-y-2">
@ -39,19 +39,19 @@
<span class="text-slate-700 flex-1">{{ attr.value|default:"—" }}</span>
<span class="text-xs text-slate-400 bg-slate-100 rounded px-1.5">{{ attr.data_type }}</span>
<div class="flex gap-1">
<form hx-post="/core/attrs/{{ ct_id }}/{{ oid }}/{{ attr.pk }}/sort/"
<form hx-post="{% url 'custom_attribute_sort' content_type_id=ct_id object_id=oid attr_pk=attr.pk %}"
hx-target="closest div[x-data]" hx-swap="outerHTML" class="inline">
{% csrf_token %}
<input type="hidden" name="direction" value="up">
<button type="submit" class="text-slate-300 hover:text-slate-600 text-xs">↑</button>
</form>
<form hx-post="/core/attrs/{{ ct_id }}/{{ oid }}/{{ attr.pk }}/sort/"
<form hx-post="{% url 'custom_attribute_sort' content_type_id=ct_id object_id=oid attr_pk=attr.pk %}"
hx-target="closest div[x-data]" hx-swap="outerHTML" class="inline">
{% csrf_token %}
<input type="hidden" name="direction" value="down">
<button type="submit" class="text-slate-300 hover:text-slate-600 text-xs">↓</button>
</form>
<form hx-post="/core/attrs/{{ ct_id }}/{{ oid }}/{{ attr.pk }}/loeschen/"
<form hx-post="{% url 'custom_attribute_loeschen' content_type_id=ct_id object_id=oid attr_pk=attr.pk %}"
hx-target="closest div[x-data]" hx-swap="outerHTML" class="inline"
onsubmit="return confirm('Löschen?')">
{% csrf_token %}

View file

@ -1,7 +1,7 @@
<tr id="feld-{{ entity_type }}-{{ field_name }}" class="border-b border-slate-100 hover:bg-slate-50">
<td class="py-2 font-mono text-xs text-slate-700">{{ field_name }}</td>
<td class="py-2">
<form hx-post="/felder/{{ entity_type }}/{{ field_name }}/toggle/"
<form hx-post="{% url 'feld_konfiguration_toggle' entity_type=entity_type field_name=field_name %}"
hx-target="#feld-{{ entity_type }}-{{ field_name }}"
hx-swap="outerHTML"
class="flex items-center gap-2">
@ -14,7 +14,7 @@
</form>
</td>
<td class="py-2 text-center">
<form hx-post="/felder/{{ entity_type }}/{{ field_name }}/toggle/"
<form hx-post="{% url 'feld_konfiguration_toggle' entity_type=entity_type field_name=field_name %}"
hx-target="#feld-{{ entity_type }}-{{ field_name }}"
hx-swap="outerHTML">
{% csrf_token %}