{* DO NOT EDIT THIS FILE! Use an override template instead. *}
<SCRIPT LANGUAGE="JavaScript" type="text/javascript">
<!--
{literal}
function checkAll()
{
{/literal}
    if ( document.trashaction.selectall.value == "{'Select all'|i18n('design/standard/content/trash')}" )
{literal}
    {
{/literal}
        document.trashaction.selectall.value = "{'Deselect all'|i18n('design/standard/content/trash')}";
{literal}
        with (document.trashaction) 
	{
            for (var i=0; i < elements.length; i++) 
	    {
                if (elements[i].type == 'checkbox' && elements[i].name == 'DeleteIDArray[]')
                     elements[i].checked = true;
	    }
        }
     }
     else
     {
{/literal}
         document.trashaction.selectall.value = "{'Select all'|i18n('design/standard/content/trash')}";
{literal}
         with (document.trashaction) 
	 {
            for (var i=0; i < elements.length; i++) 
	    {
                if (elements[i].type == 'checkbox' && elements[i].name == 'DeleteIDArray[]')
                     elements[i].checked = false;
	    }
         }
     }
}
{/literal}
//-->
</SCRIPT>
{let page_limit=30
     list_count=fetch('content','trash_count')}
<form name="trashaction" action={concat("content/trash/")|ezurl} method="post" >

<div class="maincontentheader">
<h1>{"Trash"|i18n("design/standard/content/trash")}</h1>
</div>

{let object_list=fetch('content','trash_object_list',hash(limit,$page_limit,offset,$view_parameters.offset))}
{section show=$object_list}

<div class="buttonblock">
<input type="submit" name="EmptyButton" value="{'Empty Trash'|i18n('design/standard/content/trash')}" />
</div>

<table class="list" width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
    <th>{"Name"|i18n("design/standard/content/trash")}</th>
    <th>{"Class"|i18n("design/standard/content/trash")}</th>
    <th>{"Section"|i18n("design/standard/content/trash")}</th>
    <th>{"Current version"|i18n("design/standard/content/trash")}</th>
    <th>{"Restore"|i18n("design/standard/content/trash")}</th>
    <th width="1">{"Remove"|i18n("design/standard/content/trash")}</th>
{*    <th>
    <div class="buttonblock">
    <input type="submit" name="RemoveButton" value="{'Remove'|i18n('design/standard/content/trash')}" />
    </div>
    </th>*}
</tr>
{section name=Draft loop=$object_list sequence=array(bglight,bgdark)}
<tr>
    <td class="{$Draft:sequence}">
    <a href={concat("/content/versionview/",$Draft:item.id,"/",$Draft:item.current_version,"/")|ezurl}>{$Draft:item.content_class.identifier|class_icon( small, $Draft:item.content_class.name )}&nbsp;{$Draft:item.name|wash}</a>
    </td>
    <td class="{$Draft:sequence}">
    {$Draft:item.content_class.name|wash}
    </td>
    <td class="{$Draft:sequence}">
    {$Draft:item.section_id}
    </td>
    <td class="{$Draft:sequence}">
    {$Draft:item.current_version}
    </td>
    <td class="{$Draft:sequence}">
    <a href={concat("/content/edit/",$Draft:item.id,"/" )|ezurl}><img src={"edit.gif"|ezimage} border="0"></a>
    </td>
    <td class="{$Draft:sequence}" align="right" width="1">
    <input type="checkbox" name="DeleteIDArray[]" value="{$Draft:item.id}" />
  </td>
</tr>
{/section}
<tr>
  <td colspan="3">
  </td>
  <td colspan="3" align="right">
    <input name="selectall" onclick=checkAll() type="button" value="{'Select all'|i18n('design/standard/content/trash')}">
    <input type="image" name="RemoveButton" value="{'Remove'|i18n('design/standard/content/trash')}" src={"trash.png"|ezimage} />
  </td>
</tr>
</table>
{include name=navigator
         uri='design:navigator/google.tpl'
         page_uri='/content/trash'
         item_count=$list_count
         view_parameters=$view_parameters
         item_limit=$page_limit}


{section-else}

<div class="feedback">
<h2>{"Trash is empty"|i18n("design/standard/content/trash")}</h2>
</div>

{/section}
{/let}
{/let}