Allow editing and resetting of all admin setting strings

This commit is contained in:
Râu Cao
2023-06-22 13:48:29 +02:00
parent 5cc03058c0
commit 84099bd3e1
14 changed files with 137 additions and 71 deletions

View File

@@ -2,11 +2,15 @@
module FormElements
class FieldsetComponent < ViewComponent::Base
def initialize(tag: "li", positioning: :vertical, title:, description: nil)
def initialize(tag: "li", positioning: :vertical,
title:, description: nil,
field_name: nil, resettable: false)
@tag = tag
@positioning = positioning
@title = title
@descripton = description
@field_name = field_name
@resettable = resettable
end
end
end