Sha256: d42c49c83cce1f8504529b8a2dabf8d30f220b70f180cf425020049eb230e370
Contents?: true
Size: 1.16 KB
Versions: 2
Compression:
Stored size: 1.16 KB
Contents
%h1.heading = "<%= plural_name.humanize %>" <% if options[:search] -%> .actions-bar %div{:class => "left search"} - form_for @search do |f| = f.label "Find:" = f.text_field :<%= attributes.first.name %> = f.submit("Search") <% if options[:pagination] -%> .right = will_paginate @collection, :prev_label => "« Back", :next_label => "Next »" .clear <% end %> <% end %> %p.actions = link_to 'New <%= singular_name.humanize %>', <%= new_path %> %table %thead.header %tr <% attributes.each do |attribute| -%> %th.<%= attribute.name %>= '<%= attribute.name.humanize %>' <% end -%> %th.actions= 'Actions' %tbody.items.<%= plural_name %> - <%= collection_instance %>.each do |<%= singular_name %>| = render 'item', :<%= singular_name %> => <%= singular_name %> <% if options[:pagination] && !options[:search] -%> = will_paginate(<%= collection_instance %>) <% end -%> <% if options[:pagination] && options[:search] -%> = will_paginate @collection, :prev_label => "« Back", :next_label => "Next »" <% end -%>
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
blakechambers-dry_scaffold-0.3.6 | generators/dry_scaffold/templates/views/haml/index.html.haml |
michel-dry_scaffold-0.3.5 | generators/dry_scaffold/templates/views/haml/index.html.haml |