Sha256: ddd47c7b7fb7611b6af8a6187fea41b6a55e335c0a1cd64e609a0105ade24ce3

Contents?: true

Size: 1.26 KB

Versions: 83

Compression:

Stored size: 1.26 KB

Contents

- content_for :sidebar do
  #new-<%= singular_name %>{:style => "display: none;"}
    = render "form"

  .sidebar
    .content
      %h2 <%= plural_name.titleize %>
      = link_to "New <%= singular_name.titleize %>", '#', class: 'btn btn-block btn-primary', data: {'modal-target' => '#new-<%= singular_name %>', 'modal-title' => 'New <%= singular_name.titleize %>'}

%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_small/templates/view_index.html.haml
tenon-1.1.7 lib/generators/tenon/scaffold_small/templates/view_index.html.haml
tenon-1.1.6 lib/generators/tenon/scaffold_small/templates/view_index.html.haml
tenon-1.1.5 lib/generators/tenon/scaffold_small/templates/view_index.html.haml
tenon-1.1.4 lib/generators/tenon/scaffold_small/templates/view_index.html.haml
tenon-1.1.3 lib/generators/tenon/scaffold_small/templates/view_index.html.haml
tenon-1.1.2 lib/generators/tenon/scaffold_small/templates/view_index.html.haml
tenon-1.1.1 lib/generators/tenon/scaffold_small/templates/view_index.html.haml
tenon-1.0.76 lib/generators/tenon/scaffold_small/templates/view_index.html.haml
tenon-1.0.75 lib/generators/tenon/scaffold_small/templates/view_index.html.haml
tenon-1.0.74 lib/generators/tenon/scaffold_small/templates/view_index.html.haml
tenon-1.0.73 lib/generators/tenon/scaffold_small/templates/view_index.html.haml
tenon-1.0.72 lib/generators/tenon/scaffold_small/templates/view_index.html.haml
tenon-1.0.71 lib/generators/tenon/scaffold_small/templates/view_index.html.haml
tenon-1.0.70 lib/generators/tenon/scaffold_small/templates/view_index.html.haml
tenon-1.0.69 lib/generators/tenon/scaffold_small/templates/view_index.html.haml
tenon-1.0.68 lib/generators/tenon/scaffold_small/templates/view_index.html.haml
tenon-1.0.67 lib/generators/tenon/scaffold_small/templates/view_index.html.haml
tenon-1.0.66 lib/generators/tenon/scaffold_small/templates/view_index.html.haml
tenon-1.0.65 lib/generators/tenon/scaffold_small/templates/view_index.html.haml