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

📄 list_pending.rhtml

📁 A Hotel Management System based on Ruby on Rails.
💻 RHTML
字号:
<h1>Listing pending contracts</h1>
Here are contracts listet, that are confirmed but not back with a valid signature.
<br />
<table>
  <tr>
  <td id="listitem"><b>Name</b></td>
  <td id="listitem"><b>Arrival</b></td>
  <td id="listitem"><b>Departure</b></td>
  
  </tr>
  
<% for contract in @contracts %>
  <tr>
  <td id="listitem" width="40%"><%= contract.customer.name %></td>
  <td id="listitem" width="10%"><%= contract.arrival.strftime(@user.datestring) %></td>
  <td id="listitem" width="10%"><%= contract.departure.strftime(@user.datestring) %></td>
  
  
    <td width="40%">| <%= link_to 'Confirm', { :action => 'confirm', :id => contract } %>
    | <%= link_to 'Show', :action => 'show', :id => contract %>
    | <%= link_to 'Edit', :action => 'edit', :id => contract %>
    | <%= link_to 'Destroy', { :action => 'destroy', :id => contract }, :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 => @contract_pages.current.previous } if @contract_pages.current.previous %> | <%= link_to 'Next page', { :page => @contract_pages.current.next } if @contract_pages.current.next %> 

<br /><br />

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

⌨️ 快捷键说明

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