Skip to content

Instantly share code, notes, and snippets.

@renamedquery
Last active July 23, 2020 19:19
Show Gist options
  • Save renamedquery/0b289ce7c839bf5d16bfe172708018bf to your computer and use it in GitHub Desktop.
Save renamedquery/0b289ce7c839bf5d16bfe172708018bf to your computer and use it in GitHub Desktop.
<form action = "{{ url_for('WEB_MANAGESUBSCRIPTION') }}" method = 'POST'>
<div class = 'container-fluid'>
<p>Add a new subscription</p>
<div class = 'input-group d-flex justify-content-center row m-0'>
<div class = 'col-lg-12 p-0'>
<input name = 'url' type = 'text' class = 'form-control col-12 rounded' placeholder = 'Playlist/Channel URL'>
</div>
<div class = 'col-lg-6 p-0'>
<select class = 'custom-select form-control rounded col-12' name = 'format'>
<option value = 'best'>Best Audio and Video (YouTube)</option>
<optgroup label = 'Video'>
<option value = 'bestvideo'>Best Video (YouTube)</option>
<option value = 'mp4'>MP4 (YouTube)</option>
</optgroup>
<optgroup label = 'Audio'>
<option value = 'bestaudio'>Best Audio (YouTube)</option>
<option value = 'm4a'>M4A (YouTube)</option>
</optgroup>
</select>
</div>
<div class = 'col-lg-6 p-0'>
<button class = 'btn btn-primary col-12' type = 'submit' id = 'button-submit'>Create new subscription</button>
</div>
</div>
<input name = 'action' type = 'text' class = 'hidden' value = 'add'>
</div>
</form>
<form action = "{{ url_for('WEB_MANAGESUBSCRIPTION') }}" method = 'POST'>
<div>
<p>Add a new subscription</p>
<div class = 'input-group d-flex justify-content-center row m-0'>
<input name = 'url' type = 'text' class = 'form-control col-12 rounded' placeholder = 'Playlist/Channel URL'>
</div>
<div class = 'input-group d-flex justify-content-center row m-0'>
<select class = 'custom-select form-control col-6 rounded' name = 'format'>
<option value = 'best'>Best Audio and Video (YouTube)</option>
<optgroup label = 'Video'>
<option value = 'bestvideo'>Best Video (YouTube)</option>
<option value = 'mp4'>MP4 (YouTube)</option>
</optgroup>
<optgroup label = 'Audio'>
<option value = 'bestaudio'>Best Audio (YouTube)</option>
<option value = 'm4a'>M4A (YouTube)</option>
</optgroup>
</select>
<button class = 'btn btn-primary col-6' type = 'submit' id = 'button-submit'>Create new subscription</button>
<input name = 'action' type = 'text' class = 'hidden' value = 'add'>
</div>
</div>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment