mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-02 20:15:22 +02:00
Add transaction sidebar (#534)
* Create sidebar element and working with turbo * Add overview fields * Add columns to transations and tidy modal * permit new transaction params * Add autosubmit form controller * remove unused show code
This commit is contained in:
parent
9c9459211f
commit
7f2633f9da
9 changed files with 134 additions and 15 deletions
14
app/views/shared/_sidebar_modal.html.erb
Normal file
14
app/views/shared/_sidebar_modal.html.erb
Normal file
|
@ -0,0 +1,14 @@
|
|||
<%= turbo_frame_tag "modal" do %>
|
||||
<dialog class="bg-white border border-alpha-black-25 rounded-2xl max-h-[calc(100vh-32px)] max-w-[480px] w-full shadow-xs h-full mt-4 mr-4" data-controller="modal" data-action="click->modal#click_outside">
|
||||
<div class="flex flex-col h-full p-4">
|
||||
<div class="flex justify-end items-center h-9">
|
||||
<div data-action="click->modal#close" class="cursor-pointer">
|
||||
<%= lucide_icon("x", class: "w-5 h-5 shrink-0") %>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex flex-col overflow-scroll">
|
||||
<%= content %>
|
||||
</div>
|
||||
</div>
|
||||
</dialog>
|
||||
<% end %>
|
Loading…
Add table
Add a link
Reference in a new issue