selectedlist.tpl 1.28 KB
Newer Older
Penny Leach's avatar
Penny Leach committed
1
2
<p id="{$prefix}_empty_selectlist"{if !$selectedlist} class="hidden"{/if}>{str tag=nofilesfound section=artefact.file}</p>
<table id="{$prefix}_selectlist"  class="attachments fullwidth{if !$selectedlist} hidden{/if}">
3
4
5
6
7
8
9
10
11
12
 <thead>
  <tr>
   <th></th>
   <th>{str tag=Name section=artefact.file}</th>
   <th>{str tag=Description section=artefact.file}</th>
   <th></th>
  </tr>
 </thead>
 <tbody>
  {foreach from=$selectedlist item=file}
13
    {assign var=displaytitle value=$file->title|str_shorten_text:34|safe}
14
  <tr class="{cycle values='r0,r1'}{if $highlight && $highlight == $file->id} highlight-file{/if}">
15
    <td>
16
      <img src="{if $file->artefacttype == 'image'}{$WWWROOT}artefact/file/download.php?file={$file->id}&size=20x20{else}{theme_url filename=images/`$file->artefacttype`.gif}{/if}">
17
    </td>
18
    <td>
19
      <a href="{$WWWROOT}artefact/file/download.php?file={$file->id}" target="_blank" title="{str tag=downloadfile section=artefact.file arg1=$displaytitle}">{$displaytitle}</a>
20
    </td>
21
    <td>{$file->description}</td>
22
    <td>
23
       <input type="submit" class="button small unselect" name="{$prefix}_unselect[{$file->id}]" value="{str tag=remove}" />
24
       <input type="hidden" name="{$prefix}_selected[{$file->id}]" value="{$file->id}">
25
26
27
28
29
    </td>
  </tr>
  {/foreach}
 </tbody>
</table>