write-Eigenschaft nun auch an holding-Register

This commit is contained in:
eneuber committed 2026-03-11 21:26:41 +01:00
1 parent 825547889c
commit 497a0e48e3
5 files changed
+168 -757

No files matched your search

+13
View File
@@ -37,6 +37,10 @@
<th>Adresse</th>
{% if table_id == "modbus_coils" %}
<th>Write</th>
{% elif table_id == "modbus_holding_registers" or table_id == "modbus_holding_register" %}
<th>Type</th>
<th>Faktor</th>
<th>Write</th>
{% else %}
<th>Type</th>
<th>Faktor</th>
@@ -63,6 +67,15 @@
<span class='slider'></span>
</label>
</td>
{% elif table_id == "modbus_holding_registers" or table_id == "modbus_holding_register" %}
<td><input type='text' class='text-input' data-field='type' value='{{ row.type | default(value="") }}' /></td>
<td><input type='text' class='text-input' data-field='factor' value='{{ row.factor | default(value="") }}' /></td>
<td>
<label class='switch'>
<input type='checkbox' class='bool-input' data-field='write' {% if row.write %}checked{% endif %} />
<span class='slider'></span>
</label>
</td>
{% else %}
<td><input type='text' class='text-input' data-field='type' value='{{ row.type | default(value="") }}' /></td>
<td><input type='text' class='text-input' data-field='factor' value='{{ row.factor | default(value="") }}' /></td>