2018-06-05 14:58:04 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
|
2018-08-02 08:44:47 +00:00
|
|
|
<title>Submit Paste - AIL</title>
|
|
|
|
<link rel="icon" href="{{ url_for('static', filename='image/ail-icon.png') }}">
|
2018-06-05 14:58:04 +00:00
|
|
|
|
|
|
|
<!-- Core CSS -->
|
|
|
|
<link href="{{ url_for('static', filename='css/bootstrap.min.css') }}" rel="stylesheet">
|
|
|
|
<link href="{{ url_for('static', filename='font-awesome/css/font-awesome.css') }}" rel="stylesheet">
|
|
|
|
<link href="{{ url_for('static', filename='css/sb-admin-2.css') }}" rel="stylesheet">
|
|
|
|
<link href="{{ url_for('static', filename='css/dygraph_gallery.css') }}" rel="stylesheet" type="text/css" />
|
|
|
|
<link href="{{ url_for('static', filename='css/tags.css') }}" rel="stylesheet" type="text/css" />
|
|
|
|
<!-- JS -->
|
|
|
|
<script type="text/javascript" src="{{ url_for('static', filename='js/dygraph-combined.js') }}"></script>
|
|
|
|
<script language="javascript" src="{{ url_for('static', filename='js/jquery.js')}}"></script>
|
|
|
|
<script src="{{ url_for('static', filename='js/jquery.flot.js') }}"></script>
|
|
|
|
<script src="{{ url_for('static', filename='js/jquery.flot.pie.js') }}"></script>
|
|
|
|
<script src="{{ url_for('static', filename='js/jquery.flot.time.js') }}"></script>
|
2018-06-11 08:21:11 +00:00
|
|
|
<script src="/static//js/bootstrap.min.js"></script>
|
2018-06-05 14:58:04 +00:00
|
|
|
<script src="{{ url_for('static', filename='js/tags.js') }}"></script>
|
|
|
|
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
2018-06-11 08:21:11 +00:00
|
|
|
{% include 'navbar.html' %}
|
|
|
|
|
|
|
|
<div id="page-wrapper">
|
|
|
|
<div class="row">
|
|
|
|
<!-- /.col-lg-12 -->
|
|
|
|
|
2018-07-16 08:32:41 +00:00
|
|
|
|
|
|
|
|
2018-06-11 08:21:11 +00:00
|
|
|
<form action="/PasteSubmit/submit" id="pasteSubmitForm" method="post" enctype=multipart/form-data onsubmit="submitPaste()">
|
|
|
|
|
|
|
|
<input type="hidden" id="tags_taxonomies" name="tags_taxonomies" value="test">
|
|
|
|
<input type="hidden" id="tags_galaxies" name="tags_galaxies" value="test">
|
|
|
|
|
|
|
|
<div class="panel panel-primary pull-left" style="width: 40%;">
|
|
|
|
<div class="panel-heading">Files submission
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
|
|
|
|
<div class="form-group">
|
2018-06-20 08:02:26 +00:00
|
|
|
<label for="file">Submit a file </label>
|
2018-06-11 08:21:11 +00:00
|
|
|
<input type="file" class="form-control-file" id="file" name="file">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="paste_name">Archive Password</label>
|
|
|
|
<input type="password" class="form-control" id="password" name="password" placeholder="Optionnal">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="panel panel-info pull-right" style="width: auto;">
|
|
|
|
<div class="panel-heading"> Tags :
|
|
|
|
<ul class="list-group">
|
|
|
|
<li class="list-group-item">
|
|
|
|
|
|
|
|
<div class="form-group input-group" >
|
|
|
|
<input id="ltags" style="width:450%;" type="text">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="btn-group btn-block">
|
|
|
|
<button type="button" class="btn btn-primary dropdown-toggle btn-block" data-toggle="dropdown">Taxonomie Selection
|
|
|
|
<i class="fa fa-chevron-down"></i>
|
|
|
|
</button>
|
|
|
|
<ul class="dropdown-menu scrollable-menu" role="menu">
|
|
|
|
<li><a href="#" id="all-tags-taxonomies">All Tags <i class="fa fa-tags"></i></a></li>
|
|
|
|
<li role="separator" class="divider"></li>
|
|
|
|
{% for taxo in active_taxonomies %}
|
|
|
|
<li><a href="#" id="{{ taxo }}-id{{ loop.index0 }}">{{ taxo }}</a></li>
|
|
|
|
{% endfor %}
|
2018-06-05 14:58:04 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
2018-06-11 08:21:11 +00:00
|
|
|
</li>
|
|
|
|
<li class="list-group-item">
|
2018-06-05 14:58:04 +00:00
|
|
|
|
2018-06-11 08:21:11 +00:00
|
|
|
<div class="form-group input-group" >
|
|
|
|
<input id="ltagsgalaxies" style="width:450%;" type="text">
|
|
|
|
</div>
|
2018-06-05 14:58:04 +00:00
|
|
|
|
2018-06-11 08:21:11 +00:00
|
|
|
<div class="btn-group btn-block">
|
|
|
|
<button type="button" class="btn btn-primary dropdown-toggle btn-block" data-toggle="dropdown">Galaxy Selection
|
|
|
|
<i class="fa fa-chevron-down"></i>
|
|
|
|
</button>
|
|
|
|
<ul class="dropdown-menu scrollable-menu" role="menu">
|
|
|
|
<li><a href="#" id="all-tags-galaxies">All Tags <i class="fa fa-tags"></i></a></li>
|
|
|
|
<li role="separator" class="divider"></li>
|
|
|
|
{% for galaxy in active_galaxies %}
|
|
|
|
<li><a href="#" id="{{ galaxy }}-idgalax{{ loop.index0 }}">{{ galaxy }}</a></li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<textarea class="form-control" id="paste_content" name="paste_content" rows="25"></textarea>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<button class="btn btn-primary " name="submit" type="submit">Submit this paste</button>
|
|
|
|
</div>
|
2018-06-05 14:58:04 +00:00
|
|
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<!-- /.row -->
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<!-- /#page-wrapper -->
|
2018-06-11 08:21:11 +00:00
|
|
|
</div>
|
2018-06-05 14:58:04 +00:00
|
|
|
|
|
|
|
</body>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
var ltags
|
|
|
|
var ltagsgalaxies
|
|
|
|
$(document).ready(function(){
|
|
|
|
|
|
|
|
$.getJSON('/Tags/get_all_tags_taxonomies',
|
|
|
|
function(data) {
|
|
|
|
|
|
|
|
ltags = $('#ltags').tagSuggest({
|
|
|
|
data: data,
|
|
|
|
maxDropHeight: 200,
|
|
|
|
name: 'ltags'
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
$.getJSON('/Tags/get_all_tags_galaxies',
|
|
|
|
function(data) {
|
|
|
|
|
|
|
|
ltagsgalaxies = $('#ltagsgalaxies').tagSuggest({
|
|
|
|
data: data,
|
|
|
|
maxDropHeight: 200,
|
|
|
|
name: 'ltagsgalaxies'
|
|
|
|
});
|
|
|
|
});
|
2018-06-11 08:21:11 +00:00
|
|
|
|
|
|
|
activePage = "page-PasteSubmit"
|
|
|
|
$("#"+activePage).addClass("active");
|
|
|
|
|
|
|
|
$('#modalsubmit').modal({backdrop: 'static'})
|
2018-06-05 14:58:04 +00:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
function submitPaste(){
|
|
|
|
document.getElementById("tags_taxonomies").value = ltags.getValue();
|
|
|
|
document.getElementById("tags_galaxies").value = ltagsgalaxies.getValue();
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
jQuery("#all-tags-taxonomies").click(function(e){
|
|
|
|
//change input tags list
|
|
|
|
$.getJSON('/Tags/get_all_tags_taxonomies',
|
|
|
|
function(data) {
|
|
|
|
ltags.setData(data)
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
</script>
|
|
|
|
<script>
|
|
|
|
jQuery("#all-tags-galaxies").click(function(e){
|
|
|
|
$.getJSON('/Tags/get_all_tags_galaxies',
|
|
|
|
function(data) {
|
|
|
|
ltagsgalaxies.setData(data)
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
{% for taxo in active_taxonomies %}
|
|
|
|
jQuery("#{{ taxo }}-id{{ loop.index0 }}").click(function(e){
|
|
|
|
$.getJSON('/Tags/get_tags_taxonomie?taxonomie={{ taxo }}',
|
|
|
|
function(data) {
|
|
|
|
ltags.setData(data)
|
|
|
|
});
|
|
|
|
});
|
|
|
|
{% endfor %}
|
|
|
|
</script>
|
|
|
|
<script>
|
|
|
|
{% for galaxy in active_galaxies %}
|
|
|
|
jQuery("#{{ galaxy }}-idgalax{{ loop.index0 }}").click(function(e){
|
|
|
|
$.getJSON('/Tags/get_tags_galaxy?galaxy={{ galaxy }}',
|
|
|
|
function(data) {
|
|
|
|
ltagsgalaxies.setData(data)
|
|
|
|
});
|
|
|
|
});
|
|
|
|
{% endfor %}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
</html>
|