1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-24 15:49:39 +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:
Cristiano Crolla 2024-03-10 21:38:31 +00:00 committed by GitHub
parent 9c9459211f
commit 7f2633f9da
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 134 additions and 15 deletions

View file

@ -31,6 +31,12 @@ module ApplicationHelper
render partial: "shared/currency_dropdown", locals: { f: f, options: options }
end
def sidebar_modal(&block)
content = capture &block
render partial: "shared/sidebar_modal", locals: { content: content }
end
def sidebar_link_to(name, path, options = {})
base_class_names = [ "block", "border", "border-transparent", "rounded-xl", "-ml-2", "p-2", "text-sm", "font-medium", "text-gray-500", "flex", "items-center" ]
hover_class_names = [ "hover:bg-white", "hover:border-alpha-black-50", "hover:text-gray-900", "hover:shadow-xs" ]