Sha256: be7e3e14f53b8d987526fa7c47030d5163f073bb3e6608acaa62f38b9ecd73c4

Contents?: true

Size: 696 Bytes

Versions: 4

Compression:

Stored size: 696 Bytes

Contents

<h1>显示域列表</h1>

<table>
  <tr>
    <th>
      ID
    </th>
    <th>名称</th>
    <th col='3'>操作</th>
  </tr>
  <% @display_recipes.each do |recipe| %>
    <tr>
      <td><%= recipe.id %></td>
      <td><%= link_to "#{recipe.text}", loyal_admin_app.display_recipe_url(:id => recipe.id) %></td>
      <td>
        <%= link_to "编辑", loyal_admin_app.edit_display_recipe_url(:id => recipe.id) %>
        <%= link_to "删除", loyal_admin_app.display_recipe_url(:id => recipe.id), :method => :delete, :confirm => '确定要删除吗?' %>
      </td>
    </tr>
  <% end %>
</table>

<%= paginate @display_recipes %>

<%= link_to "新建", loyal_admin_app.new_display_recipe_url %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
loyal_admin-0.0.4 app/views/loyal_admin/display/recipes/index.html.erb
loyal_admin-0.0.3 app/views/loyal_admin/display/recipes/index.html.erb
loyal_admin-0.0.2 app/views/loyal_admin/display/recipes/index.html.erb
loyal_admin-0.0.1 app/views/loyal_admin/display/recipes/index.html.erb