Files
ubicloud/views/components/edit_inline_button.erb
Burak Yucesoy 7b10d1b237 Add edit inline button component
This commits adds a new button component for inline editing functionality.
When clicked, it converts the text into an editable input field, allowing
users to modify the content directly on the page. Currently it only supportss
text input fields, but can be extended to support other types of inputs such
as select dropdowns or radio buttons in the future.
2025-05-28 04:44:29 +03:00

13 lines
221 B
Plaintext

<%# locals: (fields: nil, text: "Edit") %>
<%== part(
"components/button",
text: text,
icon: "hero-pencil",
extra_class: "edit-inline-btn",
type: "warning",
attributes: {
"data-fields" => fields
}
) %>