📄 list_unconfirmed.rhtml
字号:
<h1>Listing unconfirmed contracts</h1>
Here are contracts listet, that are made by a customer over the web-frontend. After confirming a contract, the next state will be <b>pending</b>.
<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_public', :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 + -