Sha256: cb2a62a67d5fcf2dacb572e31e5586406aae3949a23c71aaccf1acc4a03df33d

Contents?: true

Size: 875 Bytes

Versions: 14

Compression:

Stored size: 875 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" %>) %>
    <%%= 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 -->
  <%%= turbo_frame_tag "<%= class_name.underscore.pluralize %>", target: '_top' do %>
    <%%= render('table') %>
    <div class="py-2">
      <%%== render partial: 'shared/pagination', locals: { pagy: @pagy } %>
    </div>
  <%% end %>
<%% end %>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
tybo-0.4.1 lib/generators/bo/templates/index.html.erb
tybo-0.4.0 lib/generators/bo/templates/index.html.erb
tybo-0.3.26 lib/generators/bo/templates/index.html.erb
tybo-0.3.24 lib/generators/bo/templates/index.html.erb
tybo-0.3.23 lib/generators/bo/templates/index.html.erb
tybo-0.3.22 lib/generators/bo/templates/index.html.erb
tybo-0.3.21 lib/generators/bo/templates/index.html.erb
tybo-0.3.20 lib/generators/bo/templates/index.html.erb
tybo-0.3.19 lib/generators/bo/templates/index.html.erb
tybo-0.3.18 lib/generators/bo/templates/index.html.erb
tybo-0.3.17 lib/generators/bo/templates/index.html.erb
tybo-0.3.16 lib/generators/bo/templates/index.html.erb
tybo-0.3.15 lib/generators/bo/templates/index.html.erb
tybo-0.3.14 lib/generators/bo/templates/index.html.erb