TorrentIndexer/templates/bootstrapshit/create.html

45 lines
1.6 KiB
HTML
Raw Normal View History

<!--
vim: ts=2 noexpandtab
-->
{% extends "index.html" %}
{% block title %}{{ super() }} - Create{% endblock%}
{% set active_page = "create" %}
{% block content %}
<script type="text/javascript">
var global_categories = {{json.dumps(categories)|safe}};
</script>
<script type="text/javascript" src="{{ url_for ("static", filename="js/create.js") }}" ></script>
<div class="create_container" >
<h4>Add new torrent</h4>
<ul class="list-group">
<li class="list-group-item">
<div class="input-group">
<span class="input-group-addon" id="basic-addon1">Torrent name</span>
<input type="text" class="form-control" aria-describedby="basic-addon1">
</div>
</li>
<li class="list-group-item">
<div class="dropdown">
<button class="btn btn-default dropdown-toggle" type="button" id="categories" data-toggle="dropdown" aria-expanded="true">
{{getLocalString("english", "please_choose")}}
<span class="caret"></span>
</button>
<ul class="dropdown-menu" id="categories_list" role="menu" aria-labelledby="dropdownMenu1">
</ul>
</div>
<br/>
<div class="dropdown">
<button class="btn btn-default dropdown-toggle" type="button" id="subcategory" data-toggle="dropdown" aria-expanded="true">
{{getLocalString("english", "please_choose")}}
<span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1" id="subcategory_list">
<li role="presentation"><a role="menuitem" tabindex="-1" href="#">{{getLocalString("english", subcat)}}</a></li>
</ul>
</div>
</li>
</ul>
</div>
{% endblock content%}