Fix: Editable primary key in CSV preview
The primary key can no longer be edited in the CSV preview
This commit is contained in:
parent
a9388a5176
commit
eb7ecc63e7
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user