mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-12 14:12:44 +01:00
Fix for expense documents
This commit is contained in:
parent
e30a376f73
commit
a797604309
@ -193,8 +193,8 @@
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
|
||||
{!! Former::textarea('public_notes')->rows($isRecurring ? 10 : 6) !!}
|
||||
{!! Former::textarea('private_notes')->rows($isRecurring ? 10 : 6) !!}
|
||||
{!! Former::textarea('public_notes')->rows($account->hasFeature(FEATURE_DOCUMENTS) ? 6 : 10) !!}
|
||||
{!! Former::textarea('private_notes')->rows($account->hasFeature(FEATURE_DOCUMENTS) ? 6 : 10) !!}
|
||||
|
||||
@if (! $isRecurring && $account->hasFeature(FEATURE_DOCUMENTS))
|
||||
<div class="form-group">
|
||||
@ -390,12 +390,7 @@
|
||||
$('.end_date .input-group-addon').click(function() {
|
||||
toggleDatePicker('end_date');
|
||||
});
|
||||
@elseif (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')
|
||||
})
|
||||
|
||||
@else
|
||||
$('#payment_type_id').combobox();
|
||||
$('#mark_paid').click(function(event) {
|
||||
if ($('#mark_paid').is(':checked')) {
|
||||
@ -417,8 +412,14 @@
|
||||
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
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user