mediasort/templates/moveform.html

46 lines
1.3 KiB
HTML
Raw Normal View History

2019-08-17 10:25:11 -07:00
{% extends "page.html" %}
2019-08-17 12:50:46 -07:00
{% block toolbar %}
2019-08-19 09:32:32 -07:00
<a class="nav-item is-active" href="/home">Back</a>
2019-08-17 12:50:46 -07:00
{% endblock %}
2019-08-19 09:32:32 -07:00
{% block main %}
2019-08-17 10:25:11 -07:00
<div class="moveform">
2019-08-19 09:32:32 -07:00
<header class="flex items-center py1 border-bottom">
<h1 class="m0">Move <span class="font-size-smaller">{{ torrent.name }} - {{ torrent.hash }}</span></h1>
</header>
<section class="mb3">
<ul>
{% for f in torrent.files %}
<li>{{ f.path }} - {{ f.size }} B</li> <!-- TODO nice size formatting-->
{% endfor %}
</ul>
</section>
2019-08-17 10:25:11 -07:00
<h2>Move {{ torrent.name }} </h2>
<p>{{ torrent.hash }}</p>
<fieldset>
<legend>current path</legend>
{{ torrent.save_path }}
</fieldset>
<br/>
<form action="/move" method="post">
2019-08-17 17:57:02 -07:00
<input type="hidden" name="tkey" value="{{ tkey }}">
2019-08-17 10:25:11 -07:00
<fieldset>
<legend>new path</legend>
<select name="dest">
<option value="" selected="selected">-</option>
{% for dest in options.movedests %}
<option value="{{ dest }}">{{ dest }}</option>
{% endfor %}
</select>
<label for="other">or: <input type="text" name="otherdest" /></label>
<input type="submit" value="go">
</fieldset>
</form>
</div>
2019-08-17 12:50:46 -07:00
{% endblock %}