|
@ -12,10 +12,9 @@ |
|
|
|
|
|
|
|
|
<!--Let browser know website is optimized for mobile--> |
|
|
<!--Let browser know website is optimized for mobile--> |
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> |
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> |
|
|
<title>Open Work Time</title> |
|
|
|
|
|
|
|
|
<title>Open Work Time - local version</title> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ANGULAR --> |
|
|
|
|
|
<script src="libraries/angular.min.js"></script> |
|
|
|
|
|
|
|
|
|
|
|
</head> |
|
|
</head> |
|
|
|
|
|
|
|
@ -24,7 +23,7 @@ |
|
|
|
|
|
|
|
|
<nav> |
|
|
<nav> |
|
|
<div class="nav-wrapper blue-grey darken-1"> |
|
|
<div class="nav-wrapper blue-grey darken-1"> |
|
|
<a href="#" class="brand-logo">Open Work Time</a> |
|
|
|
|
|
|
|
|
<a href="#" class="brand-logo">Open Work Time <small>- online version</small></a> |
|
|
<ul id="nav-mobile" class="right"> |
|
|
<ul id="nav-mobile" class="right"> |
|
|
<li> |
|
|
<li> |
|
|
<a ng-click="openCode()" target="_blank"> |
|
|
<a ng-click="openCode()" target="_blank"> |
|
@ -50,95 +49,99 @@ |
|
|
<div class="card blue-grey lighten-4 col s12 m5 l5"> |
|
|
<div class="card blue-grey lighten-4 col s12 m5 l5"> |
|
|
<div class="card-content"> |
|
|
<div class="card-content"> |
|
|
<span class="card-title">Projects</span> |
|
|
<span class="card-title">Projects</span> |
|
|
<ul class="collection"> |
|
|
|
|
|
<li class="collection-item avatar blue-grey lighten-4"> |
|
|
|
|
|
<img src="img/webicons/modeling.png" class="circle"/> |
|
|
|
|
|
<span class="title">Piratel</span> |
|
|
|
|
|
<span class="badge">14h</span> |
|
|
|
|
|
<p class="grey-text">User1, User2</p> |
|
|
|
|
|
</li> |
|
|
|
|
|
<li class="collection-item avatar blue-grey lighten-3"> |
|
|
|
|
|
<img src="img/webicons/smartphone.png" class="circle"/> |
|
|
|
|
|
<span class="title">CarsharingApp Frontend</span> |
|
|
|
|
|
<span class="badge">10h 34min</span> |
|
|
|
|
|
<p class="grey-text">User4, User3</p> |
|
|
|
|
|
</li> |
|
|
|
|
|
<li class="collection-item avatar blue-grey lighten-4"> |
|
|
|
|
|
<img src="img/webicons/browser-4.png" class="circle"/> |
|
|
|
|
|
<span class="title">CarsharingApp Backend</span> |
|
|
|
|
|
<span class="badge">11h 20min</span> |
|
|
|
|
|
<p class="grey-text">User1, User2</p> |
|
|
|
|
|
</li> |
|
|
|
|
|
<li class="collection-item avatar blue-grey lighten-4"> |
|
|
|
|
|
<img src="img/webicons/coding.png" class="circle"/> |
|
|
|
|
|
<span class="title">OpenWorkTime</span> |
|
|
|
|
|
<span class="badge">2h 15min</span> |
|
|
|
|
|
<p class="grey-text">User1, User2, User3, User4</p> |
|
|
|
|
|
</li> |
|
|
|
|
|
<li class="collection-item avatar blue-grey lighten-4"> |
|
|
|
|
|
<img src="img/webicons/devices-1.png" class="circle"/> |
|
|
|
|
|
<span class="title">WebPrimusTech</span> |
|
|
|
|
|
<span class="badge">0h</span> |
|
|
|
|
|
<p class="grey-text">no workers</p> |
|
|
|
|
|
</li> |
|
|
|
|
|
</ul> |
|
|
|
|
|
|
|
|
<div class="collection"> |
|
|
|
|
|
<a href="#!" ng-click="projectSelect($index)" ng-repeat="project in projects" class="collection-item avatar blue-grey lighten-4"> |
|
|
|
|
|
<div class="right"> |
|
|
|
|
|
<div class="waves-effect waves-light btn-floating blue-grey lighten-2" ng-click="editProject($index)"> |
|
|
|
|
|
<i class="material-icons"><img src="img/edit.png" class="o_trash_icon" /></i> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="waves-effect waves-light btn-floating blue-grey lighten-2" ng-click="removeProject($index)"> |
|
|
|
|
|
<i class="material-icons"><img src="img/trash.png" class="o_trash_icon" /></i> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<img ng-src="img/{{project.icon}}.png" class="circle"/> |
|
|
|
|
|
<span class="title">{{project.title}}</span> |
|
|
|
|
|
<p class="grey-text">{{project.totaltime | secondsToDateTime | date:'HH:mm:ss'}}</p> |
|
|
|
|
|
</a> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="card-action"> |
|
|
|
|
|
<a class="waves-effect waves-light btn blue-grey lighten-1">Add new project</a> |
|
|
|
|
|
|
|
|
<div class="card-action" ng-show="!editingProject"> |
|
|
|
|
|
<div class="input-field col s6"> |
|
|
|
|
|
<input ng-model="newproject.title" id="newprojectname" type="text" class="validate"> |
|
|
|
|
|
<label for="newprojectname">New project name</label> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="input-field col s6"> |
|
|
|
|
|
<input ng-model="newproject.icon" id="icon" type="text" class="validate"> |
|
|
|
|
|
<label for="icon">icon</label> |
|
|
|
|
|
</div> |
|
|
|
|
|
<a ng-click="addNewProject()" class="waves-effect waves-light btn blue-grey lighten-1 right">Add new project</a> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="card-action" ng-show="editingProject"> |
|
|
|
|
|
<div class="input-field col s6"> |
|
|
|
|
|
<input ng-model="editingProject.title" id="newprojectname" value=" " type="text" class="validate"> |
|
|
|
|
|
<label for="newprojectname">New project name</label> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="input-field col s6"> |
|
|
|
|
|
<input ng-model="editingProject.icon" id="icon" value=" " type="text" class="validate"> |
|
|
|
|
|
<label for="icon">icon</label> |
|
|
|
|
|
</div> |
|
|
|
|
|
<a ng-click="cancelEditProject()" class="waves-effect waves-light btn red lighten-2">Cancel</a> |
|
|
|
|
|
<a ng-click="updateProject()" class="waves-effect waves-light btn blue lighten-2 right">Update project</a> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="card blue-grey lighten-4 col s12 m7 l7"> |
|
|
|
|
|
|
|
|
<div ng-show="currentproject.title" class="card blue-grey lighten-4 col s12 m7 l7"> |
|
|
<div class="card-content"> |
|
|
<div class="card-content"> |
|
|
<span class="card-title"> <img src="img/webicons/smartphone.png" class="o_project_title_img"/>CarsharingApp Frontend</span> |
|
|
|
|
|
<p> |
|
|
|
|
|
project github: <a href="#">https://github.com/idoctnef/collectivecarApp</a> |
|
|
|
|
|
</p> |
|
|
|
|
|
|
|
|
<span class="card-title"> |
|
|
|
|
|
<img ng-src="img/{{currentproject.icon}}.png" class="o_project_title_img"/> |
|
|
|
|
|
{{currentproject.title}} |
|
|
|
|
|
</span> |
|
|
<p> |
|
|
<p> |
|
|
project Taigan: <a href="#">https://github.com/idoctnef/collectivecarApp</a> |
|
|
|
|
|
|
|
|
Total time: {{currentproject.totaltime | secondsToDateTime | date:'HH:mm:ss'}} |
|
|
</p> |
|
|
</p> |
|
|
<p> |
|
|
<p> |
|
|
Total time: 10h 34min |
|
|
|
|
|
</p> |
|
|
|
|
|
<p> |
|
|
|
|
|
Current strike time: <b>10h 34min</b> |
|
|
|
|
|
|
|
|
Current strike time: <b>{{currentStrike | secondsToDateTime | date:'HH:mm:ss'}}</b> |
|
|
</p> |
|
|
</p> |
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
<div class="card-action"> |
|
|
<div class="card-action"> |
|
|
<a class="waves-effect waves-light btn blue-grey lighten-1">Work!</a> |
|
|
|
|
|
|
|
|
<a ng-click="btnWork()" ng-show="!working" class="waves-effect waves-light btn green lighten-2">Work!</a> |
|
|
|
|
|
<a ng-click="btnStop()" ng-show="working" class="waves-effect waves-light btn red lighten-2">Stop!</a> |
|
|
|
|
|
|
|
|
<!--<a class="waves-effect waves-light btn deep-orange lighten-2">Stop working!</a>--> |
|
|
<!--<a class="waves-effect waves-light btn deep-orange lighten-2">Stop working!</a>--> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="card blue-grey lighten-4 col s12 m7 l7"> |
|
|
|
|
|
|
|
|
<div class="divider"></div> |
|
|
<div class="card-content"> |
|
|
<div class="card-content"> |
|
|
<span class="card-title">Workers</span> |
|
|
|
|
|
<p> |
|
|
|
|
|
<div class="o_worker_avatar_card"> |
|
|
|
|
|
<img src="img/avatars/duck.png" class="o_worker_avatar_img"/> |
|
|
|
|
|
<p class="grey-text text-darken-1">User1</p> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="o_worker_avatar_card"> |
|
|
|
|
|
<img src="img/avatars/racoon.png" class="o_worker_avatar_img"/> |
|
|
|
|
|
<p class="grey-text text-darken-1">User2</p> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="o_worker_avatar_card"> |
|
|
|
|
|
<img src="img/avatars/tiger.png" class="o_worker_avatar_img"/> |
|
|
|
|
|
<p class="grey-text text-darken-1">User3</p> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="o_worker_avatar_card"> |
|
|
|
|
|
<img src="img/avatars/crab.png" class="o_worker_avatar_img"/> |
|
|
|
|
|
<p class="grey-text text-darken-1">User4</p> |
|
|
|
|
|
</div> |
|
|
|
|
|
</p> |
|
|
|
|
|
|
|
|
<!-- here the charts --> |
|
|
|
|
|
<canvas id="bar" class="chart chart-bar" |
|
|
|
|
|
chart-data="currentproject.chart.data" chart-labels="currentproject.chart.labels" chart-series="currentproject.chart.series"> |
|
|
|
|
|
</canvas> |
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div ng-show="!currentproject.title" class="card blue-grey lighten-4 col s12 m7 l7" style="height: 200px;"> |
|
|
|
|
|
<span class="card-title"> |
|
|
|
|
|
Select a project |
|
|
|
|
|
</span> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ELECTRON |
|
|
|
|
|
Insert this line above script imports |
|
|
|
|
|
Works for both browser and electron with the same code --> |
|
|
|
|
|
<script>if (typeof module === 'object') {window.module = module; module = undefined;}</script> |
|
|
|
|
|
|
|
|
|
|
|
<!-- ANGULAR --> |
|
|
|
|
|
<script src="libraries/angular.min.js"></script> |
|
|
|
|
|
|
|
|
|
|
|
<!-- ANGULAR CHART JS --> |
|
|
|
|
|
<script src="node_modules/chart.js/dist/Chart.min.js"></script> |
|
|
|
|
|
<script src="node_modules/angular-chart.js/dist/angular-chart.min.js"></script> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--Import jQuery before materialize.js--> |
|
|
<!--Import jQuery before materialize.js--> |
|
|
<script type="text/javascript" src="js/jquery-2.1.1.min.js"></script> |
|
|
<script type="text/javascript" src="js/jquery-2.1.1.min.js"></script> |
|
@ -149,7 +152,9 @@ |
|
|
<script src="libraries/toastr.js"></script> |
|
|
<script src="libraries/toastr.js"></script> |
|
|
<link type="text/css" rel="stylesheet" href="libraries/toastr.css"/> |
|
|
<link type="text/css" rel="stylesheet" href="libraries/toastr.css"/> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ELECTRON |
|
|
|
|
|
Insert this line after script imports --> |
|
|
|
|
|
<script>if (window.module) module = window.module;</script> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</body> |
|
|
</body> |
|
|