Skip to content

Firefly III: a personal finances manager

Fix table design.

James Cole90d85c2640d3
diff --git a/public/v1/js/ff/search/index.js b/public/v1/js/ff/search/index.js
index 1f84ea3410..c340d674d7 100644
--- a/public/v1/js/ff/search/index.js
+++ b/public/v1/js/ff/search/index.js
@@ -27,6 +27,7 @@ $(function () {
});
function startSearch(query) {
+ //var from = from ?? '';
$.post(searchUrl, {query: query, _token: token, _from: from}).done(presentSearchResults).fail(searchFailure);
}
diff --git a/resources/assets/v3/js/pages/transactions/shared/show-message-or-redirect.js b/resources/assets/v3/js/pages/transactions/shared/show-message-or-redirect.js
index ee0ad2455d..2588cbe4db 100644
--- a/resources/assets/v3/js/pages/transactions/shared/show-message-or-redirect.js
+++ b/resources/assets/v3/js/pages/transactions/shared/show-message-or-redirect.js
@@ -85,6 +85,9 @@ export function showMessageOrRedirectUser(sourceOfCall) {
}
}
if ("" !== parts.search) {
+ if(parts.search.includes('&')) {
+ parts.search = parts.search.replaceAll('&', '&');
+ }
let obj = new URLSearchParams(parts.search);
let pathName = parts.pathname; // we redirect here!
obj.delete("message");
diff --git a/resources/views/components/lists/groups-large.blade.php b/resources/views/components/lists/groups-large.blade.php
index 501ff95596..6aa2ef56ab 100644
--- a/resources/views/components/lists/groups-large.blade.php
+++ b/resources/views/components/lists/groups-large.blade.php
@@ -1,13 +1,21 @@
<table class="table table-valign-middle table-sm table-hover">
<thead>
<tr>
- @if($showCategory || $showBudget)
+ @if($showCategory && $showBudget)
+ <td colspan="9">
+ @if(method_exists($groups, 'links'))
+ {{ $groups->links('pagination.bootstrap-4') }}
+ @endif
+ </td>
+ @endif
+ @if($showCategory XOR $showBudget)
<td colspan="8">
@if(method_exists($groups, 'links'))
{{ $groups->links('pagination.bootstrap-4') }}
@endif
</td>
- @else
+ @endif
+ @if(!$showCategory && !$showBudget)
<td colspan="7">
@if(method_exists($groups, 'links'))
{{ $groups->links('pagination.bootstrap-4') }}
@@ -79,9 +87,13 @@
@endforeach
</td>
<!-- column to span accounts + extra fields -->
- @if($showCategory || $showBudget)
+ @if($showCategory && $showBudget)
+ <td colspan="6" class="top-light-border">&nbsp;</td>
+ @endif
+ @if($showCategory XOR $showBudget)
<td colspan="5" class="top-light-border">&nbsp;</td>
- @else
+ @endif
+ @if(!$showCategory && !$showBudget)
<td colspan="4" class="top-light-border">&nbsp;</td>
@endif
<td class="top-light-border d-xs-none text-end">
@@ -221,35 +233,43 @@
</tbody>
<tfoot>
<tr>
- <td colspan="7">&nbsp;</td>
- <td class="d-xs-none text-end">
- <div class="d-none action-menu">
- <button class="btn btn-sm btn-outline-secondary dropdown-toggle" type="button" id="bottom_action_menu" data-bs-toggle="dropdown" aria-expanded="false">{{ __('firefly.actions') }} <span class="caret"></span></button>
- <ul class="dropdown-menu" aria-labelledby="bottom_action_menu">
- <li><a href="#" class="mass-edit dropdown-item"><span class="bi bi-pencil"></span><span>{{ __('firefly.mass_edit') }}</span></a></li>
- <li><a href="#" class="bulk-edit dropdown-item"><span class="bi bi-pencil-square"></span><span>{{ __('firefly.bulk_edit') }}</span></a></li>
- <li><a href="#" class="dropdown-item mass-delete"><span class="bi bi-trash"></span><span>{{ __('firefly.mass_delete') }}</span></a></li>
- </ul>
- </div>
- </td>
-
- <td class="text-end"><input id="list_ALL_bottom" value="1" name="select-all" type="checkbox" class="select-all form-check-inline"/></td>
-
- </tr>
- <tr>
- @if($showCategory || $showBudget)
+ @if($showCategory && $showBudget)
+ <td colspan="9">
+ @if(method_exists($groups, 'links'))
+ {{ $groups->links('pagination.bootstrap-4') }}
+ @endif
+ </td>
+ @endif
+ @if($showCategory XOR $showBudget)
<td colspan="8">
@if(method_exists($groups, 'links'))
{{ $groups->links('pagination.bootstrap-4') }}
@endif
</td>
- @else
+ @endif
+ @if(!$showCategory && !$showBudget)
<td colspan="7">
@if(method_exists($groups, 'links'))
{{ $groups->links('pagination.bootstrap-4') }}
@endif
</td>
@endif
+ <td class="d-xs-none text-end">
+ <!-- Single button -->
+ <div class="action-menu d-none"> <!-- d-none -->
+ <button class="btn btn-sm btn-outline-secondary dropdown-toggle" type="button" id="bottom_action_menu" data-bs-toggle="dropdown" aria-expanded="false">
+ {{ __('firefly.actions') }}<span class="caret"></span>
+ </button>
+ <ul class="dropdown-menu" aria-labelledby="bottom_action_menu">
+ <li><a href="#" class="dropdown-item mass-edit"><span class="bi bi-pencil"></span> <span class="txt">{{ __('firefly.mass_edit') }}</span></a></li>
+ <li><a href="#" class="dropdown-item bulk-edit"><span class="bi bi-pencil-square"></span> <span class="txt">{{ __('firefly.bulk_edit') }}</span></a></li>
+ <li><a href="#" class="dropdown-item mass-delete"><span class="bi bi-trash"></span> <span class="txt">{{ __('firefly.mass_delete') }}</span></a></li>
+ </ul>
+ </div>
+ </td>
+ <td class="d-xs-none text-end">
+ <input id="list_ALL_bottom" value="1" name="select-all" type="checkbox" class="select-all form-check-inline"/>
+ </td>
</tr>
</tfoot>
</table>
diff --git a/resources/views/search/index.blade.php b/resources/views/search/index.blade.php
index 35f210c501..b131177018 100644
--- a/resources/views/search/index.blade.php
+++ b/resources/views/search/index.blade.php
@@ -137,6 +137,7 @@
var searchQuery = "{!! escape_for_js($fullQuery) !!}";
var searchUrl = "{{ route('search.search') }}?page={{ $page }}";
var searchPage = {{ $page }};
+ var from = '{{ $FF3_FROM }}';
var cloneGroupUrl = '{{ route('transactions.clone') }}';
var cloneAndEditUrl = '{{ route('transactions.clone') }}?redirect=edit';
</script>