Use new based theme on bootstrap

This commit is contained in:
ssamson-tis
2015-07-03 16:18:48 +02:00
parent 464c9dd9b1
commit ba022d64d3
16 changed files with 442 additions and 667 deletions
+94 -95
View File
@@ -1,103 +1,102 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 2.5 License
<!DOCTYPE html>
<html lang="en"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="/static/images/favicon.ico">
Name : Indication
Description: A two-column, fixed-width design with dark color scheme.
Version : 1.0
Released : 20090910
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Tisbackup GUI</title>
<!-- Styles -->
<link rel="stylesheet" type="text/css" href="/static/styles/jquery.dataTables.css">
<link rel="stylesheet" type="text/css" href="/static/styles/style.css">
<link rel="stylesheet" type="text/css" href="/static/styles/bootstrap.min.css">
<!-- Scripts -->
<script type=text/javascript src="/static/js/jquery.min.js"></script>
<script type=text/javascript src="/static/js/jquery.dataTables.js"></script>
<script type=text/javascript src="/static/js/bootbox.js"></script>
<script type=text/javascript src="/static/js/bootstrap.min.js"></script>
</head>
<body background='/static/images/bg_body.gif'>
<div id="wrapper">
<div id="header">
<div id="logo">
<h1><a href="/">TIS Backup GUI</a></h1>
<p> design by Hübert</p>
</div>
</div>
<!-- end #header -->
<div id="menu">
<ul>
<li><a href="/">Backups</a></li>
<li><a href="/export_backup">Export Backup</a></li>
<li><a href="/last_backups">Last Backups</a></li>
</ul>
</div>
<!-- end #menu -->
<div id="page">
<div id="page-bgtop">
<div id="page-bgbtm">
<div id="choix_conf" style="float:right;margin-top:5px;">
Choix du fichier de configuration :
<select id="config">
</select> </div>
<div id="content">
<div class="post">
{% block content %}
<div id="mouter">
<div id="minner">
<p>Hello World</p>
</div>
</div>
{% endblock %}
</div>
<!-- Bootstrap core CSS -->
<link href="/static/styles/bootstrap.css" rel="stylesheet">
<div style="clear: both;">&nbsp;</div>
</div>
<!-- Custom styles for this template -->
<link href="/static/styles/offcanvas.css" rel="stylesheet">
<script src="/static/js/jquery.js"></script>
<script src="/static/js/bootstrap.js"></script>
<div style="clear: both;">&nbsp;</div>
</head>
<body>
<nav class="navbar navbar-fixed-top navbar-inverse">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<!--<a class="navbar-brand" href="#">TIS Backup GUI</a>-->
<a class="navbar-brand" href="#"><img style=" margin-top:-13px;"
src="/static/images/tisbackup.png"></a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li {% if request.path == "/" %}class="active"{% endif %} ><a href="/">Backups</a></li>
<li {% if request.path == "/export_backup" %}class="active"{% endif %}><a href="/export_backup">Export Backups</a></li>
<li {% if request.path == "/last_backups" %}class="active"{% endif %}><a href="/last_backups">Last backups</a></li>
<li ><select class="form-control hidden" id="choix_conf" style=" margin-top:8px;">
</select>
</li>
</ul>
</div><!-- /.nav-collapse -->
</div><!-- /.container -->
</nav><!-- /.navbar -->
<!-- end #page -->
</div>
</div>
<!-- end #footer -->
</div>
<div id="footer">
<p>Copyright (c) 2012 Tranquil IT Systems. All rights reserved. Design by <a href="http://www.tranquil-it-systems.fr/">TIS</a>.</p>
</div>
<script>
function configs(){
$.getJSON("/config_number/", function(data) {
if ( data.configs.length == 1){
$("#choix_conf").hide();
return 0;
}
$.each(data.configs, function(key,val){
if (key == data.config_number)
$('#config').append('<option vaulue="'+key+'" selected>'+val+'</option>');
else
$('#config').append('<option vaulue="'+key+'">'+val+'</option>');
});
});
$( "#config" ).change(function() {
$.get( "/config_number/"+this.selectedIndex, function( data ) {location.reload();});
});
};
configs();
</script>
<div class="container">
<div class="row">
{% block content %}
{% endblock %}
</body>
</html>
</div><!--/row-->
<hr>
<footer>
<p>Copyright (c) 2015 Tranquil IT Systems. All rights reserved. Design by TIS.</p>
</footer>
</div><!--/.container-->
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<!-- <script src="/static/js/jquery.js"></script> -->
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="/static/js/ie10-viewport-bug-workaround.js"></script>
<script src="/static/js/offcanvas.js"></script>
<script>
function configs(){
$.getJSON("/config_number/", function(data) {
if ( data.configs.length > 1){
$('#choix_conf').removeClass('hidden');
$("#choix_conf").show();
$.each(data.configs, function(key,val){
if (key == data.config_number)
$('#choix_conf').append('<option vaulue="'+key+'" selected>'+val+'</option>');
else
$('#choix_conf').append('<option vaulue="'+key+'">'+val+'</option>');
});
}
});
$( "#choix_conf" ).change(function() {
$.get( "/config_number/"+this.selectedIndex, function( data ) {location.reload();});
});
};
configs();
</script>
</body></html>