list.rhtml

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

RHTML
36
字号
<h1>Listing documents</h1><table>  <tr>    <th width="40%" align="left">Name</th>
	<th width="60%"></th>  </tr><% for document in @documents %>  <tr>    <td width="40%"><%= document.name %></td>    <td width="60%">| <%= link_to 'Show', :action => 'show', :id => document %>    | <%= link_to 'Edit', :action => 'edit', :id => document %>    | <%= link_to 'Destroy', { :action => 'destroy', :id => document }, :confirm => 'Are you sure?', :post => true %></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 => @document_pages.current.previous } if @document_pages.current.previous %> | <%= link_to 'Next page', { :page => @document_pages.current.next } if @document_pages.current.next %>

<br /><br />

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

⌨️ 快捷键说明

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