mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Working on time tracker
This commit is contained in:
parent
a639ff49f0
commit
3347f14392
@ -109,56 +109,54 @@
|
|||||||
|
|
||||||
<!-- Task Form -->
|
<!-- Task Form -->
|
||||||
<div class="col-sm-7 col-sm-push-5">
|
<div class="col-sm-7 col-sm-push-5">
|
||||||
<div class="xwell" data-bind="visible: selectedTask" style="margin:20px; display:none;">
|
<div class="panel panel-default affix" data-bind="visible: selectedTask" style="margin:20px; display:none;">
|
||||||
<div class="panel panel-default">
|
<div class="panel-body">
|
||||||
<div class="panel-body">
|
<form id="taskForm">
|
||||||
<form id="taskForm">
|
<span data-bind="event: { keypress: onFormKeyPress, change: onFormChange, input: onFormChange }">
|
||||||
<span data-bind="event: { keypress: onFormKeyPress, change: onFormChange, input: onFormChange }">
|
<div style="padding-bottom: 20px" class="client-select">
|
||||||
<div style="padding-bottom: 20px" class="client-select">
|
{!! 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">
|
{!! 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>
|
{!! Former::textarea('description')
|
||||||
{!! Former::textarea('description')
|
->data_bind("value: selectedTask().description")
|
||||||
->data_bind("value: selectedTask().description")
|
->rows(4) !!}
|
||||||
->rows(4) !!}
|
</span>
|
||||||
</span>
|
|
||||||
|
|
||||||
<center style="padding-top: 30px">
|
<center style="padding-top: 30px">
|
||||||
<span data-bind="visible: showArchive">
|
<span data-bind="visible: showArchive">
|
||||||
{!! DropdownButton::normal(trans('texts.archive'))
|
{!! DropdownButton::normal(trans('texts.archive'))
|
||||||
->withAttributes([
|
|
||||||
'class' => 'archive-dropdown',
|
|
||||||
])
|
|
||||||
->large()
|
|
||||||
->withContents([
|
|
||||||
['label' => trans('texts.delete_task'), 'url' => 'javascript:model.onDeleteClick()'],
|
|
||||||
]
|
|
||||||
)->split() !!}
|
|
||||||
</span>
|
|
||||||
{!! Button::normal(trans('texts.cancel'))
|
|
||||||
->appendIcon(Icon::create('remove-circle'))
|
|
||||||
->withAttributes([
|
->withAttributes([
|
||||||
'data-bind' => 'click: onCancelClick, visible: showCancel',
|
'class' => 'archive-dropdown',
|
||||||
])
|
])
|
||||||
->large() !!}
|
->large()
|
||||||
|
->withContents([
|
||||||
{!! Button::success(trans('texts.save'))
|
['label' => trans('texts.delete_task'), 'url' => 'javascript:model.onDeleteClick()'],
|
||||||
->large()
|
]
|
||||||
->appendIcon(Icon::create('floppy-disk'))
|
)->split() !!}
|
||||||
->withAttributes([
|
</span>
|
||||||
'data-bind' => 'click: onSaveClick, css: { disabled: ! formChanged() }',
|
{!! Button::normal(trans('texts.cancel'))
|
||||||
]) !!}
|
->appendIcon(Icon::create('remove-circle'))
|
||||||
</center>
|
->withAttributes([
|
||||||
</form>
|
'data-bind' => 'click: onCancelClick, visible: showCancel',
|
||||||
</div>
|
])
|
||||||
|
->large() !!}
|
||||||
|
|
||||||
|
{!! Button::success(trans('texts.save'))
|
||||||
|
->large()
|
||||||
|
->appendIcon(Icon::create('floppy-disk'))
|
||||||
|
->withAttributes([
|
||||||
|
'data-bind' => 'click: onSaveClick, css: { disabled: ! formChanged() }',
|
||||||
|
]) !!}
|
||||||
|
</center>
|
||||||
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -309,7 +307,6 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
Mousetrap.bind('/', function(e) {
|
Mousetrap.bind('/', function(e) {
|
||||||
console.log('clicked..');
|
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
$('#search').focus();
|
$('#search').focus();
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user