Sha256: 115f0f53fefbc99d4233afd28b49f7ea9e054f39eb8aa8a27553802a4241f301

Contents?: true

Size: 1.1 KB

Versions: 83

Compression:

Stored size: 1.1 KB

Contents

- content_for :sidebar do
  .sidebar
    .content
      %h2 <%= plural_name.titleize %>
      = link_to "New <%= singular_name.titleize %>", new_<%= singular_name %>_path, class: 'btn btn-block btn-primary'

%header
  %h1 <%= plural_name.titleize %>

  .tools
    = render "tenon/shared/section_header/sidebar_toggle"

    .header-button
      = link_to '#', id: 'quick-search-toggle' do
        .header-icon= fa_icon('fw search')

.toolbox
  = render "tenon/shared/section_header/quick_search", record_list: '#<%= plural_name %>'

.main-content
  = error_messages_for :<%= singular_name %>
  %ul#<%= plural_name %>.record-list<% if attributes.map(&:name).include?('list_order') %>.sortable<% end -%>{data: {records: {url: <%= plural_name %>_path(format: 'json'), template: 'tenon/templates/<%= plural_name %>/<%= singular_name %>_row', name: '<%= singular_name %>'}<% if attributes.map(&:name).include?('list_order') %>, :'reorder-path' => reorder_<%= plural_name %>_path<% end %>}}

  = link_to "Load More <%= plural_name.titleize %>", '#', :class => 'btn btn-comp infinite-loader', 'data-record-list' => '#<%= plural_name %>'

Version data entries

83 entries across 83 versions & 1 rubygems

Version Path
tenon-1.1.8 lib/generators/tenon/scaffold/templates/view_index.html.haml
tenon-1.1.7 lib/generators/tenon/scaffold/templates/view_index.html.haml
tenon-1.1.6 lib/generators/tenon/scaffold/templates/view_index.html.haml
tenon-1.1.5 lib/generators/tenon/scaffold/templates/view_index.html.haml
tenon-1.1.4 lib/generators/tenon/scaffold/templates/view_index.html.haml
tenon-1.1.3 lib/generators/tenon/scaffold/templates/view_index.html.haml
tenon-1.1.2 lib/generators/tenon/scaffold/templates/view_index.html.haml
tenon-1.1.1 lib/generators/tenon/scaffold/templates/view_index.html.haml
tenon-1.0.76 lib/generators/tenon/scaffold/templates/view_index.html.haml
tenon-1.0.75 lib/generators/tenon/scaffold/templates/view_index.html.haml
tenon-1.0.74 lib/generators/tenon/scaffold/templates/view_index.html.haml
tenon-1.0.73 lib/generators/tenon/scaffold/templates/view_index.html.haml
tenon-1.0.72 lib/generators/tenon/scaffold/templates/view_index.html.haml
tenon-1.0.71 lib/generators/tenon/scaffold/templates/view_index.html.haml
tenon-1.0.70 lib/generators/tenon/scaffold/templates/view_index.html.haml
tenon-1.0.69 lib/generators/tenon/scaffold/templates/view_index.html.haml
tenon-1.0.68 lib/generators/tenon/scaffold/templates/view_index.html.haml
tenon-1.0.67 lib/generators/tenon/scaffold/templates/view_index.html.haml
tenon-1.0.66 lib/generators/tenon/scaffold/templates/view_index.html.haml
tenon-1.0.65 lib/generators/tenon/scaffold/templates/view_index.html.haml