index.html 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. <!DOCTYPE html>
  2. <html manifest="cache.manifest">
  3. <head>
  4. <title>MySC</title>
  5. <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
  6. <meta name="mobile-web-app-capable" content="yes">
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=0">
  8. <link rel="shortcut icon" href="favicon.png">
  9. <link rel="shortcut icon" sizes="196x196" href="icon-196x196.png">
  10. <link rel="shortcut icon" sizes="128x128" href="icon-128x128.png">
  11. <link rel="apple-touch-icon" sizes="128x128" href="icon-128x128.png">
  12. <link rel="apple-touch-icon-precomposed" sizes="128x128" href="icon-128x128.png">
  13. <!-- Bootstrap -->
  14. <!-- Latest compiled and minified CSS -->
  15. <link rel="stylesheet" href="inc/lib/bootstrap/css/bootstrap.min.css">
  16. <!-- Optional theme -->
  17. <link rel="stylesheet" href="inc/lib/bootstrap/css/bootstrap.superhero.min.css">
  18. <link rel="stylesheet" href="inc/main.css">
  19. </head>
  20. <body>
  21. <div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
  22. <div class="container">
  23. <div class="navbar-header">
  24. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-top-collapse">
  25. <span class="sr-only">Toggle navigation</span>
  26. <span class="icon-bar"></span>
  27. <span class="icon-bar"></span>
  28. <span class="icon-bar"></span>
  29. </button>
  30. <a class="navbar-brand" id='app-name'>MySC</a>
  31. </div>
  32. <div class="collapse navbar-collapse" id="navbar-top-collapse">
  33. <ul class="nav navbar-nav navbar-right">
  34. <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>
  35. <li class="menu menu-scases"><a href="#scases_trash" id="scases_trash_btn"><span class="glyphicon glyphicon-trash"></span> Voir la corbeille</a></li>
  36. <li class="menu menu-scase"><a href="#scases" id="back_to_scases"><span class="glyphicon glyphicon-briefcase"></span> Liste des valises</a></li>
  37. <li class="menu menu-scase dropdown">
  38. <a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class='glyphicon glyphicon-tag'></span> Gérer la valise <b class="caret"></b></a>
  39. <ul class="dropdown-menu">
  40. <li><a href="#add_cat" id="add_cat_btn"><span class="glyphicon glyphicon-plus-sign"></span> Ajouter une catégorie</a></li>
  41. <li class="divider"></li>
  42. <li><a href="#rename_scase" id="rename_scase_btn"><span class="glyphicon glyphicon-edit"></span> Renommer la valise</a></li>
  43. <li><a href="#copy_scase" id="copy_scase_btn"><span class="glyphicon glyphicon-duplicate"></span> Copier la valise</a></li>
  44. <li><a href="#reset_scase" id="reset_scase_btn"><span class="glyphicon glyphicon-cog"></span> Réinitialiser la valise</a></li>
  45. <li><a href="#delete_scase" id="delete_scase_btn"><span class="glyphicon glyphicon-trash"></span> Supprimer la valise</a></li>
  46. <li class="divider"></li>
  47. <li><a href="#scase_trash" id="scase_trash_btn"><span class="glyphicon glyphicon-trash"></span> Voir la corbeille de la valise</a></li>
  48. </ul>
  49. </li>
  50. <li class="dropdown">
  51. <a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class='glyphicon glyphicon-hdd'></span> Gérer vos données <b class="caret"></b></a>
  52. <ul class="dropdown-menu">
  53. <li><a id='export_local_data' href='#' download='mysc_export.json'><span class='glyphicon glyphicon-save'></span> Sauvegarder vos données</a></li>
  54. <li><a id='import_local_data' href='#' download='mysc_export.json'><span class='glyphicon glyphicon-open'></span> Restaurer vos données</a></li>
  55. <li class="divider"></li>
  56. <li><a id='clear_local_data'><span class='glyphicon glyphicon-trash'></span> Purger les données locales</a></li>
  57. </ul>
  58. </li>
  59. <li><a id='update_app'><span class='glyphicon glyphicon-refresh'></span> Mise à jour de l'application</a></li>
  60. </ul>
  61. </div>
  62. </div>
  63. </div>
  64. <div class="container" id="content"></div>
  65. <div class="modal" id="add_scase_modal" tabindex="-1" role="dialog" aria-labelledby="addSCaseModal" aria-hidden="true">
  66. <div class="modal-dialog">
  67. <div class="modal-content">
  68. <div class="modal-header">
  69. <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
  70. <h4 class="modal-title">Ajouter une valise</h4>
  71. </div>
  72. <div class="modal-body">
  73. <form class="form-horizontal" role="form">
  74. <div class="form-group">
  75. <input type='text' id='add_scase_name' class="form-control" placeholder="Nom de la valise"/>
  76. </div>
  77. </form>
  78. </div>
  79. <div class="modal-footer">
  80. <button type="button" class="btn btn-default" data-dismiss="modal">Annuler</button>
  81. <button type="button" class="btn btn-primary" id='add_scase_submit'>Ajouter</button>
  82. </div>
  83. </div><!-- /.modal-content -->
  84. </div><!-- /.modal-dialog -->
  85. </div>
  86. <div class="modal" id="copy_scase_modal" tabindex="-1" role="dialog" aria-labelledby="copySCaseModal" aria-hidden="true">
  87. <div class="modal-dialog">
  88. <div class="modal-content">
  89. <div class="modal-header">
  90. <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
  91. <h4 class="modal-title">Copier une valise</h4>
  92. </div>
  93. <div class="modal-body">
  94. <form class="form-horizontal" role="form">
  95. <div class="form-group">
  96. <input type='text' id='copy_scase_name' class="form-control" placeholder="Nom de la nouvelle valise"/>
  97. </div>
  98. </form>
  99. </div>
  100. <div class="modal-footer">
  101. <button type="button" class="btn btn-default" data-dismiss="modal">Annuler</button>
  102. <button type="button" class="btn btn-primary" id='copy_scase_submit'>Copier</button>
  103. </div>
  104. </div><!-- /.modal-content -->
  105. </div><!-- /.modal-dialog -->
  106. </div>
  107. <div class="modal" id="rename_scase_modal" tabindex="-1" role="dialog" aria-labelledby="renameSCaseModal" aria-hidden="true">
  108. <div class="modal-dialog">
  109. <div class="modal-content">
  110. <div class="modal-header">
  111. <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
  112. <h4 class="modal-title">Renomer la valise</h4>
  113. </div>
  114. <div class="modal-body">
  115. <form class="form-horizontal" role="form">
  116. <div class="form-group">
  117. <input type='text' id='rename_scase_name' class="form-control" placeholder="Nom de la nouvelle valise"/>
  118. </div>
  119. </form>
  120. </div>
  121. <div class="modal-footer">
  122. <button type="button" class="btn btn-default" data-dismiss="modal">Annuler</button>
  123. <button type="button" class="btn btn-primary" id='rename_scase_submit'>Renomer</button>
  124. </div>
  125. </div><!-- /.modal-content -->
  126. </div><!-- /.modal-dialog -->
  127. </div>
  128. <div class="modal" id="add_cat_modal" tabindex="-1" role="dialog" aria-labelledby="addCatModal" aria-hidden="true">
  129. <div class="modal-dialog">
  130. <div class="modal-content">
  131. <div class="modal-header">
  132. <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
  133. <h4 class="modal-title">Ajouter une catégorie</h4>
  134. </div>
  135. <div class="modal-body">
  136. <form class="form-horizontal" role="form">
  137. <div class="form-group">
  138. <input type='text' id='add_cat_name' class="form-control" placeholder="Nom de la catégorie"/>
  139. </div>
  140. </form>
  141. </div>
  142. <div class="modal-footer">
  143. <button type="button" class="btn btn-default" data-dismiss="modal">Annuler</button>
  144. <button type="button" class="btn btn-primary" id='add_cat_submit'>Ajouter</button>
  145. </div>
  146. </div><!-- /.modal-content -->
  147. </div><!-- /.modal-dialog -->
  148. </div>
  149. <div class="modal" id="rename_cat_modal" tabindex="-1" role="dialog" aria-labelledby="renameCatModal" aria-hidden="true">
  150. <div class="modal-dialog">
  151. <div class="modal-content">
  152. <div class="modal-header">
  153. <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
  154. <h4 class="modal-title">Renommer une catégorie</h4>
  155. </div>
  156. <div class="modal-body">
  157. <form class="form-horizontal" role="form">
  158. <div class="form-group">
  159. <input type='text' id='rename_cat_name' class="form-control" placeholder="Nouveau nom de la catégorie"/>
  160. </div>
  161. </form>
  162. </div>
  163. <div class="modal-footer">
  164. <button type="button" class="btn btn-default" data-dismiss="modal">Annuler</button>
  165. <button type="button" class="btn btn-primary" id='rename_cat_submit'>Renommer</button>
  166. </div>
  167. </div><!-- /.modal-content -->
  168. </div><!-- /.modal-dialog -->
  169. </div>
  170. <div class="modal" id="add_thing_modal" tabindex="-1" role="dialog" aria-labelledby="addThingModal" aria-hidden="true">
  171. <div class="modal-dialog">
  172. <div class="modal-content">
  173. <div class="modal-header">
  174. <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
  175. <h4 class="modal-title">Ajouter un élément</h4>
  176. </div>
  177. <div class="modal-body">
  178. <form role="form">
  179. <div class="form-group">
  180. <input type='text' class='form-control add_thing_label' placeholder="Nom de l'élément"/>
  181. <input type='number' class='form-control add_thing_nb' placeholder="Nb"/>
  182. </div>
  183. <div class="form-group">
  184. <input type='text' class='form-control add_thing_label' placeholder="Un autre ?"/>
  185. <input type='number' class='form-control add_thing_nb' placeholder="Nb"/>
  186. </div>
  187. </form>
  188. </div>
  189. <div class="modal-footer">
  190. <button type="button" class="btn btn-default" data-dismiss="modal">Annuler</button>
  191. <button type="button" class="btn btn-primary" id='add_thing_submit'>Ajouter</button>
  192. </div>
  193. </div><!-- /.modal-content -->
  194. </div><!-- /.modal-dialog -->
  195. </div>
  196. <div class="modal" id="edit_thing_modal" tabindex="-1" role="dialog" aria-labelledby="editThingModal" aria-hidden="true">
  197. <div class="modal-dialog">
  198. <div class="modal-content">
  199. <div class="modal-header">
  200. <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
  201. <h4 class="modal-title">Modifier un élément</h4>
  202. </div>
  203. <div class="modal-body">
  204. <form class="form-horizontal" role="form">
  205. <div class="form-group">
  206. <input type='text' id='edit_thing_label' class="form-control" placeholder="Nouveau nom de l'élément"/>
  207. <input type='number' id='edit_thing_nb' class="form-control" placeholder="Nb"/>
  208. </div>
  209. </form>
  210. </div>
  211. <div class="modal-footer">
  212. <button type="button" class="btn btn-default" data-dismiss="modal">Annuler</button>
  213. <button type="button" class="btn btn-primary" id='edit_thing_submit'>Modifier</button>
  214. </div>
  215. </div><!-- /.modal-content -->
  216. </div><!-- /.modal-dialog -->
  217. </div>
  218. <div class="modal" id="please_wait_modal" tabindex="-1" role="dialog" aria-labelledby="pleaseWaitModal" aria-hidden="true" data-keyboard='false' data-backdrop='static'>
  219. <div class="modal-dialog">
  220. <div class="modal-content">
  221. <div class="modal-header">
  222. <h2 class="modal-title">Chargement...</h2>
  223. </div>
  224. <div class="modal-body">
  225. <div class="progress progress-striped active">
  226. <div class="progress-bar" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%">
  227. <span class="sr-only">Chargement...</span>
  228. </div>
  229. </div>
  230. </div>
  231. </div><!-- /.modal-content -->
  232. </div><!-- /.modal-dialog -->
  233. </div>
  234. <div class="modal" id="confirm_modal" tabindex="-1" role="dialog" aria-labelledby="confirmModal" aria-hidden="true">
  235. <div class="modal-dialog">
  236. <div class="modal-content">
  237. <div class="modal-header">
  238. <button type="button" class="close cancel" aria-hidden="true">&times;</button>
  239. <h4 class="modal-title">Confirmation</h4>
  240. </div>
  241. <div class="modal-body">
  242. <p id='question'></p>
  243. </div>
  244. <div class="modal-footer">
  245. <button type="button" class="btn btn-default cancel">Annuler</button>
  246. <button type="button" class="btn btn-primary" id='confirm_modal_submit'>Valider</button>
  247. </div>
  248. </div><!-- /.modal-content -->
  249. </div><!-- /.modal-dialog -->
  250. </div>
  251. <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
  252. <script src="inc/lib/jquery.min.js"></script>
  253. <!-- Latest compiled and minified JavaScript -->
  254. <script src="inc/lib/bootstrap/js/bootstrap.js"></script>
  255. <script>
  256. </script>
  257. <script src="inc/lib/uuid.js"></script>
  258. <script src="inc/mydialog.js"></script>
  259. <script src="inc/mysc_objects.js"></script>
  260. <script src="inc/main.js"></script>
  261. </body>
  262. </html>