Sha256: 689730e8b4f2f31216805ce3aae185751be7ec8be9b7c9c5cebeb6c27cc1d864

Contents?: true

Size: 1.52 KB

Versions: 7

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_plural %>) %></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

7 entries across 6 versions & 1 rubygems

Version Path
padrino-admin-0.9.24 lib/padrino-admin/generators/templates/erb/page/index.erb.tt
padrino-admin-0.9.23 lib/padrino-admin/generators/templates/erb/page/index.erb.tt
padrino-admin-0.9.22 lib/padrino-admin/generators/templates/erb/page/index.erb.tt
padrino-admin-0.9.21 lib/padrino-admin/generators/templates/erb/page/index.erb.tt
padrino-admin-0.9.20 lib/padrino-admin/generators/templates/erubis/page/index.erubis.tt
padrino-admin-0.9.20 lib/padrino-admin/generators/templates/erb/page/index.erb.tt
padrino-admin-0.9.19 lib/padrino-admin/generators/templates/erb/page/index.erb.tt