Fix formatting issues in web interface
This commit is contained in:
parent
36027414d8
commit
c770b01370
@ -2,8 +2,8 @@
|
|||||||
<ul>
|
<ul>
|
||||||
{% for subdirname in music_library.get_subdirs(path) %}
|
{% for subdirname in music_library.get_subdirs(path) %}
|
||||||
{%- set subdirpath = path + subdirname + '/' %}
|
{%- set subdirpath = path + subdirname + '/' %}
|
||||||
<li>{{ subdirname }}/ <form method="post"><input type=text value={{ subdirpath }} name="add_folder" hidden><input type="submit" value="Add all tracks from this folder"></form>
|
<li>{{ subdirname }}/ <form method="post"><input type="text" value="{{ subdirpath }}" name="add_folder" hidden><input type="submit" value="Add all tracks from this folder"></form>
|
||||||
<form method="post"><input type=text value={{ subdirpath }} name="add_folder_recursively" hidden><input type="submit" value="Add all tracks from this folder (recursively)"></form></li>
|
<form method="post"><input type="text" value="{{ subdirpath }}" name="add_folder_recursively" hidden><input type="submit" value="Add all tracks from this folder (recursively)"></form></li>
|
||||||
{%- set subdirs = music_library.get_subdirs(subdirpath) %}
|
{%- set subdirs = music_library.get_subdirs(subdirpath) %}
|
||||||
{%- if subdirs %}
|
{%- if subdirs %}
|
||||||
{%- for subdir in subdirs %}
|
{%- for subdir in subdirs %}
|
||||||
@ -15,7 +15,7 @@
|
|||||||
{%- if files %}
|
{%- if files %}
|
||||||
{% for file in files %}
|
{% for file in files %}
|
||||||
<!--<li>{{ file }}</li>-->
|
<!--<li>{{ file }}</li>-->
|
||||||
<li><form method="post"><input type=text value="{{ subdirpath }}/{{ file }}" name="add_file" hidden><input type="submit" value="Add"> {{ file }}</form></li>
|
<li><form method="post"><input type="text" value="{{ subdirpath }}/{{ file }}" name="add_file" hidden><input type="submit" value="Add"> {{ file }}</form></li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
</ul>
|
</ul>
|
||||||
@ -56,12 +56,12 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
<br>
|
<br>
|
||||||
Playlist :
|
Playlist :
|
||||||
<form method="post"><input type=text value="randomize" name="action" hidden><input type="submit" value="Randomize playlist"></form>
|
<form method="post"><input type="text" value="randomize" name="action" hidden><input type="submit" value="Randomize playlist"></form>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
{% for m in playlist %}
|
{% for m in playlist %}
|
||||||
<li>{{ m }}
|
<li>{{ m }}
|
||||||
<form method="post"><input type=text value="{{ m }}" name="delete_music" hidden><input type="submit" value="X"></form>
|
<form method="post"><input type="text" value="{{ m }}" name="delete_music" hidden><input type="submit" value="X"></form>
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user