Fix: Editable primary key in CSV preview

The primary key can no longer be edited in the CSV preview
This commit is contained in:
Candifloss 2025-04-07 12:33:09 +05:30
parent a9388a5176
commit eb7ecc63e7

View File

@ -64,8 +64,11 @@
{% for entry in entries %}
<tr>
{% for attrib in item_attributes %}
<td {% if editable %}contenteditable="true" class="editable-cell"{% endif %}>
<td {% if editable and not attrib.primary %}contenteditable="true" class="editable-cell"{% endif %}>
{{ entry[attrib.attrib_name] }}
{% if attrib.primary and editable %}
<input type="hidden" name="{{ attrib.attrib_name }}" value="{{ entry[attrib.attrib_name] }}">
{% endif %}
</td>
{% endfor %}
</tr>