Sha256: 6edbfd03ad7ef5405c3de27f5e36921ebd0208e3bdb660689a14f9f4b45b2cd5
Contents?: true
Size: 1.33 KB
Versions: 1
Compression:
Stored size: 1.33 KB
Contents
.page-header = link_to new_<%= prefixed_plain_model_url %>_path, class: 'btn btn-success pull-right' do %i.glyphicon.glyphicon-plus New <%= human_name %> %h1 <%= plural_table_name.humanize %></h1> %table.table.table-striped.table-hover.table-bordered %thead %tr <%- attributes.reject(&:password_digest?).each do |attribute| -%> %th <%= attribute.human_name %> <%- end -%> %th %th %tbody - @<%= plural_table_name %>.each do |<%= singular_table_name %>| %tr <%- attributes.reject(&:password_digest?).each do |attribute| -%> %td = link_to <%= singular_table_name %>.<%= attribute.name %>, <%= "[:#{prefix}, #{singular_table_name}]" %> <%- end -%> %td.text-right = link_to 'Edit', edit_<%= prefixed_plain_model_url %>_path(<%= singular_table_name %>), class: 'btn btn-primary' %td.text-right = link_to 'Destroy', <%= "[:#{prefix}, #{singular_table_name}]" %>, method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn btn-danger' .row .col-md-8 = paginate @<%= plural_table_name %>, theme: 'admin-bootstrap' .col-md-4.text-right .btn-group.per-page - [ 10, 25, 100, 250, 500, 1000 ].each do |i| = link_to i, { action: :index, page: params[:page], per_page: i }, class: "btn #{per_page_class(<%= class_name %>, i)}"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
admin-panel-0.1.4 | lib/generators/admin_panel/scaffold/templates/views/haml/index.html.haml.erb |