mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 14:14:31 -04:00
Fix for expense documents
This commit is contained in:
parent
c9070aadb0
commit
1f6a76fdbe
@ -193,8 +193,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
|
|
||||||
{!! Former::textarea('public_notes')->rows($isRecurring ? 10 : 6) !!}
|
{!! Former::textarea('private_notes')->rows(! $isRecurring && $account->hasFeature(FEATURE_DOCUMENTS) ? 6 : 10) !!}
|
||||||
{!! Former::textarea('private_notes')->rows($isRecurring ? 10 : 6) !!}
|
{!! Former::textarea('public_notes')->rows(! $isRecurring && $account->hasFeature(FEATURE_DOCUMENTS) ? 6 : 10) !!}
|
||||||
|
|
||||||
@if (! $isRecurring && $account->hasFeature(FEATURE_DOCUMENTS))
|
@if (! $isRecurring && $account->hasFeature(FEATURE_DOCUMENTS))
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -390,12 +390,7 @@
|
|||||||
$('.end_date .input-group-addon').click(function() {
|
$('.end_date .input-group-addon').click(function() {
|
||||||
toggleDatePicker('end_date');
|
toggleDatePicker('end_date');
|
||||||
});
|
});
|
||||||
@elseif (Auth::user()->account->hasFeature(FEATURE_DOCUMENTS))
|
@else
|
||||||
$('.main-form').submit(function(){
|
|
||||||
if($('#document-upload .fallback input').val())$(this).attr('enctype', 'multipart/form-data')
|
|
||||||
else $(this).removeAttr('enctype')
|
|
||||||
})
|
|
||||||
|
|
||||||
$('#payment_type_id').combobox();
|
$('#payment_type_id').combobox();
|
||||||
$('#mark_paid').click(function(event) {
|
$('#mark_paid').click(function(event) {
|
||||||
if ($('#mark_paid').is(':checked')) {
|
if ($('#mark_paid').is(':checked')) {
|
||||||
@ -417,6 +412,11 @@
|
|||||||
toggleDatePicker('payment_date');
|
toggleDatePicker('payment_date');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@if (Auth::user()->account->hasFeature(FEATURE_DOCUMENTS))
|
||||||
|
$('.main-form').submit(function(){
|
||||||
|
if($('#document-upload .fallback input').val())$(this).attr('enctype', 'multipart/form-data')
|
||||||
|
else $(this).removeAttr('enctype')
|
||||||
|
})
|
||||||
// Initialize document upload
|
// Initialize document upload
|
||||||
dropzone = new Dropzone('#document-upload', {
|
dropzone = new Dropzone('#document-upload', {
|
||||||
url:{!! json_encode(url('documents')) !!},
|
url:{!! json_encode(url('documents')) !!},
|
||||||
@ -462,6 +462,7 @@
|
|||||||
dropzone.files.push(mockFile);
|
dropzone.files.push(mockFile);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@endif
|
||||||
@endif
|
@endif
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user