feat: serve isolated companies below a fixed product path
All checks were successful
All checks were successful
Assistant: codex Assistant-Model: gpt-6-astra Assistant-Session: 01a07ff8-19d0-7820-b4d0-1353833cb7fc
This commit is contained in:
parent
09e2239bc6
commit
9345a1bb1a
28 changed files with 350 additions and 117 deletions
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
<div class="flex gap-2 mb-5 flex-wrap">
|
||||
{% for et in entity_types %}
|
||||
<a href="/felder/{{ et }}/"
|
||||
<a href="{% url 'feld_konfiguration_liste' entity_type=et %}"
|
||||
class="px-3 py-1 rounded text-sm {% if et == entity_type %}bg-brand-600 text-white{% else %}bg-slate-100 text-slate-700 hover:bg-slate-200{% endif %}">
|
||||
{{ et }}
|
||||
</a>
|
||||
|
|
|
|||
|
|
@ -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 %}
|
||||
|
|
|
|||
|
|
@ -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 %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue