2016-09-06 01:12:46 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html manifest="cache.manifest">
|
|
|
|
<head>
|
|
|
|
<title>MySC</title>
|
|
|
|
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
|
|
|
|
<meta name="mobile-web-app-capable" content="yes">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=0">
|
|
|
|
<link rel="shortcut icon" href="favicon.png">
|
|
|
|
<link rel="shortcut icon" sizes="196x196" href="icon-196x196.png">
|
|
|
|
<link rel="shortcut icon" sizes="128x128" href="icon-128x128.png">
|
|
|
|
<link rel="apple-touch-icon" sizes="128x128" href="icon-128x128.png">
|
|
|
|
<link rel="apple-touch-icon-precomposed" sizes="128x128" href="icon-128x128.png">
|
|
|
|
<!-- Bootstrap -->
|
|
|
|
|
2017-09-17 19:50:59 +02:00
|
|
|
<!-- Latest compiled and minified CSS -->
|
|
|
|
<link rel="stylesheet" href="inc/lib/bootstrap/css/bootstrap.min.css">
|
2016-09-06 01:12:46 +02:00
|
|
|
|
2017-09-17 19:50:59 +02:00
|
|
|
<!-- Optional theme -->
|
2017-09-17 23:19:00 +02:00
|
|
|
<link rel="stylesheet" href="inc/lib/bootstrap/css/bootstrap.superhero.min.css">
|
2016-09-07 19:06:11 +02:00
|
|
|
|
2017-09-17 19:50:59 +02:00
|
|
|
<link rel="stylesheet" href="inc/main.css">
|
|
|
|
</head>
|
2016-09-06 01:12:46 +02:00
|
|
|
|
|
|
|
<body>
|
|
|
|
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
|
|
|
|
<div class="container">
|
|
|
|
<div class="navbar-header">
|
|
|
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-top-collapse">
|
|
|
|
<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" id='app-name'>MySC</a>
|
|
|
|
</div>
|
|
|
|
<div class="collapse navbar-collapse" id="navbar-top-collapse">
|
|
|
|
<ul class="nav navbar-nav navbar-right">
|
|
|
|
<li class="menu menu-scases"><a href="#add_scase" id="add_scase_btn"><span class="glyphicon glyphicon-plus-sign"></span> Ajouter une valise</a></li>
|
2017-09-17 18:55:25 +02:00
|
|
|
<li class="menu menu-scases"><a href="#scases_trash" id="scases_trash_btn"><span class="glyphicon glyphicon-trash"></span> Voir la corbeille</a></li>
|
2016-09-06 01:12:46 +02:00
|
|
|
<li class="menu menu-scase"><a href="#scases" id="back_to_scases"><span class="glyphicon glyphicon-briefcase"></span> Liste des valises</a></li>
|
|
|
|
<li class="menu menu-scase dropdown">
|
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class='glyphicon glyphicon-tag'></span> Gérer la valise <b class="caret"></b></a>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<li><a href="#add_cat" id="add_cat_btn"><span class="glyphicon glyphicon-plus-sign"></span> Ajouter une catégorie</a></li>
|
|
|
|
<li class="divider"></li>
|
|
|
|
<li><a href="#rename_scase" id="rename_scase_btn"><span class="glyphicon glyphicon-edit"></span> Renommer la valise</a></li>
|
|
|
|
<li><a href="#copy_scase" id="copy_scase_btn"><span class="glyphicon glyphicon-duplicate"></span> Copier la valise</a></li>
|
2016-09-07 00:30:25 +02:00
|
|
|
<li><a href="#reset_scase" id="reset_scase_btn"><span class="glyphicon glyphicon-cog"></span> Réinitialiser la valise</a></li>
|
2016-09-06 01:12:46 +02:00
|
|
|
<li><a href="#delete_scase" id="delete_scase_btn"><span class="glyphicon glyphicon-trash"></span> Supprimer la valise</a></li>
|
2017-09-17 18:55:25 +02:00
|
|
|
<li class="divider"></li>
|
|
|
|
<li><a href="#scase_trash" id="scase_trash_btn"><span class="glyphicon glyphicon-trash"></span> Voir la corbeille de la valise</a></li>
|
2016-09-06 01:12:46 +02:00
|
|
|
</ul>
|
|
|
|
</li>
|
2017-10-25 01:31:23 +02:00
|
|
|
<li class="dropdown">
|
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class='glyphicon glyphicon-hdd'></span> Gérer vos données <b class="caret"></b></a>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<li><a id='export_local_data' href='#' download='mysc_export.json'><span class='glyphicon glyphicon-save'></span> Sauvegarder vos données</a></li>
|
|
|
|
<li><a id='import_local_data' href='#' download='mysc_export.json'><span class='glyphicon glyphicon-open'></span> Restaurer vos données</a></li>
|
|
|
|
<li class="divider"></li>
|
|
|
|
<li><a id='clear_local_data'><span class='glyphicon glyphicon-trash'></span> Purger les données locales</a></li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
2016-09-06 01:12:46 +02:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="container" id="content"></div>
|
|
|
|
|
|
|
|
|
2017-09-09 23:32:29 +02:00
|
|
|
<div class="modal" id="add_scase_modal" tabindex="-1" role="dialog" aria-labelledby="addSCaseModal" aria-hidden="true">
|
2016-09-06 01:12:46 +02:00
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
|
|
|
<h4 class="modal-title">Ajouter une valise</h4>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<form class="form-horizontal" role="form">
|
|
|
|
<div class="form-group">
|
|
|
|
<input type='text' id='add_scase_name' class="form-control" placeholder="Nom de la valise"/>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Annuler</button>
|
|
|
|
<button type="button" class="btn btn-primary" id='add_scase_submit'>Ajouter</button>
|
|
|
|
</div>
|
|
|
|
</div><!-- /.modal-content -->
|
|
|
|
</div><!-- /.modal-dialog -->
|
|
|
|
</div>
|
|
|
|
|
2017-09-09 23:32:29 +02:00
|
|
|
<div class="modal" id="copy_scase_modal" tabindex="-1" role="dialog" aria-labelledby="copySCaseModal" aria-hidden="true">
|
2016-09-06 01:12:46 +02:00
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
|
|
|
<h4 class="modal-title">Copier une valise</h4>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<form class="form-horizontal" role="form">
|
|
|
|
<div class="form-group">
|
|
|
|
<input type='text' id='copy_scase_name' class="form-control" placeholder="Nom de la nouvelle valise"/>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Annuler</button>
|
|
|
|
<button type="button" class="btn btn-primary" id='copy_scase_submit'>Copier</button>
|
|
|
|
</div>
|
|
|
|
</div><!-- /.modal-content -->
|
|
|
|
</div><!-- /.modal-dialog -->
|
|
|
|
</div>
|
|
|
|
|
2017-09-09 23:32:29 +02:00
|
|
|
<div class="modal" id="rename_scase_modal" tabindex="-1" role="dialog" aria-labelledby="renameSCaseModal" aria-hidden="true">
|
2016-09-06 01:12:46 +02:00
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
|
|
|
<h4 class="modal-title">Renomer la valise</h4>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<form class="form-horizontal" role="form">
|
|
|
|
<div class="form-group">
|
|
|
|
<input type='text' id='rename_scase_name' class="form-control" placeholder="Nom de la nouvelle valise"/>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Annuler</button>
|
|
|
|
<button type="button" class="btn btn-primary" id='rename_scase_submit'>Renomer</button>
|
|
|
|
</div>
|
|
|
|
</div><!-- /.modal-content -->
|
|
|
|
</div><!-- /.modal-dialog -->
|
|
|
|
</div>
|
|
|
|
|
2017-09-09 23:32:29 +02:00
|
|
|
<div class="modal" id="add_cat_modal" tabindex="-1" role="dialog" aria-labelledby="addCatModal" aria-hidden="true">
|
2016-09-06 01:12:46 +02:00
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
|
|
|
<h4 class="modal-title">Ajouter une catégorie</h4>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<form class="form-horizontal" role="form">
|
|
|
|
<div class="form-group">
|
|
|
|
<input type='text' id='add_cat_name' class="form-control" placeholder="Nom de la catégorie"/>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Annuler</button>
|
|
|
|
<button type="button" class="btn btn-primary" id='add_cat_submit'>Ajouter</button>
|
|
|
|
</div>
|
|
|
|
</div><!-- /.modal-content -->
|
|
|
|
</div><!-- /.modal-dialog -->
|
|
|
|
</div>
|
|
|
|
|
2017-09-09 23:32:29 +02:00
|
|
|
<div class="modal" id="rename_cat_modal" tabindex="-1" role="dialog" aria-labelledby="renameCatModal" aria-hidden="true">
|
2016-09-06 01:12:46 +02:00
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
|
|
|
<h4 class="modal-title">Renommer une catégorie</h4>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<form class="form-horizontal" role="form">
|
|
|
|
<div class="form-group">
|
|
|
|
<input type='text' id='rename_cat_name' class="form-control" placeholder="Nouveau nom de la catégorie"/>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Annuler</button>
|
|
|
|
<button type="button" class="btn btn-primary" id='rename_cat_submit'>Renommer</button>
|
|
|
|
</div>
|
|
|
|
</div><!-- /.modal-content -->
|
|
|
|
</div><!-- /.modal-dialog -->
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2017-09-09 23:32:29 +02:00
|
|
|
<div class="modal" id="add_thing_modal" tabindex="-1" role="dialog" aria-labelledby="addThingModal" aria-hidden="true">
|
2016-09-06 01:12:46 +02:00
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
|
|
|
<h4 class="modal-title">Ajouter un élément</h4>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
2017-09-17 12:18:45 +02:00
|
|
|
<form role="form">
|
|
|
|
<div class="form-group">
|
2017-09-17 19:43:57 +02:00
|
|
|
<input type='text' class='form-control add_thing_label' placeholder="Nom de l'élément"/>
|
|
|
|
<input type='number' class='form-control add_thing_nb' placeholder="Nb"/>
|
2017-09-17 12:18:45 +02:00
|
|
|
</div>
|
2016-09-06 01:12:46 +02:00
|
|
|
<div class="form-group">
|
2017-09-17 19:43:57 +02:00
|
|
|
<input type='text' class='form-control add_thing_label' placeholder="Un autre ?"/>
|
|
|
|
<input type='number' class='form-control add_thing_nb' placeholder="Nb"/>
|
2016-09-06 01:12:46 +02:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Annuler</button>
|
|
|
|
<button type="button" class="btn btn-primary" id='add_thing_submit'>Ajouter</button>
|
|
|
|
</div>
|
|
|
|
</div><!-- /.modal-content -->
|
|
|
|
</div><!-- /.modal-dialog -->
|
|
|
|
</div>
|
|
|
|
|
2017-09-17 19:43:57 +02:00
|
|
|
<div class="modal" id="edit_thing_modal" tabindex="-1" role="dialog" aria-labelledby="editThingModal" aria-hidden="true">
|
2016-09-06 01:12:46 +02:00
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
2017-09-17 19:43:57 +02:00
|
|
|
<h4 class="modal-title">Modifier un élément</h4>
|
2016-09-06 01:12:46 +02:00
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<form class="form-horizontal" role="form">
|
|
|
|
<div class="form-group">
|
2017-09-17 19:43:57 +02:00
|
|
|
<input type='text' id='edit_thing_label' class="form-control" placeholder="Nouveau nom de l'élément"/>
|
|
|
|
<input type='number' id='edit_thing_nb' class="form-control" placeholder="Nb"/>
|
2016-09-06 01:12:46 +02:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Annuler</button>
|
2017-09-17 19:43:57 +02:00
|
|
|
<button type="button" class="btn btn-primary" id='edit_thing_submit'>Modifier</button>
|
2016-09-06 01:12:46 +02:00
|
|
|
</div>
|
|
|
|
</div><!-- /.modal-content -->
|
|
|
|
</div><!-- /.modal-dialog -->
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2017-09-09 23:32:29 +02:00
|
|
|
<div class="modal" id="please_wait_modal" tabindex="-1" role="dialog" aria-labelledby="pleaseWaitModal" aria-hidden="true" data-keyboard='false' data-backdrop='static'>
|
2016-09-06 01:12:46 +02:00
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<h2 class="modal-title">Chargement...</h2>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<div class="progress progress-striped active">
|
|
|
|
<div class="progress-bar" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%">
|
|
|
|
<span class="sr-only">Chargement...</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div><!-- /.modal-content -->
|
|
|
|
</div><!-- /.modal-dialog -->
|
|
|
|
</div>
|
|
|
|
|
2017-09-09 23:32:29 +02:00
|
|
|
<div class="modal" id="confirm_modal" tabindex="-1" role="dialog" aria-labelledby="confirmModal" aria-hidden="true">
|
2016-09-06 01:12:46 +02:00
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close cancel" aria-hidden="true">×</button>
|
|
|
|
<h4 class="modal-title">Confirmation</h4>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<p id='question'></p>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-default cancel">Annuler</button>
|
|
|
|
<button type="button" class="btn btn-primary" id='confirm_modal_submit'>Valider</button>
|
|
|
|
</div>
|
|
|
|
</div><!-- /.modal-content -->
|
|
|
|
</div><!-- /.modal-dialog -->
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
|
|
|
|
<script src="inc/lib/jquery.min.js"></script>
|
|
|
|
<!-- Latest compiled and minified JavaScript -->
|
|
|
|
<script src="inc/lib/bootstrap/js/bootstrap.js"></script>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
2016-09-08 01:23:15 +02:00
|
|
|
<script src="inc/lib/uuid.js"></script>
|
2016-09-06 01:12:46 +02:00
|
|
|
<script src="inc/mydialog.js"></script>
|
|
|
|
<script src="inc/mysc_objects.js"></script>
|
|
|
|
<script src="inc/main.js"></script>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|