mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix for expense documents
This commit is contained in:
parent
e30a376f73
commit
a797604309
@ -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('public_notes')->rows($account->hasFeature(FEATURE_DOCUMENTS) ? 6 : 10) !!}
|
||||||
{!! Former::textarea('private_notes')->rows($isRecurring ? 10 : 6) !!}
|
{!! Former::textarea('private_notes')->rows($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,8 +412,14 @@
|
|||||||
toggleDatePicker('payment_date');
|
toggleDatePicker('payment_date');
|
||||||
});
|
});
|
||||||
|
|
||||||
@include('partials.dropzone', ['documentSource' => 'model.documents()'])
|
@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')
|
||||||
|
})
|
||||||
|
|
||||||
|
@include('partials.dropzone', ['documentSource' => 'model.documents()'])
|
||||||
|
@endif
|
||||||
@endif
|
@endif
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user