list.rhtml

来自「A Hotel Management System based on Ruby 」· RHTML 代码 · 共 41 行

RHTML
41
字号
<h1>Listing prices</h1>

<table width="600">
  <tr>
  <th align="left" width="20%">Room Name</th>
  <th align="left" width="15%">Adults</th>
  <th align="left" width="15%">Children</th>
  <th align="left" width="50%"></th>
  
  
  </tr>
  
<% for price in @prices %>
  <tr>
  <td width="20%"><%= price.room.name %></td>
  <td width="15%"><%= price.adults %></td>
  <td width="15%"><%= price.children %></td>
  
  
  
    <td width="50%">| <%= link_to 'Show', :action => 'show', :id => price %>
    | <%= link_to 'Edit', :action => 'edit', :id => price %>
    | <%= link_to 'Destroy', {:action => 'destroy', :id => price}, :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', { :page => @price_pages.current.previous } if @price_pages.current.previous %> | <%= link_to 'Next page', { :page => @price_pages.current.next } if @price_pages.current.next %> 

<br /><br />

<%= link_to 'New price', :action => 'new' %>
</p>
      </div>
   <div class="roundedcornr_bottom_284975"><div></div></div>
</div>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?