Merge remote-tracking branch 'upstream/4.5' into 4.5-master-2014-11-04-01-46-50
[civicrm-core.git] / tools / templates / CRM / Auction / Page / ManageItem.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 <div class="crm-suubmit-buttons">
27 <a accesskey="N" href="{$newItemURL}" id="newAddItem" class="button"><span><div class="icon add-icon"></div>{ts}Add Item{/ts}</span></a>
28 <a accesskey="P" href="{$previewItemURL}" id="previewItem" class="button"><span><div class="icon preview-icon"></div>{ts}Preview Items{/ts}</span></a>
29 </div>
30 {include file="CRM/Auction/Form/SearchItem.tpl"}
31
32 {if $rows}
33 <div id=item_status_id>
34 {strip}
35 {include file="CRM/common/pager.tpl" location="top"}
36 {include file="CRM/common/pagerAToZ.tpl}
37 <table class="selector">
38 <tr class="columnheader">
39 <th>{ts}Donor{/ts}</th>
40 <th>{ts}Item{/ts}</th>
41 <th>{ts}Description{/ts}</th>
42 <th>{ts}Auction Type{/ts}</th>
43 <th>{ts}Quantity{/ts}</th>
44 <th>{ts}Retail Value{/ts}</th>
45 <th>{ts}Buy Now Value{/ts}</th>
46 <th>{ts}Min Bid Value{/ts}</th>
47 <th>{ts}Min Bid Increment{/ts}</th>
48 <th>{ts}Approved?{/ts}</th>
49 <th></th>
50 </tr>
51 {foreach from=$rows item=row}
52 <tr class="{cycle values="odd-row,even-row"} {$row.class}{if NOT $row.is_active} disabled{/if}">
53 <td>{$row.donorName}</td>
54 <td>{$row.title}&nbsp;&nbsp;({ts}ID:{/ts} {$row.id})</td>
55 <td>{$row.description}</td>
56 <td>{$row.auction_type}</td>
57 <td>{$row.quantity}</td>
58 <td>{$row.retail_value}</td>
59 <td>{$row.buy_now_value}</td>
60 <td>{$row.min_bid_value}</td>
61 <td>{$row.min_bid_increment}</td>
62 <td>{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
63 <td>{$row.action}</td>
64 </tr>
65 {/foreach}
66 </table>
67 {include file="CRM/common/pager.tpl" location="bottom"}
68 {/strip}
69
70 </div>
71 {else}
72 {if $isSearch eq 1}
73 <div class="status messages">
74 <dl>
75 <dt><div class="icon inform-icon"></div></dt>
76 {capture assign=browseURL}{crmURL p='civicrm/auction/manage' q="reset=1"}{/capture}
77 <dd>
78 {ts}No available Auctions match your search criteria. Suggestions:{/ts}
79 <div class="spacer"></div>
80 <ul>
81 <li>{ts}Check your spelling.{/ts}</li>
82 <li>{ts}Try a different spelling or use fewer letters.{/ts}</li>
83 <li>{ts}Make sure you have enough privileges in the access control system.{/ts}</li>
84 </ul>
85 {ts 1=$browseURL}Or you can <a href='%1'>browse all available Current Auctions</a>.{/ts}
86 </dd>
87 </dl>
88 </div>
89 {else}
90 <div class="messages status">
91 <dl>
92 <dt><div class="icon inform-icon"></div></dt>
93 <dd>{ts 1=$newAuctionURL}There are no auctions created yet. You can <a href='%1'>add one</a>.{/ts}</dd>
94 </dl>
95 </div>
96 {/if}
97 {/if}