Sha256: 5385c5e7dfe1b20d7b8d9eab036fddacf311c06feebc6594f39bbb157523136b

Contents?: true

Size: 767 Bytes

Versions: 12

Compression:

Stored size: 767 Bytes

Contents

<%%= render(IndexComponent.new) do |index| %>
  <!-- Header -->
  <%%= index.with_header(
    title: I18n.t('bo.<%= class_name.underscore %>.others').capitalize,
    subtitle: I18n.t('bo.<%= class_name.underscore %>.subtitle').capitalize,
      ) do |header| %>
    <%%= header.with_add_button(path: <%="new_#{options[:namespace]}_#{class_name.underscore}_path" %>) %>
  <%% end %>

  <!-- Search Bar -->
  <%%= render('search_bar') %>
  <!-- Table -->
  <%%= turbo_frame_tag "<%= class_name.underscore.pluralize %>", target: '_top', class: "shadow overflow-hidden rounded border-b border-gray-200" do %>
    <%%= render('table') %>
    <div class="py-2">
      <%%== render partial: 'shared/pagination', locals: { pagy: @pagy } %>
    </div>
  <%% end %>
<%% end %>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
tybo-0.2.6 lib/generators/bo/templates/index.html.erb
tybo-0.2.5 lib/generators/bo/templates/index.html.erb
tybo-0.2.4 lib/generators/bo/templates/index.html.erb
tybo-0.2.3 lib/generators/bo/templates/index.html.erb
tybo-0.2.2 lib/generators/bo/templates/index.html.erb
tybo-0.1.2 lib/generators/bo/templates/index.html.erb
tybo-0.1.0 lib/generators/bo/templates/index.html.erb
tybo-0.0.40 lib/generators/bo/templates/index.html.erb
tybo-0.0.39 lib/generators/bo/templates/index.html.erb
tybo-0.0.38 lib/generators/bo/templates/index.html.erb
tybo-0.0.37 lib/generators/bo/templates/index.html.erb
tybo-0.0.36 lib/generators/bo/templates/index.html.erb