list.rhtml
来自「A Hotel Management System based on Ruby 」· RHTML 代码 · 共 39 行
RHTML
39 行
<h1><%= "Listing properties".t %></h1>
<table>
<tr class="list_heading">
<th width="15%"><%= "ID".t %></th>
<th width="15%"><%= "Name".t %></th>
<th width="15%"><%= "City".t %></th>
<th width="15%"><%= "Country".t %></th>
<th width="40%"></th>
</tr>
<% for property in @properties %>
<tr>
<td width="15%"><%= property.id %></td>
<td width="15%"><%= property.name %></td>
<td width="15%"><%= property.city %></td>
<td width="15%"><%= property.country %></td>
<td width="40%">| <%= link_to 'Show'.t, :action => 'show', :id => property %>
| <%= link_to 'Edit'.t, :action => 'edit', :id => property %>
| <%= link_to 'Destroy'.t, {:action => 'destroy', :id => property}, :confirm => 'Are you sure?' %></td>
</tr>
<% end %>
</table>
<br />
<div class="roundedcornr_box_284975">
<div class="roundedcornr_top_284975"><div></div></div>
<div class="roundedcornr_content_284975"><p>
<%= link_to 'Previous page'.t, { :page => @property_pages.current.previous } if @property_pages.current.previous %> | <%= link_to 'Next page'.t, { :page => @property_pages.current.next } if @property_pages.current.next %>
<br /><br />
<%= link_to 'New property'.t, :action => 'new' %>
</p>
</div>
<div class="roundedcornr_bottom_284975"><div></div></div>
</div>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?