⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 list.rhtml

📁 A Hotel Management System based on Ruby on Rails.
💻 RHTML
字号:
<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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -