Konfiguration auf yaml umgestellt
This commit is contained in:
1 parent
e74689c70f
commit
09c41821c8
7 files changed
+283
-123
No files matched your search
+23
-4
@@ -34,10 +34,17 @@
|
||||
<tr>
|
||||
<th>Bezeichnung</th>
|
||||
<th>Adresse</th>
|
||||
<th>Type</th>
|
||||
<th>Faktor</th>
|
||||
{% if table_id == "modbus_coils" %}
|
||||
<th>Write</th>
|
||||
{% else %}
|
||||
<th>Type</th>
|
||||
<th>Faktor</th>
|
||||
{% endif %}
|
||||
<th>MQTT</th>
|
||||
<th>InfluxDB</th>
|
||||
{% if table_id == "modbus_coils" %}
|
||||
<th>Kommentar</th>
|
||||
{% endif %}
|
||||
<th>Aktionen</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -47,8 +54,17 @@
|
||||
<tr data-row="{{ loop.index0 }}">
|
||||
<td><input type='text' class='text-input' data-field='key' value='{{ key }}' /></td>
|
||||
<td><input type='number' class='text-input' data-field='addr' value='{{ row.addr }}' /></td>
|
||||
<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>
|
||||
{% if table_id == "modbus_coils" %}
|
||||
<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>
|
||||
{% endif %}
|
||||
<td>
|
||||
<label class='switch'>
|
||||
<input type='checkbox' class='bool-input' data-field='mqtt' {% if row.mqtt %}checked{% endif %} />
|
||||
@@ -61,6 +77,9 @@
|
||||
<span class='slider'></span>
|
||||
</label>
|
||||
</td>
|
||||
{% if table_id == "modbus_coils" %}
|
||||
<td><input type='text' class='text-input' data-field='comment' value='{{ row.comment | default(value="") }}' /></td>
|
||||
{% endif %}
|
||||
<td>
|
||||
<button class="delete-btn" onclick="deleteRow(this)">🗑️</button>
|
||||
</td>
|
||||
|
||||
Reference in new issue
Block a user