mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-03 22:07:33 -05:00 
			
		
		
		
	Working on time tracker
This commit is contained in:
		
							parent
							
								
									bd96938e4c
								
							
						
					
					
						commit
						d441977a35
					
				@ -2453,6 +2453,7 @@ $LANG = array(
 | 
				
			|||||||
    'refresh' => 'Refresh',
 | 
					    'refresh' => 'Refresh',
 | 
				
			||||||
    'filter_sort' => 'Filter/Sort',
 | 
					    'filter_sort' => 'Filter/Sort',
 | 
				
			||||||
    'no_description' => 'No Description',
 | 
					    'no_description' => 'No Description',
 | 
				
			||||||
 | 
					    'time_tracker_login' => 'Time Tracker Login',
 | 
				
			||||||
 | 
					
 | 
				
			||||||
);
 | 
					);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -10,7 +10,13 @@
 | 
				
			|||||||
                ->rules(['email' => 'required|email', 'password' => 'required'])
 | 
					                ->rules(['email' => 'required|email', 'password' => 'required'])
 | 
				
			||||||
                ->addClass('form-signin') !!}
 | 
					                ->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">
 | 
					        <hr class="green">
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        @if (count($errors->all()))
 | 
					        @if (count($errors->all()))
 | 
				
			||||||
@ -83,7 +89,7 @@
 | 
				
			|||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
        {!! Former::close() !!}
 | 
					        {!! Former::close() !!}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        @if(Utils::allowNewAccounts())
 | 
					        @if (Utils::allowNewAccounts() && ! strstr(session('url.intended'), 'time_tracker'))
 | 
				
			||||||
            <div class="row sign-up">
 | 
					            <div class="row sign-up">
 | 
				
			||||||
                <div class="col-md-3 col-md-offset-3 col-xs-12">
 | 
					                <div class="col-md-3 col-md-offset-3 col-xs-12">
 | 
				
			||||||
                    <h3>{{trans('texts.not_a_member_yet')}}</h3>
 | 
					                    <h3>{{trans('texts.not_a_member_yet')}}</h3>
 | 
				
			||||||
 | 
				
			|||||||
@ -62,6 +62,24 @@
 | 
				
			|||||||
        .list-group-item-type7:before { background-color: #a87821; }
 | 
					        .list-group-item-type7:before { background-color: #a87821; }
 | 
				
			||||||
        .list-group-item-type8:before { background-color: #676767; }
 | 
					        .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>
 | 
					    </style>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@stop
 | 
					@stop
 | 
				
			||||||
@ -196,6 +214,12 @@
 | 
				
			|||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
    </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')
 | 
						@include('tasks.time_tracker_knockout')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <script type="text/javascript">
 | 
					    <script type="text/javascript">
 | 
				
			||||||
@ -329,6 +353,12 @@
 | 
				
			|||||||
			$('.archive-dropdown:not(.dropdown-toggle)').click(function() {
 | 
								$('.archive-dropdown:not(.dropdown-toggle)').click(function() {
 | 
				
			||||||
				model.onArchiveClick();
 | 
									model.onArchiveClick();
 | 
				
			||||||
			});
 | 
								});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
								/*
 | 
				
			||||||
 | 
								$( window ).scroll(function() {
 | 
				
			||||||
 | 
									$('.footer').
 | 
				
			||||||
 | 
								});
 | 
				
			||||||
 | 
								*/
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    </script>
 | 
					    </script>
 | 
				
			||||||
 | 
				
			|||||||
@ -171,6 +171,10 @@
 | 
				
			|||||||
            }, 1000);
 | 
					            }, 1000);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        self.statistics = ko.computed(function() {
 | 
				
			||||||
 | 
					            return 'tst';
 | 
				
			||||||
 | 
					        });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        self.showArchive = ko.computed(function() {
 | 
					        self.showArchive = ko.computed(function() {
 | 
				
			||||||
            var task = self.selectedTask();
 | 
					            var task = self.selectedTask();
 | 
				
			||||||
            if (! task) {
 | 
					            if (! task) {
 | 
				
			||||||
@ -521,7 +525,6 @@
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        self.age = ko.computed(function() {
 | 
					        self.age = ko.computed(function() {
 | 
				
			||||||
            model.clock(); // bind to the clock
 | 
					 | 
				
			||||||
            if (! self.time_log().length) {
 | 
					            if (! self.time_log().length) {
 | 
				
			||||||
                return '';
 | 
					                return '';
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user