Sha256: 2c996445250e9517ea02ee67fa7dc0147a085314f83138c6831168a8b67e8d0f

Contents?: true

Size: 1.52 KB

Versions: 13

Compression:

Stored size: 1.52 KB

Contents

<div class="block">
  <div class="secondary-navigation">
    <ul class="wat-cf">
      <li class="first active"><%%= link_to pat(:list), url(:<%= @orm.name_plural %>, :index) %></li>
      <li><%%= link_to pat(:new), url(:<%= @orm.name_plural %>, :new) %></li>
    </ul>
  </div>
  <div class="content">
    <h2 class="title"><%%= pat(:all) %> <%% mt(:<%= @orm.name_singular %>) %></h2>
    <div class="inner">
      <table class="table">
        <tr>
          <%- @orm.columns.each_with_index do |column, i| -%>
          <th<%= " class=\"first\"" if i==0 %>><%%= mat(:<%= @orm.name_singular %>, :<%= column.name %>) %></th>
          <%- end -%>
          <th class="last">&nbsp;</th>
        </tr>
        <%% @<%= @orm.name_plural %>.each do |<%= @orm.name_singular %>| %>
        <tr>
          <%- @orm.columns.each_with_index do |column, i| -%>
          <td<%= " class=\"first\"" if i==0 %>><%%= <%= @orm.name_singular %>.<%= column.name %> %></td>
          <%- end -%>
          <td class="last">
            <%%= button_to pat(:edit), url(:<%= @orm.name_plural %>, :edit, :id => <%= @orm.name_singular %>.id), :method => :get, :class => :button_to %> |
            <%%= button_to pat(:delete), url(:<%= @orm.name_plural %>, :destroy, :id => <%= @orm.name_singular %>.id), :method => :delete, :class => :button_to %>
          </td>
        </tr>
        <%% end %>
      </table>
      <div class="actions-bar wat-cf">
        <div class="actions"></div>
      </div>
    </div>
  </div>
</div>
<%% content_for :sidebar, partial("base/sidebar") %>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
padrino-admin-0.9.18 lib/padrino-admin/generators/templates/erb/page/index.erb.tt
padrino-admin-0.9.17 lib/padrino-admin/generators/templates/erb/page/index.erb.tt
padrino-admin-0.9.16 lib/padrino-admin/generators/templates/erb/page/index.erb.tt
padrino-admin-0.9.15 lib/padrino-admin/generators/templates/erb/page/index.erb.tt
padrino-admin-0.9.14 lib/padrino-admin/generators/templates/erb/page/index.erb.tt
padrino-admin-0.9.13 lib/padrino-admin/generators/templates/erb/page/index.erb.tt
padrino-admin-0.9.12 lib/padrino-admin/generators/templates/erb/page/index.erb.tt
padrino-admin-0.9.11 lib/padrino-admin/generators/templates/erb/page/index.erb.tt
padrino-admin-0.9.10 lib/padrino-admin/generators/templates/erb/page/index.erb.tt
padrino-admin-0.9.9 lib/padrino-admin/generators/templates/erb/page/index.erb.tt
padrino-admin-0.9.7 lib/padrino-admin/generators/templates/erb/page/index.erb.tt
padrino-admin-0.9.6 lib/padrino-admin/generators/templates/erb/page/index.erb.tt
padrino-admin-0.9.5 lib/padrino-admin/generators/templates/erb/page/index.erb.tt