You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

160 lines
7.2 KiB

  1. <!DOCTYPE html>
  2. <html ng-app="workApp">
  3. <head>
  4. <!--Import Google Icon Font-->
  5. <link href="fonts/icons.css" rel="stylesheet">
  6. <!--Import materialize.css-->
  7. <link type="text/css" rel="stylesheet" href="css/materialize.min.css" media="screen,projection"/>
  8. <link type="text/css" rel="stylesheet" href="own.css"/>
  9. <!--Let browser know website is optimized for mobile-->
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  11. <title>Open Work Time - local version</title>
  12. <!-- ANGULAR -->
  13. <script src="libraries/angular.min.js"></script>
  14. </head>
  15. <body ng-controller="workController as work">
  16. <nav>
  17. <div class="nav-wrapper blue-grey darken-1">
  18. <a href="#" class="brand-logo">Open Work Time - local version</a>
  19. <ul id="nav-mobile" class="right">
  20. <li>
  21. <a ng-click="openCode()" target="_blank">
  22. <i class="large material-icons" title="Visit code">code</i>
  23. </a>
  24. </li>
  25. <li>
  26. <a ng-click="deleteStorage()">
  27. <i class="large material-icons" title="Delete storage">info_outline</i>
  28. </a>
  29. </li>
  30. <li>
  31. <a ng-click="saveStorage()" title="Save all to storage">
  32. <i class="large material-icons">perm_identity</i>
  33. </a>
  34. </li>
  35. </ul>
  36. </div>
  37. </nav>
  38. <div class="">
  39. <div class="row">
  40. <div class="card blue-grey lighten-4 col s12 m5 l5">
  41. <div class="card-content">
  42. <span class="card-title">Projects</span>
  43. <ul class="collection">
  44. <!--<li class="collection-item avatar blue-grey lighten-4">
  45. <img src="img/webicons/modeling.png" class="circle"/>
  46. <span class="title">Piratel</span>
  47. <span class="badge">14h</span>
  48. <p class="grey-text">User1, User2</p>
  49. </li>
  50. <li class="collection-item avatar blue-grey lighten-3">
  51. <img src="img/webicons/smartphone.png" class="circle"/>
  52. <span class="title">CarsharingApp Frontend</span>
  53. <span class="badge">10h 34min</span>
  54. <p class="grey-text">User4, User3</p>
  55. </li>
  56. <li class="collection-item avatar blue-grey lighten-4">
  57. <img src="img/webicons/browser-4.png" class="circle"/>
  58. <span class="title">CarsharingApp Backend</span>
  59. <span class="badge">11h 20min</span>
  60. <p class="grey-text">User1, User2</p>
  61. </li>
  62. <li class="collection-item avatar blue-grey lighten-4">
  63. <img src="img/webicons/coding.png" class="circle"/>
  64. <span class="title">OpenWorkTime</span>
  65. <span class="badge">2h 15min</span>
  66. <p class="grey-text">User1, User2, User3, User4</p>
  67. </li>
  68. <li class="collection-item avatar blue-grey lighten-4">
  69. <img src="img/webicons/devices-1.png" class="circle"/>
  70. <span class="title">WebPrimusTech</span>
  71. <span class="badge">0h</span>
  72. <p class="grey-text">no workers</p>
  73. </li>-->
  74. <li ng-repeat="project in projects" class="collection-item avatar blue-grey lighten-4">
  75. <a class="waves-effect waves-light btn-floating blue-grey lighten-2 right" ng-click="removeProject($index)">
  76. <i class="material-icons"><img src="img/trash.png" class="o_trash_icon" /></i>
  77. </a>
  78. <img ng-src="img/webicons/{{project.icon}}.png" class="circle"/>
  79. <span class="title">{{project.title}}</span>
  80. <span class="badge">0h</span>
  81. <p class="grey-text">{{username}}</p>
  82. </li>
  83. </ul>
  84. </div>
  85. <div class="card-action">
  86. <div class="input-field col s6">
  87. <input ng-model="newproject.title" id="newprojectname" type="text" class="validate">
  88. <label for="newprojectname">New project name</label>
  89. </div>
  90. <div class="input-field col s6">
  91. <input ng-model="newproject.icon" id="icon" type="text" class="validate">
  92. <label for="icon">icon</label>
  93. </div>
  94. <a ng-click="addNewProject()" class="waves-effect waves-light btn blue-grey lighten-1">Add new project</a>
  95. </div>
  96. </div>
  97. <div class="card blue-grey lighten-4 col s12 m7 l7">
  98. <div class="card-content">
  99. <span class="card-title"> <img src="img/webicons/smartphone.png" class="o_project_title_img"/>CarsharingApp Frontend</span>
  100. <p>
  101. project github: <a href="#">https://github.com/idoctnef/collectivecarApp</a>
  102. </p>
  103. <p>
  104. project Taigan: <a href="#">https://github.com/idoctnef/collectivecarApp</a>
  105. </p>
  106. <p>
  107. Total time: 10h 34min
  108. </p>
  109. <p>
  110. Current strike time: <b>10h 34min</b>
  111. </p>
  112. </div>
  113. <div class="card-action">
  114. <a class="waves-effect waves-light btn blue-grey lighten-1">Work!</a>
  115. <!--<a class="waves-effect waves-light btn deep-orange lighten-2">Stop working!</a>-->
  116. </div>
  117. </div>
  118. </div>
  119. </div>
  120. <!-- ELECTRON
  121. Insert this line above script imports
  122. Works for both browser and electron with the same code -->
  123. <script>if (typeof module === 'object') {window.module = module; module = undefined;}</script>
  124. <!--Import jQuery before materialize.js-->
  125. <script type="text/javascript" src="js/jquery-2.1.1.min.js"></script>
  126. <script type="text/javascript" src="js/materialize.min.js"></script>
  127. <script src="controllers.js"></script>
  128. <script src="libraries/toastr.js"></script>
  129. <link type="text/css" rel="stylesheet" href="libraries/toastr.css"/>
  130. <!-- ELECTRON
  131. Insert this line after script imports -->
  132. <script>if (window.module) module = window.module;</script>
  133. </body>
  134. </html>