diff --git a/resources/views/expenses/bills/create.blade.php b/resources/views/expenses/bills/create.blade.php index 12a2055e4..c88187593 100644 --- a/resources/views/expenses/bills/create.blade.php +++ b/resources/views/expenses/bills/create.blade.php @@ -240,6 +240,38 @@ placeholder: "{{ trans('general.form.select.field', ['field' => trans_choice('general.categories', 1)]) }}" }); + // Discount popover + $('a[rel=popover]').popover({ + html: true, + placement: 'bottom', + title: '{{ trans('bills.discount') }}', + content: function () { + html = '
'; + html += '
'; + html += '
'; + html += ' {!! Form::number('pre-discount', null, ['id' => 'pre-discount', 'class' => 'form-control text-right']) !!}'; + html += '
'; + html += '
'; + html += '
'; + html += '
'; + html += '
'; + html += ' {{ trans('bills.discount_desc') }}'; + html += '
'; + html += '
'; + html += '
'; + html += ''; + + return html; + } + }); + $('#attachment').fancyfile({ text : '{{ trans('general.form.select.file') }}', style : 'btn-default', @@ -354,37 +386,6 @@ }); }); - $('a[rel=popover]').popover({ - html: true, - placement: 'bottom', - title: '{{ trans('bills.discount') }}', - content: function () { - html = '
'; - html += '
'; - html += '
'; - html += ' {!! Form::number('pre-discount', null, ['id' => 'pre-discount', 'class' => 'form-control text-right']) !!}'; - html += '
'; - html += '
'; - html += '
'; - html += '
'; - html += '
'; - html += ' {{ trans('bills.discount_desc') }}'; - html += '
'; - html += '
'; - html += '
'; - html += ''; - - return html; - } - }); - $(document).on('keyup', '#pre-discount', function(e){ e.preventDefault(); diff --git a/resources/views/expenses/bills/edit.blade.php b/resources/views/expenses/bills/edit.blade.php index cd52b2f8c..82be6574c 100644 --- a/resources/views/expenses/bills/edit.blade.php +++ b/resources/views/expenses/bills/edit.blade.php @@ -221,6 +221,38 @@ placeholder: "{{ trans('general.form.select.field', ['field' => trans_choice('general.categories', 1)]) }}" }); + // Discount popover + $('a[rel=popover]').popover({ + html: true, + placement: 'bottom', + title: '{{ trans('bills.discount') }}', + content: function () { + html = '
'; + html += '
'; + html += '
'; + html += ' {!! Form::number('pre-discount', null, ['id' => 'pre-discount', 'class' => 'form-control text-right']) !!}'; + html += '
'; + html += '
'; + html += '
'; + html += '
'; + html += '
'; + html += ' {{ trans('bills.discount_desc') }}'; + html += '
'; + html += '
'; + html += '
'; + html += ''; + + return html; + } + }); + $('#attachment').fancyfile({ text : '{{ trans('general.form.select.file') }}', style : 'btn-default', @@ -362,37 +394,6 @@ }); }); - $('a[rel=popover]').popover({ - html: true, - placement: 'bottom', - title: '{{ trans('bills.discount') }}', - content: function () { - html = '
'; - html += '
'; - html += '
'; - html += ' {!! Form::number('pre-discount', null, ['id' => 'pre-discount', 'class' => 'form-control text-right']) !!}'; - html += '
'; - html += '
'; - html += '
'; - html += '
'; - html += '
'; - html += ' {{ trans('bills.discount_desc') }}'; - html += '
'; - html += '
'; - html += '
'; - html += ''; - - return html; - } - }); - $(document).on('keyup', '#pre-discount', function(e){ e.preventDefault(); diff --git a/resources/views/incomes/invoices/create.blade.php b/resources/views/incomes/invoices/create.blade.php index aa75cebc7..cb736e1b9 100644 --- a/resources/views/incomes/invoices/create.blade.php +++ b/resources/views/incomes/invoices/create.blade.php @@ -240,6 +240,38 @@ placeholder: "{{ trans('general.form.select.field', ['field' => trans_choice('general.categories', 1)]) }}" }); + // Discount popover + $('a[rel=popover]').popover({ + html: true, + placement: 'bottom', + title: '{{ trans('invoices.discount') }}', + content: function () { + html = '
'; + html += '
'; + html += '
'; + html += ' {!! Form::number('pre-discount', null, ['id' => 'pre-discount', 'class' => 'form-control text-right']) !!}'; + html += '
'; + html += '
'; + html += '
'; + html += '
'; + html += '
'; + html += ' {{ trans('invoices.discount_desc') }}'; + html += '
'; + html += '
'; + html += '
'; + html += ''; + + return html; + } + }); + $('#attachment').fancyfile({ text : '{{ trans('general.form.select.file') }}', style : 'btn-default', @@ -354,37 +386,6 @@ }); }); - $('a[rel=popover]').popover({ - html: true, - placement: 'bottom', - title: '{{ trans('invoices.discount') }}', - content: function () { - html = '
'; - html += '
'; - html += '
'; - html += ' {!! Form::number('pre-discount', null, ['id' => 'pre-discount', 'class' => 'form-control text-right']) !!}'; - html += '
'; - html += '
'; - html += '
'; - html += '
'; - html += '
'; - html += ' {{ trans('invoices.discount_desc') }}'; - html += '
'; - html += '
'; - html += '
'; - html += ''; - - return html; - } - }); - $(document).on('keyup', '#pre-discount', function(e){ e.preventDefault(); diff --git a/resources/views/incomes/invoices/edit.blade.php b/resources/views/incomes/invoices/edit.blade.php index c2840cab2..fdbe13179 100644 --- a/resources/views/incomes/invoices/edit.blade.php +++ b/resources/views/incomes/invoices/edit.blade.php @@ -221,6 +221,38 @@ placeholder: "{{ trans('general.form.select.field', ['field' => trans_choice('general.categories', 1)]) }}" }); + // Discount popover + $('a[rel=popover]').popover({ + html: true, + placement: 'bottom', + title: '{{ trans('invoices.discount') }}', + content: function () { + html = '
'; + html += '
'; + html += '
'; + html += ' {!! Form::number('pre-discount', null, ['id' => 'pre-discount', 'class' => 'form-control text-right']) !!}'; + html += '
'; + html += '
'; + html += '
'; + html += '
'; + html += '
'; + html += ' {{ trans('invoices.discount_desc') }}'; + html += '
'; + html += '
'; + html += '
'; + html += ''; + + return html; + } + }); + $('#attachment').fancyfile({ text : '{{ trans('general.form.select.file') }}', style : 'btn-default', @@ -362,37 +394,6 @@ }); }); - $('a[rel=popover]').popover({ - html: true, - placement: 'bottom', - title: '{{ trans('invoices.discount') }}', - content: function () { - html = '
'; - html += '
'; - html += '
'; - html += ' {!! Form::number('pre-discount', null, ['id' => 'pre-discount', 'class' => 'form-control text-right']) !!}'; - html += '
'; - html += '
'; - html += '
'; - html += '
'; - html += '
'; - html += ' {{ trans('invoices.discount_desc') }}'; - html += '
'; - html += '
'; - html += '
'; - html += ''; - - return html; - } - }); - $(document).on('keyup', '#pre-discount', function(e){ e.preventDefault();