Sha256: cc33f3630494054ed317edc6d0842df87ca311b203390bd27da90621afbdcdb0

Contents?: true

Size: 891 Bytes

Versions: 8

Compression:

Stored size: 891 Bytes

Contents

<%%= render(IndexComponent.new) do |index| %>
  <!-- Header -->
  <%%= turbo_frame_tag "<%= class_name.underscore.pluralize %>", target: '_top' do %>
    <%%= 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" %>) %>
      <%%= header.with_export_button(path: <%= "export_csv_#{options[:namespace]}_#{class_name.pluralize.underscore}_path(format: :csv, params: {q: params.permit!['q']})"%>)%>
    <%% end %>

  <!-- Search Bar -->
    <%%= render('search_bar') %>
  <!-- Table -->
    <%%= render('table') %>
    <div class="py-2">
      <%%== render partial: 'shared/pagination', locals: { pagy: @pagy } %>
    </div>
  <%% end %>
<%% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
tybo-0.3.13 lib/generators/bo/templates/index.html.erb
tybo-0.3.12 lib/generators/bo/templates/index.html.erb
tybo-0.3.11 lib/generators/bo/templates/index.html.erb
tybo-0.3.10 lib/generators/bo/templates/index.html.erb
tybo-0.3.9 lib/generators/bo/templates/index.html.erb
tybo-0.3.8 lib/generators/bo/templates/index.html.erb
tybo-0.3.7 lib/generators/bo/templates/index.html.erb
tybo-0.3.6 lib/generators/bo/templates/index.html.erb