Working on the time tracker

This commit is contained in:
Hillel Coren 2017-10-02 21:03:12 +03:00
parent bfa0a973b5
commit 2a8651985f

View File

@ -119,17 +119,13 @@
body { body {
margin-bottom: 60px; margin-bottom: 60px;
overflow-y: scroll;
} }
#taskList { #taskList {
position: fixed; position: fixed;
} }
#taskForm {
overflow: visible;
}
.ui-timepicker-wrapper.start-time { .ui-timepicker-wrapper.start-time {
width: 140px !important; width: 140px !important;
} }
@ -202,18 +198,20 @@
<div class="panel-body"> <div class="panel-body">
<form id="taskForm"> <form id="taskForm">
<span data-bind="event: { keypress: onFormKeyPress }"> <span data-bind="event: { keypress: onFormKeyPress }">
<div style="padding-bottom: 20px" class="client-select"> <div class="row">
<div style="padding-bottom: 20px" class="client-select col-md-6">
{!! Former::select('client_id') {!! Former::select('client_id')
->addOption('', '') ->addOption('', '')
->label('client') ->label('client')
->data_bind("dropdown: selectedTask().client_id") !!} ->data_bind("dropdown: selectedTask().client_id") !!}
</div> </div>
<div style="padding-bottom: 20px" class="project-select"> <div style="padding-bottom: 20px" class="project-select col-md-6">
{!! Former::select('project_id') {!! Former::select('project_id')
->addOption('', '') ->addOption('', '')
->data_bind("dropdown: selectedTask().project_id") ->data_bind("dropdown: selectedTask().project_id")
->label(trans('texts.project')) !!} ->label(trans('texts.project')) !!}
</div> </div>
</div>
<div style="padding-bottom: 20px"> <div style="padding-bottom: 20px">
{!! Former::textarea('description') {!! Former::textarea('description')
->data_bind("value: selectedTask().description") ->data_bind("value: selectedTask().description")
@ -622,6 +620,8 @@
function setPanelHeights() { function setPanelHeights() {
var height = $(window).height() - $('.navbar').height() - 2; var height = $(window).height() - $('.navbar').height() - 2;
$('#taskList').height(height); $('#taskList').height(height);
$('#taskForm').height(height);
} }
$(window).on('resize', function() { $(window).on('resize', function() {
setButtonSize(); setButtonSize();