trying out form to add new internet radio url

workspace
Brendan Howell 4 years ago
parent d107a45797
commit cb0510db80

@ -105,7 +105,19 @@ class Audio(Bureau):
if data["addurl"]: if data["addurl"]:
self.save_url(data["addurl"]) self.save_url(data["addurl"])
ret += "<div>New station " + data["addurl"] + " saved!</div>\n" ret += "<div>New station " + data["addurl"] + " saved!</div>\n"
ret += "</body></html>" ret += """
<form action='/AU/radio' method='POST'>
<ul>
<li>
<label for="addurl">Add Radio Station URL:</label>
<input type="text" id="addurl" name="addurl" />
</li>
<li class="button">
<button type="submit">Save</button>
</li>
</ul>
</form>
</body></html>"""
return ret return ret

Loading…
Cancel
Save