2015-02-05 22:38:39 +01:00
|
|
|
<!--
|
|
|
|
vim: ts=2 noexpandtab
|
|
|
|
-->
|
|
|
|
{% extends "index.html" %}
|
2015-02-15 03:48:39 +01:00
|
|
|
{% block title %}{{ super() }} - {{ getLocalString(language, "create") }}{% endblock%}
|
2015-02-12 22:06:31 +01:00
|
|
|
{% set active_page = "create" %}
|
2015-02-05 22:38:39 +01:00
|
|
|
{% block content %}
|
2015-02-15 03:48:39 +01:00
|
|
|
<link href="{{ url_for("static", filename="css/create.css") }}" rel="stylesheet">
|
|
|
|
<script src="{{ url_for("static", filename="js/create.js") }}"></script>
|
2015-02-14 00:17:40 +01:00
|
|
|
<div>
|
2015-02-15 03:48:39 +01:00
|
|
|
<h2 class="headline">{{ getLocalString(language, "create_new_torrent") }}</h2>
|
|
|
|
<!--
|
2015-02-14 00:17:40 +01:00
|
|
|
<div class="alert alert-danger alert-dismissible" role="alert">
|
|
|
|
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
|
|
<strong>Warning!</strong> Better check yourself, you're not looking too good.
|
|
|
|
</div>
|
2015-02-15 03:48:39 +01:00
|
|
|
-->
|
|
|
|
|
|
|
|
<form action="/create" method="post" enctype="multipart/form-data">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-4 labelColumn">
|
|
|
|
<strong>{{ getLocalString(language, "torrent_file") }}</strong>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-8">
|
|
|
|
<input name="torrentFile" class="tfile" type="file" size="50" maxlength="100000" accept="text/*" onchange="setButtonToFilename(event)">
|
|
|
|
</div>
|
2015-02-14 00:17:40 +01:00
|
|
|
</div>
|
2015-02-15 03:48:39 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-4 labelColumn">
|
|
|
|
<strong>{{ getLocalString(language, "category") }}</strong>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-8">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-6">
|
|
|
|
<div class="dropdown">
|
|
|
|
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-expanded="true">
|
|
|
|
<span class="text">{{ getLocalString(language, "category") }}</span>
|
|
|
|
<span class="caret"></span>
|
|
|
|
</button>
|
|
|
|
<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
|
|
|
|
{% for category in sorted(categories.keys()) %}
|
|
|
|
<li role="presentation"><a role="menuitem" tabindex="-1" href="#">{{ getLocalString(language, category) }}</a></li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
2015-02-14 00:17:40 +01:00
|
|
|
</div>
|
2015-02-15 03:48:39 +01:00
|
|
|
<div class="col-md-6">
|
|
|
|
<div class="dropdown">
|
|
|
|
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-expanded="true" disabled>
|
|
|
|
<span class="text">{{ getLocalString(language, "subcategory") }}</span>
|
|
|
|
<span class="caret"></span>
|
|
|
|
</button>
|
|
|
|
<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
|
|
|
|
</ul>
|
|
|
|
</div>
|
2015-02-14 00:17:40 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-02-15 03:48:39 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-4 labelColumn">
|
|
|
|
<strong>Audio-Quality</strong>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-8">
|
|
|
|
<div class="btn-group" data-toggle="buttons">
|
|
|
|
<label class="btn btn-default">
|
|
|
|
<input type="checkbox" autocomplete="off"><span class="glyphicon glyphicon-subtitles" aria-hidden="true"></span> Subs</input>
|
|
|
|
</label>
|
|
|
|
<label class="btn btn-default">
|
|
|
|
<input type="checkbox" autocomplete="off"><span class="glyphicon glyphicon-sound-stereo" aria-hidden="true"></span> Stereo</input>
|
|
|
|
</label>
|
|
|
|
<label class="btn btn-default">
|
|
|
|
<input type="checkbox" autocomplete="off"><span class="glyphicon glyphicon-sound-5-1" aria-hidden="true"></span> 5.1</input>
|
|
|
|
</label>
|
|
|
|
<label class="btn btn-default">
|
|
|
|
<input type="checkbox" autocomplete="off"><span class="glyphicon glyphicon-sound-5-1" aria-hidden="true"></span> 6.1</input>
|
|
|
|
</label>
|
|
|
|
<label class="btn btn-default">
|
|
|
|
<input type="checkbox" autocomplete="off"><span class="glyphicon glyphicon-sound-7-1" aria-hidden="true"></span> 7.1</input>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-02-14 00:17:40 +01:00
|
|
|
</div>
|
2015-02-15 03:48:39 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-4 labelColumn">
|
|
|
|
<strong>{{ getLocalString(language, "name") }}</strong>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-8">
|
|
|
|
<input type="text" name="name" class="form-control" placeholder="e.g. Attack of the Killer Tomatoes" aria-describedby="basic-addon1">
|
|
|
|
</div>
|
2015-02-14 00:17:40 +01:00
|
|
|
</div>
|
2015-02-15 03:48:39 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-4 labelColumn">
|
|
|
|
<strong>{{ getLocalString(language, "description") }}</strong>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-8">
|
|
|
|
<textarea name="description" class="form-control" rows="10"></textarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<button type="submit" class="btn btn-default"><span class="glyphicon glyphicon-plus" aria-hidden="true"></span> {{ getLocalString(language, "create") }}!</button>
|
|
|
|
</form>
|
2015-02-14 00:17:40 +01:00
|
|
|
</div>
|
2015-02-05 22:38:39 +01:00
|
|
|
{% endblock content%}
|