index.html 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. <!DOCTYPE html>
  2. <html lang="fr" dir="ltr">
  3. <head>
  4. <meta charset="utf-8" />
  5. <title>MobiParc</title>
  6. <link rel="manifest" href="manifest.json">
  7. <meta name="viewport" content="width=device-width">
  8. <meta name="theme-color" content="#587b8c">
  9. <!--<link rel="icon" href="favicon.ico">-->
  10. <!--<link rel="shortcut icon" href="favicon.ico">-->
  11. <!--<link rel="apple-touch-icon" href="img/iphone-icon.png">-->
  12. <link rel="stylesheet" href="css/mobiparc.css" type="text/css" media="all">
  13. <noscript>
  14. <style type="text/css">body.nojs{visibility:visible;}</style>
  15. </noscript>
  16. <script src="js/jquery-3.2.1.min.js" defer></script>
  17. <script src="js/jquery-ui.min.js" defer></script>
  18. <script src="js/handlebars.min.js" defer></script>
  19. <script src="js/mobiparc.js" defer></script>
  20. </head>
  21. <body class="nojs">
  22. <header>
  23. <section>
  24. <ul>
  25. <li><span class="modal-open btn">&#8651;</span></li>
  26. </ul>
  27. </section>
  28. <section>
  29. <nav>
  30. <div>
  31. <button aria-label="Ouvrir menu" class="bt-menu">
  32. <svg viewBox="0 0 459 459" enable-background="new 0 0 459 459">
  33. <path d="M0 382.5h459v-51h-459v51zm0-127.5h459v-51h-459v51zm0-178.5v51h459v-51h-459z"></path>
  34. </svg>
  35. </button>
  36. </div>
  37. <div>
  38. <button aria-label="Fermer menu" class="bt-menu-close">
  39. <svg viewBox="0 0 371.23 371.23" enable-background="new 0 0 371.23 371.23">
  40. <path d="M371.23 21.213l-21.212-21.213-164.403 164.402-164.402-164.402-21.213 21.213 164.402 164.402-164.402 164.403 21.213 21.212 164.402-164.402 164.403 164.402 21.212-21.212-164.402-164.403z"></path>
  41. </svg>
  42. </button>
  43. </div>
  44. <div>
  45. <a href="#activites">Activité</a>
  46. </div>
  47. <!--<div>
  48. <a href="#contacts">Contacts</a>
  49. </div>
  50. <div>
  51. <a href="#parametres">Paramètres</a>
  52. </div>-->
  53. </nav>
  54. </section>
  55. </header>
  56. <section class="main">
  57. <noscript>
  58. <h1>Suivi mobile d'Activités</h1>
  59. Pour accéder à toutes les fonctionnalités de ce site, vous devez activer JavaScript. Voici les
  60. <a href="//www.enable-javascript.com/fr/" target="js"> instructions pour activer JavaScript dans votre navigateur Web</a>
  61. </noscript>
  62. </section>
  63. <section class="footer-top">
  64. <pre class="results__display-wrapper"><code class="results-display"></code></pre>
  65. </section>
  66. <footer>
  67. <!--<nav class="obs">
  68. <div><span class="modal-open">Alerte</span></div>
  69. <div></div>
  70. </nav>-->
  71. <span id="cRetour" class="cInvisible"></span>
  72. </footer>
  73. <section class="modal-background"></section>
  74. <section class="modal-content">
  75. <button class="data-sync" disabled>Sync</button>
  76. <div class="sync-result"></div>
  77. <br>
  78. <span class="modal-close">X</span>
  79. </section>
  80. <script id="activites" type="x-tmpl-mustache">
  81. <h1>Activité</h1>
  82. <h2>Nouvelle saisie</h2>
  83. <form class="data-form activite">
  84. <h3>Activité</h3>
  85. <div class="input-group">
  86. <label class="label" for="dateint">Date: </label>
  87. <input class="input-text" id="dateint" name="dateint" type="date" title="Date de l'intervention'" /> <!--required-->
  88. </div>
  89. <div class="input-group">
  90. <label class="label" for="datefin">Date de fin: </label>
  91. <input class="input-text" id="datefin" name="datefin" type="date" title="Date de fin de l'intervention'" />
  92. </div>
  93. <div class="input-group">
  94. <label class="label" for="localisation">Localisation: </label>
  95. <select class="input-select" id="localisation" name="localisation">
  96. <option value="6703400">BERSTETT</option>
  97. <option value="6711200">DUTTLENHEIM</option>
  98. </select>
  99. </div>
  100. <div class="input-group">
  101. <label class="label" for="engin">Engin: </label>
  102. <select class="input-select" id="engin" name="engin">
  103. <option value="01P037">MINI PELLE CASE P037</option>
  104. <option value="01P038">PELLE LIEBHERR P038 R313/2013</option>
  105. </select>
  106. </div>
  107. <div class="input-group">
  108. <label class="label" for="realisation">Réalisation: </label>
  109. <select class="input-select" id="realisation" name="realisation">
  110. <option value="13">Pose d'enrochements</option>
  111. <option value="16">Terrassement:déblais,remblais,tranchées</option>
  112. </select>
  113. </div>
  114. <div class="input-group">
  115. <label class="label" for="commentaire">Commentaire: </label>
  116. <input class="input-text" id="commentaire" name="commentaire" type="text" title="Commentaire" />
  117. </div>
  118. <h3>Heures supplémentaires</h3>
  119. <div class="input-group">
  120. <label class="label" for="hsjour">Jour (7h-7h30, 16h30-22h): </label>
  121. <input class="input-text" id="hsjour" name="hsjour" type="number" title="Heures sup. (jour)" />
  122. </div>
  123. <div class="input-group">
  124. <label class="label" for="hsnuit">Nuit: </label>
  125. <input class="input-text" id="hsnuit" name="hsnuit" type="number" title="Heures sup. (nuit)" />
  126. </div>
  127. <div class="input-group">
  128. <label class="label" for="hsdim">Dimanche et jours fériés: </label>
  129. <input class="input-text" id="hsdim" name="hsdim" type="number" title="Heures sup. (dimanche et jours feriés)" />
  130. </div>
  131. <h3>Frais</h3>
  132. <div class="input-group">
  133. <label class="label" for="nbrepas">Nombre de repas: </label>
  134. <input class="input-text" id="nbrepas" name="nbrepas" type="number" title="Nombre de repas" />
  135. </div>
  136. <div class="input-group">
  137. <label class="label" for="depart">Départ: </label>
  138. <select class="input-select" id="depart" name="depart">
  139. <option value="6703400">BERSTETT</option>
  140. <option value="6711200">DUTTLENHEIM</option>
  141. </select>
  142. </div>
  143. <div class="input-group">
  144. <label class="label" for="kmstt">Kilomètres sur temps de travail (7h30 - 16h30): </label>
  145. <input class="input-text" id="kmstt" name="kmstt" type="number" title="Kilomètres sur temps de travail" />
  146. </div>
  147. <div class="input-group">
  148. <label class="label" for="vpstt">Avec véhicule personnel</label>
  149. <input class="input-text" id="vpstt" name="vpstt" type="checkbox" title="Avec véhicule personnel" />
  150. </div>
  151. <div class="input-group">
  152. <label class="label" for="kmhtt">Kilomètres hors temps de travail : </label>
  153. <input class="input-text" id="kmhtt" name="kmhtt" type="number" title="Kilomètres hors temps de travail" />
  154. </div>
  155. <div class="input-group">
  156. <label class="label" for="vphtt">Avec véhicule personnel</label>
  157. <input class="input-text" id="vphtt" name="vphtt" type="checkbox" title="Avec véhicule personnel" />
  158. </div>
  159. <button class="button-submit btn btn-save" type="submit">Enregistrer</button>
  160. </form>
  161. {{#if data}}
  162. <button class="del btn btn-delete" disabled>Supprimer</button>
  163. <h2>Mes données</h2>
  164. <table class="selectable">
  165. <thead>
  166. <tr>
  167. <td>Date</td>
  168. <td>Loc.</td>
  169. <td>Real.</td>
  170. <td>...</td>
  171. </tr>
  172. </thead>
  173. <tbody>
  174. {{#data}}
  175. <tr data-id="{{tstamp}}" data-type="activite">
  176. <td>{{dateint}}</td>
  177. <td>{{localisation}}</td>
  178. <td>{{realisation}}</td>
  179. <td>Voir+</td>
  180. </tr>
  181. {{/data}}
  182. </tbody>
  183. </table>
  184. {{/if}}
  185. </script>
  186. <script id="index" type="x-tmpl-mustache">
  187. <h1>Suivi mobile d'activités</h1>
  188. <div class="home-pp">
  189. <a href="#activites">
  190. <div>
  191. <picture>
  192. <source type="image/svg+xml" srcset="img/alert.svg" media="(min-width:240px)">
  193. <img src="img/alert.png" width="224" alt="" />
  194. </picture><h3>
  195. Saisie d'activité
  196. </h3>
  197. </div>
  198. </a>
  199. </div>
  200. </script>
  201. </body>
  202. </html>