1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Working on time tracker

This commit is contained in:
Hillel Coren 2017-09-24 22:44:20 +03:00
parent bd96938e4c
commit d441977a35
4 changed files with 43 additions and 3 deletions

View File

@ -2453,6 +2453,7 @@ $LANG = array(
'refresh' => 'Refresh',
'filter_sort' => 'Filter/Sort',
'no_description' => 'No Description',
'time_tracker_login' => 'Time Tracker Login',
);

View File

@ -10,7 +10,13 @@
->rules(['email' => 'required|email', 'password' => 'required'])
->addClass('form-signin') !!}
<h2 class="form-signin-heading">{{ trans('texts.account_login') }}</h2>
<h2 class="form-signin-heading">
@if (strstr(session('url.intended'), 'time_tracker'))
{{ trans('texts.time_tracker_login') }}
@else
{{ trans('texts.account_login') }}
@endif
</h2>
<hr class="green">
@if (count($errors->all()))
@ -83,7 +89,7 @@
</div>
{!! Former::close() !!}
@if(Utils::allowNewAccounts())
@if (Utils::allowNewAccounts() && ! strstr(session('url.intended'), 'time_tracker'))
<div class="row sign-up">
<div class="col-md-3 col-md-offset-3 col-xs-12">
<h3>{{trans('texts.not_a_member_yet')}}</h3>

View File

@ -62,6 +62,24 @@
.list-group-item-type7:before { background-color: #a87821; }
.list-group-item-type8:before { background-color: #676767; }
body {
/* Margin bottom by footer height */
margin-bottom: 60px;
}
.footer {
position: fixed;
bottom: 0;
width: 100%;
height: 60px;
background-color: #313131;
color: white;
border-top-width: 3px;
border-top-color: #aaa;
border-top-style: ridge;
}
</style>
@stop
@ -196,6 +214,12 @@
</div>
</div>
<footer class="footer">
<div style="padding-left: 16px; padding-top: 16px;">
<div data-bind="text: statistics"></div>
</div>
</footer>
@include('tasks.time_tracker_knockout')
<script type="text/javascript">
@ -329,6 +353,12 @@
$('.archive-dropdown:not(.dropdown-toggle)').click(function() {
model.onArchiveClick();
});
/*
$( window ).scroll(function() {
$('.footer').
});
*/
});
</script>

View File

@ -171,6 +171,10 @@
}, 1000);
}
self.statistics = ko.computed(function() {
return 'tst';
});
self.showArchive = ko.computed(function() {
var task = self.selectedTask();
if (! task) {
@ -521,7 +525,6 @@
}
self.age = ko.computed(function() {
model.clock(); // bind to the clock
if (! self.time_log().length) {
return '';
}