Sha256: c149ab97c0b8a82f17cea15706ddecc07e0e2334abb014932ff24758e3bef21e
Contents?: true
Size: 969 Bytes
Versions: 76
Compression:
Stored size: 969 Bytes
Contents
<%= content_tag :div, data: { target: "tab-group", index: index, controller: "tabs", tabs_view_value: view, tabs_group_id_value: group.id, tabs_active_tab_value: active_tab_name, tabs_resource_name_value: resource.underscore_name } do %> <% visible_tabs.each_with_index do |tab, index| %> <%= content_tag :div, **args(tab) do %> <div class="border rounded-lg p-2 -mx-2 -my-2 lg:p-4 lg:-mx-4 lg:-my-4 space-y-4"> <%= render Avo::TabSwitcherComponent.new resource: resource, current_tab: visible_tabs.first, group: group, active_tab_name: tab.name, view: view %> <% if !tab.is_empty? %> <div class="space-y-12"> <% tab.visible_items.each do |item| %> <%= render Avo::Items::SwitcherComponent.new resource: resource, item: item, index: index, form: form, view: @view %> <% end %> </div> <% end %> </div> <% end %> <% end %> <% end %>
Version data entries
76 entries across 76 versions & 1 rubygems