commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-new / civicrm / tools / templates / CRM / Auction / Page / Manage.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.6 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2015 |
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 {capture assign=newAuctionURL}{crmURL p="civicrm/admin/auction/add" q="action=add&reset=1"}{/capture}
27 <a accesskey="N" href="{$newAuctionURL}" id="newManageAuction" class="button"><span>&raquo; {ts}New Auction{/ts}</span></a>
28 <br/><br/>
29 {include file="CRM/Auction/Form/SearchAuction.tpl"}
30
31 {if $rows}
32 <div id=auction_status_id>
33 {strip}
34 {include file="CRM/common/pager.tpl" location="top"}
35 {include file="CRM/common/pagerAToZ.tpl}
36 <table class="selector">
37 <tr class="columnheader">
38 <th>{ts}Auction{/ts}</th>
39 <th>{ts}Public?{/ts}</th>
40 <th>{ts}Starts{/ts}</th>
41 <th>{ts}Ends{/ts}</th>
42 <th>{ts}Active?{/ts}</th>
43 <th></th>
44 </tr>
45 {foreach from=$rows item=row}
46 <tr class="{cycle values="odd-row,even-row"} {$row.class}{if NOT $row.is_active} disabled{/if}">
47 <td>{$row.title}&nbsp;&nbsp;({ts}ID:{/ts} {$row.id})</td>
48 <td>{if $row.is_public eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
49 <td>{$row.start_date|crmDate}</td>
50 <td>{$row.end_date|crmDate}</td>
51 <td>{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
52 <td>{$row.action}</td>
53 </tr>
54 {/foreach}
55 </table>
56 {include file="CRM/common/pager.tpl" location="bottom"}
57 {/strip}
58
59 </div>
60 {else}
61 {if $isSearch eq 1}
62 <div class="status messages">
63 <dl>
64 <dt><div class="icon inform-icon"></div></dt>
65 {capture assign=browseURL}{crmURL p='civicrm/auction/manage' q="reset=1"}{/capture}
66 <dd>
67 {ts}No available Auctions match your search criteria. Suggestions:{/ts}
68 <div class="spacer"></div>
69 <ul>
70 <li>{ts}Check your spelling.{/ts}</li>
71 <li>{ts}Try a different spelling or use fewer letters.{/ts}</li>
72 <li>{ts}Make sure you have enough privileges in the access control system.{/ts}</li>
73 </ul>
74 {ts 1=$browseURL}Or you can <a href='%1'>browse all available Current Auctions</a>.{/ts}
75 </dd>
76 </dl>
77 </div>
78 {else}
79 <div class="messages status">
80 <dl>
81 <dt><div class="icon inform-icon"></div></dt>
82 <dd>{ts 1=$newAuctionURL}There are no auctions created yet. You can <a href='%1'>add one</a>.{/ts}</dd>
83 </dl>
84 </div>
85 {/if}
86 {/if}