mirror of
https://github.com/we-promise/sure.git
synced 2026-04-08 06:44:52 +00:00
* feat: Add toggle on mobile to show/hide checkboxes in transaction page
* fix: Add multi-select toggle also in activities page. Make JS controller compatible also in this view.
* feat: Add category in mobile view
* feat: Add mobile layout for transaction categories
* feat: Add margin for pagination on mobile
* fix: Ensure category exists when displaying the name
* fix: Adjust mobile paddings
* fix: Display "uncategorized" label if no category is set
* fix: Expand transaction name/subtitle
* feat: Add merchant name on desktop view
* feat: Move merchant name before account name
* fix: Add class to hide merchant on mobile
* feat: Add merchant logo on mobile
* fix: add pointer-events-none to merchant image on mobile view
* feat: toggle header checkbox in transaction page when button is clicked
* Remove unnecessary CSS class
* Remove duplicate CSS class
* Remove wrong Enable Banking logo URL
* Update app/views/transactions/_transaction.html.erb
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Signed-off-by: Alessio Cappa <104093777+alessiocappa@users.noreply.github.com>
* Revert "Update app/views/transactions/_transaction.html.erb"
This reverts commit 9766c50a1d.
* Add translation for Loan Payment/Transfer
* Apply review comments
* Add accessible name for toggle based on review comments
* Use border instead of border-1 class
* Apply review comments
* Missing l10n key
---------
Signed-off-by: Alessio Cappa <104093777+alessiocappa@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Juan José Mata <juanjo.mata@gmail.com>
58 lines
2.5 KiB
Plaintext
58 lines
2.5 KiB
Plaintext
<%# locals: (pagy:) %>
|
|
|
|
<nav class="flex w-full items-center justify-between">
|
|
<div class="flex items-center gap-1 mr-3">
|
|
<div>
|
|
<% if pagy.prev %>
|
|
<%= link_to pagy_url_for(pagy, pagy.prev),
|
|
data: { turbo_frame: :_top },
|
|
class: "inline-flex items-center p-2 text-sm font-medium text-secondary bg-container-inset hover:border-secondary hover:text-secondary" do %>
|
|
<%= icon("chevron-left") %>
|
|
<% end %>
|
|
<% else %>
|
|
<div class="inline-flex items-center p-2 text-sm font-medium hover:border-secondary">
|
|
<%= icon("chevron-left") %>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
<div class="rounded-xl p-1 bg-container-inset">
|
|
<% pagy.series.each do |series_item| %>
|
|
<% if series_item.is_a?(Integer) %>
|
|
<%= link_to pagy_url_for(pagy, series_item),
|
|
data: { turbo_frame: :_top },
|
|
class: "rounded-md px-2 py-1 inline-flex items-center text-sm font-medium text-secondary hover:border-secondary hover:text-secondary" do %>
|
|
<%= series_item %>
|
|
<% end %>
|
|
<% elsif series_item.is_a?(String) %>
|
|
<%= link_to pagy_url_for(pagy, series_item),
|
|
data: { turbo_frame: :_top },
|
|
class: "rounded-md px-2 py-1 bg-container border border-secondary shadow-xs inline-flex items-center text-sm font-medium text-primary" do %>
|
|
<%= series_item %>
|
|
<% end %>
|
|
<% elsif series_item == :gap %>
|
|
<span class="inline-flex items-center px-2 py-1 text-sm font-medium text-secondary">...</span>
|
|
<% end %>
|
|
<% end %>
|
|
</div>
|
|
<div>
|
|
<% if pagy.next %>
|
|
<%= link_to pagy_url_for(pagy, pagy.next),
|
|
data: { turbo_frame: :_top },
|
|
class: "inline-flex items-center p-2 text-sm font-medium text-secondary hover:border-secondary hover:text-secondary" do %>
|
|
<%= icon("chevron-right") %>
|
|
<% end %>
|
|
<% else %>
|
|
<div class="inline-flex items-center p-2 text-sm font-medium hover:border-secondary">
|
|
<%= icon("chevron-right") %>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
<div class="flex items-center gap-4">
|
|
<%= select_tag :per_page,
|
|
options_for_select(["10", "20", "30", "50"], pagy.limit),
|
|
data: { controller: "selectable-link" },
|
|
class: "py-1.5 pr-8 text-sm text-primary font-medium bg-container-inset border border-secondary rounded-lg focus:border-secondary focus:ring-secondary focus-visible:ring-secondary" %>
|
|
</div>
|
|
</nav>
|