Add Measurements tab and #new form

This commit is contained in:
2025-01-22 16:03:26 +01:00
parent 3d7daa8944
commit 9d60eee16b
11 changed files with 74 additions and 16 deletions

View File

@@ -125,6 +125,7 @@ module ApplicationHelper
def navigation_menu
menu_tabs = [
['measurements', 'scale-bathroom', :restricted],
['quantities', 'axis-arrow', :restricted, 'right'],
['units', 'weight-gram', :restricted],
['users', 'account-multiple-outline', :admin],
@@ -144,6 +145,11 @@ module ApplicationHelper
button_to name, options, html_options
end
def image_button_tag(name, image = nil, html_options = {})
name, html_options = link_or_button_options(:button, name, image, html_options)
button_tag name, html_options
end
def image_link_to(name, image = nil, options = nil, html_options = {})
name, html_options = link_or_button_options(:link, name, image, html_options)
link_to name, options, html_options

View File

@@ -0,0 +1,2 @@
module MeasurementsHelper
end