mirror of
https://github.com/fHDHR/fHDHR_NextPVR.git
synced 2025-12-06 05:36:59 -05:00
Merge pull request #130 from deathbybandaid/dev
Repair Tab/Space issues in Templates
This commit is contained in:
commit
d915e4cbed
@ -49,8 +49,8 @@
|
|||||||
<td>
|
<td>
|
||||||
{% if chan_dict["enabled"] %}
|
{% if chan_dict["enabled"] %}
|
||||||
<a href="{{ chan_dict["m3u_url"] }}">Play</a>
|
<a href="{{ chan_dict["m3u_url"] }}">Play</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
<a href="{{ chan_dict["m3u_url"] }}" style="visibility:hidden">Play</a>
|
<a href="{{ chan_dict["m3u_url"] }}" style="visibility:hidden">Play</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
|||||||
@ -38,8 +38,8 @@
|
|||||||
element.value = 0
|
element.value = 0
|
||||||
|
|
||||||
items = document.select(".channels")
|
items = document.select(".channels")
|
||||||
chanlist = []
|
chanlist = []
|
||||||
chandict = {}
|
chandict = {}
|
||||||
|
|
||||||
for element in items:
|
for element in items:
|
||||||
if element.name == "id":
|
if element.name == "id":
|
||||||
@ -100,16 +100,16 @@
|
|||||||
<td><input type="text" class="channels" name="number" value="{{ chan_dict["number"] }}"></td>
|
<td><input type="text" class="channels" name="number" value="{{ chan_dict["number"] }}"></td>
|
||||||
<td><input type="text" class="channels" name="thumbnail" value="{{ chan_dict["thumbnail"] }}"></td>
|
<td><input type="text" class="channels" name="thumbnail" value="{{ chan_dict["thumbnail"] }}"></td>
|
||||||
{% if chan_dict["enabled"] %}
|
{% if chan_dict["enabled"] %}
|
||||||
<td><input type="checkbox" class="channels" name="enabled" value=True checked></td>
|
<td><input type="checkbox" class="channels" name="enabled" value=True checked></td>
|
||||||
{% else %}
|
{% else %}
|
||||||
<td><input type="checkbox" class="channels" name="enabled" value=True ></td>
|
<td><input type="checkbox" class="channels" name="enabled" value=True ></td>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if chan_dict["favorite"] %}
|
{% if chan_dict["favorite"] %}
|
||||||
<td><input type="checkbox" class="channels" name="favorite" value=1 checked></td>
|
<td><input type="checkbox" class="channels" name="favorite" value=1 checked></td>
|
||||||
{% else %}
|
{% else %}
|
||||||
<td><input type="checkbox" class="channels" name="favorite" value=1 ></td>
|
<td><input type="checkbox" class="channels" name="favorite" value=1 ></td>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<td>
|
<td>
|
||||||
<form method="post" action="/api/channels?method=update&redirect=/channels_editor">
|
<form method="post" action="/api/channels?method=update&redirect=/channels_editor">
|
||||||
<input type="hidden" class="reset" name="id" value="{{ chan_dict["id"] }}">
|
<input type="hidden" class="reset" name="id" value="{{ chan_dict["id"] }}">
|
||||||
<input type="hidden" class="reset" name="name" value="{{ chan_dict["origin_name"] }}">
|
<input type="hidden" class="reset" name="name" value="{{ chan_dict["origin_name"] }}">
|
||||||
@ -119,7 +119,7 @@
|
|||||||
<input type="hidden" class="reset" name="enabled" value=True>
|
<input type="hidden" class="reset" name="enabled" value=True>
|
||||||
<input type="submit" value="Reset">
|
<input type="submit" value="Reset">
|
||||||
</form>
|
</form>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|||||||
@ -36,7 +36,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>{{ config_item }}</td>
|
<td>{{ config_item }}</td>
|
||||||
<td>{{ web_settings_dict[config_section][config_item]["value_default"] }}</td>
|
<td>{{ web_settings_dict[config_section][config_item]["value_default"] }}</td>
|
||||||
<td>
|
<td>
|
||||||
<form method="post" action="/api/settings?method=update&redirect=/settings">
|
<form method="post" action="/api/settings?method=update&redirect=/settings">
|
||||||
<input type="hidden" name="config_section" value="{{ config_section }}">
|
<input type="hidden" name="config_section" value="{{ config_section }}">
|
||||||
<input type="hidden" name="config_name" value="{{ config_item }}">
|
<input type="hidden" name="config_name" value="{{ config_item }}">
|
||||||
@ -47,17 +47,17 @@
|
|||||||
<input type="text" size="25" name="config_value" value="{{ web_settings_dict[config_section][config_item]["value"] }}">
|
<input type="text" size="25" name="config_value" value="{{ web_settings_dict[config_section][config_item]["value"] }}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
<td style="display:flex;">
|
<td style="display:flex;">
|
||||||
<span style="margin:auto">
|
<span style="margin:auto">
|
||||||
<input type="submit" value="Update">
|
<input type="submit" value="Update">
|
||||||
</form>
|
</form>
|
||||||
</span>
|
</span>
|
||||||
<form style="margin:auto">
|
<form style="margin:auto">
|
||||||
<input type="hidden" name="config_section" value="{{ config_section }}">
|
<input type="hidden" name="config_section" value="{{ config_section }}">
|
||||||
<input type="hidden" name="config_name" value="{{ config_item }}">
|
<input type="hidden" name="config_name" value="{{ config_item }}">
|
||||||
<input type="hidden" name="config_value" value="{{ web_settings_dict[config_section][config_item]["value_default"] }}">
|
<input type="hidden" name="config_value" value="{{ web_settings_dict[config_section][config_item]["value_default"] }}">
|
||||||
<input type="hidden" name="config_default" value="{{ web_settings_dict[config_section][config_item]["value_default"] }}">
|
<input type="hidden" name="config_default" value="{{ web_settings_dict[config_section][config_item]["value_default"] }}">
|
||||||
<input type="submit" value="Reset">
|
<input type="submit" value="Reset">
|
||||||
</form>
|
</form>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
<table class="table-medium center action-col">
|
<table class="table-medium center action-col">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Status</th>
|
<th>Status</th>
|
||||||
<th>Channel</th>
|
<th>Channel</th>
|
||||||
<th>Method</th>
|
<th>Method</th>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user