notes.tpl 4.42 KB
Newer Older
Naomi Guyer's avatar
Naomi Guyer committed
1
2
{include file="header.tpl"}
<p>{str tag=notesdescription1 section=artefact.internal}</p>
Pat Kira's avatar
Pat Kira committed
3
<div class="table-responsive">
Pat Kira's avatar
Pat Kira committed
4
<table id="notes" class="table table-striped">
Naomi Guyer's avatar
Naomi Guyer committed
5
6
7
8
9
  <thead>
    <tr>
      <th>{str tag=Note section=artefact.internal}</th>
      <th>{str tag=currenttitle section=artefact.internal}</th>
      <th>{str tag=containedin section=artefact.internal}</th>
Pat Kira's avatar
Pat Kira committed
10
11
12
13
      <th class="text-center">
        <span class="glyphicon glyphicon-paperclip"></span>
        <span class="sr-only">{str tag=Attachments section=artefact.resume}</span>
      </th>
Naomi Guyer's avatar
Naomi Guyer committed
14
      <th><span class="accessible-hidden sr-only">{str tag=edit}</span></th>
Naomi Guyer's avatar
Naomi Guyer committed
15
16
17
18
19
20
21
    </tr>
  </thead>
  <tbody>
  {foreach from=$data item=n}
    <tr class="{cycle values='r1,r0'}">
      <td class="note-name">
      {if $n->locked}
Pat Kira's avatar
Pat Kira committed
22
        <h3><a class="notetitle" href="" id="n{$n->id}">{$n->title|str_shorten_text:80:true} <span class="accessible-hidden sr-only">{str tag=clickformore}</span></a></h3>
Naomi Guyer's avatar
Naomi Guyer committed
23
      {else}
Pat Kira's avatar
Pat Kira committed
24
        <h3><a class="notetitle" href="{$WWWROOT}artefact/internal/editnote.php?id={$n->id}" id="n{$n->id}">{$n->title|str_shorten_text:80:true} <span class="accessible-hidden sr-only">{str tag=clickformore}</span></a></h3>
Naomi Guyer's avatar
Naomi Guyer committed
25
26
27
28
29
30
31
32
33
      {/if}
       <div id="n{$n->id}_desc" class="hidden detail">{$n->description|clean_html|safe}
            {if $n->files}
            <div id="notefiles_{$n->id}">
                <table class="attachments fullwidth">
                    <thead class="expandable-head">
                        <tr>
                            <td colspan="2">
                                <a class="toggle" href="#">{str tag=attachedfiles section=artefact.blog}</a>
Pat Kira's avatar
Pat Kira committed
34
                                <span class="pull-right">
Naomi Guyer's avatar
Naomi Guyer committed
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
                                    <img class="fl" src="{theme_url filename='images/attachment.png'}" alt="{str tag=attachments section=artefact.blog}">
                                    {$n->files|count}
                                </span>
                            </td>
                        </tr>
                    </thead>
                    <tbody class="expandable-body">
                        {foreach from=$n->files item=file}
                            <tr class="{cycle values='r1,r0'}">
                                <td class="icon-container"><img src="{$file->icon}" alt=""></td>
                                <td class="valign">
                                    <div><a href="{$WWWROOT}artefact/file/download.php?file={$file->attachment}">{$file->title}</a></div>
                                    <div class="detail s">{$file->description}</div>
                                </td>
                            </tr>
                        {/foreach}
                    </tbody>
                </table>
            </div>
            {/if}
       </div>
      {if $n->tags}
        <div class="tags">{str tag=tags}: {list_tags tags=$n->tags owner=$n->owner}</div>
      {/if}
      </td>
      <td class="note-titled"><label class="hidden">{str tag=currenttitle section=artefact.internal}: </label>
      {foreach from=$n->blocks item=b}
        <div class="detail">
          {$b.blocktitle|str_shorten_text:30:true}
        </div>
      {/foreach}
      </td>
      <td class="note-containedin"><label class="hidden">{str tag=containedin section=artefact.internal}: </label>
      {foreach from=$n->views item=v}
        <div class="detail">
          <a href="{$v.fullurl}">{$v.viewtitle|str_shorten_text:30:true}</a>
          {if $v.ownername} - {str tag=by section=view} {if $v.ownerurl}<a href="{$v.ownerurl}">{/if}{$v.ownername}{if $v.ownerurl}</a>{/if}{/if}
        </div>
        {if $v.extrablocks}
            {for i 1 $v.extrablocks}
            <div class="detail">&nbsp;</div>
            {/for}
        {/if}
      {/foreach}
      </td>
      <td class="note-attachment"><label class="hidden">{str tag=Attachments section=artefact.resume}: </label> {$n->count}</td>
      <td class="right buttonscell btns2">
      {if $n->locked}
        <span class="s dull">{str tag=Submitted section=view}</span>
      {else}
Pat Kira's avatar
Pat Kira committed
85
86
87
88
        <a href="{$WWWROOT}artefact/internal/editnote.php?id={$n->id}" title="{str tag=edit}">
          <span class="glyphicon glyphicon-pencil"></span>
          <span class="sr-only">{str(tag=editspecific arg1=$n->title)|escape:html|safe}</span>
        </a>
Naomi Guyer's avatar
Naomi Guyer committed
89
90
91
92
93
94
95
        {if $n->deleteform}{$n->deleteform|safe}{/if}
      {/if}
      </td>
    </tr>
  {/foreach}
  </tbody>
</table>
Pat Kira's avatar
Pat Kira committed
96
</div>
Naomi Guyer's avatar
Naomi Guyer committed
97
98
{$pagination.html|safe}
{include file="footer.tpl"}