<h2>{i18n}Checked Out Documents{/i18n}</h2>
<p class="descriptiveText">{i18n}It may be necessary to override the <strong>checked-out</strong> status of a document if{/i18n}:
<ul>
<li>{i18n}the local copy of the checked-out document has been lost{/i18n};</li>
<li>{i18n}the user who did the check-out is not currently available to check it back in{/i18n}.</li>
</ul>
{i18n}Use the <strong>force checkin</strong> action in the listing below to
override the checked-out status.{/i18n}</p>
<!-- FIXME set classes here for listing. -->
{if (count($documents) !== 0)}
<table class="listing" cellspacing="5px">
    <thead>
        <tr>
            <th>{i18n}Document{/i18n}</th>
            <th>{i18n}Checked out by{/i18n}</th>
            <th>{i18n}Location{/i18n}</th>
            <th>&nbsp;</th>
        </tr>
    </thead>
    <tbody>
      
      {foreach item=oDocument from=$documents}
        <tr class="{cycle values=even,odd}">
            <td>{$oDocument->getName()}</td>
            <td>{assign var=iUserId
value=$oDocument->getCheckedOutUserId()}{php}$oUser =
User::get($this->_tpl_vars['iUserId']);  if (!PEAR::isError($oUser)) { print
$oUser->getName(); } else { print _kt("N/A"); }{/php}</td>
            <td class="descriptiveText">{$oDocument->getDisplayPath()}</td>
            <td><a href="{addQS}action=confirm&fDocumentId={$oDocument->getId()}{/addQS}">{i18n}force checkin{/i18n}</a></td>
        </tr>
      {/foreach}
    </tbody>
    <!-- FIXME do we want batching? -->
</table>
{else}
   <div class="ktInfoMessage">
     <span>{i18n}No documents are currently checked out.{/i18n}</span>
   </div>
{/if}
