Merge remote-tracking branch 'upstream/4.4' into 4.4-master-2014-06-01-20-54-24
[civicrm-core.git] / tools / templates / CRM / Auction / Page / Item.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.5 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2014 |
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
8 | |
9 | CiviCRM is free software; you can copy, modify, and distribute it |
10 | under the terms of the GNU Affero General Public License |
11 | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
12 | |
13 | CiviCRM is distributed in the hope that it will be useful, but |
14 | WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
16 | See the GNU Affero General Public License for more details. |
17 | |
18 | You should have received a copy of the GNU Affero General Public |
19 | License and the CiviCRM Licensing Exception along |
20 | with this program; if not, contact CiviCRM LLC |
21 | at info[AT]civicrm[DOT]org. If you have questions about the |
22 | GNU Affero General Public License or the licensing of CiviCRM, |
23 | see the CiviCRM license FAQ at http://civicrm.org/licensing |
24 +--------------------------------------------------------------------+
25 *}
26 {if $manageItemURL}<a accesskey="N" href="{$manageItemURL}" id="manageItem" class="button"><span>&raquo; {ts}Manage Items{/ts}</span></a><br/><br/>{/if}
27
28 {include file="CRM/Auction/Form/SearchItem.tpl"}
29
30 {if $rows}
31 <div id=item_status_id>
32 {strip}
33 {include file="CRM/common/pager.tpl" location="top"}
34 {include file="CRM/common/pagerAToZ.tpl}
35 <table class="selector">
36 <tr class="columnheader">
37 <th></th>
38 <th>{ts}Item{/ts}</th>
39 <th>{ts}Max Bid{/ts}</th>
40 <th>{ts}Buy Now Price{/ts}</th>
41 <th>{ts}Retail Value{/ts}</th>
42 <th>{ts}Bidding Ends On{/ts}</th>
43 </tr>
44 {foreach from=$rows item=row}
45 <tr class="{cycle values="odd-row,even-row"} {$row.class}{if NOT $row.is_active} disabled{/if}">
46 <td><img src="{$config->resourceBase}i/contribute/default_premium.jpg" width="70px" height="50px"/></td>
47 <td>{$row.title}</td>
48 <td>{$row.max_bid|crmMoney}</td>
49 <td>{if $row.buy_now_value}{$row.buy_now_value|crmMoney} &nbsp;&raquo; <a href="#">buy now</a>{/if}</td>
50 <td>{$row.retail_value|crmMoney}</td>
51 <td>{$row.bid_end_date|crmDate}</td>
52 </tr>
53 {/foreach}
54 </table>
55 {include file="CRM/common/pager.tpl" location="bottom"}
56 {/strip}
57
58 </div>
59 {else}
60 {if $isSearch eq 1}
61 <div class="status messages">
62 <dl>
63 <dt><div class="icon inform-icon"></div></dt>
64 {capture assign=browseURL}{crmURL p='civicrm/auction/manage' q="reset=1"}{/capture}
65 <dd>
66 {ts}No available Auctions match your search criteria. Suggestions:{/ts}
67 <div class="spacer"></div>
68 <ul>
69 <li>{ts}Check your spelling.{/ts}</li>
70 <li>{ts}Try a different spelling or use fewer letters.{/ts}</li>
71 <li>{ts}Make sure you have enough privileges in the access control system.{/ts}</li>
72 </ul>
73 {ts 1=$browseURL}Or you can <a href='%1'>browse all available Current Auctions</a>.{/ts}
74 </dd>
75 </dl>
76 </div>
77 {else}
78 <div class="messages status">
79 <dl>
80 <dt><div class="icon inform-icon"></div></dt>
81 <dd>{ts 1=$newAuctionURL}There are no auctions created yet. You can <a href='%1'>add one</a>.{/ts}</dd>
82 </dl>
83 </div>
84 {/if}
85 {/if}