Merge branch 'b-3.6.1' of ../kivitendo-erp_20220811
[kivitendo-erp.git] / templates / webpages / webdav / _list.html
1 [% USE HTML %][% USE T8 %][%- USE LxERP -%]
2
3 [%- IF INSTANCE_CONF.get_webdav %]
4 <div id="ui-tabs-webdav">
5 <div class="listtop">[%- 'Documents in the WebDAV repository' | $T8 %]</div>
6
7 [% IF WEBDAV && WEBDAV.size %]
8  <table>
9   <thead>
10    <tr class="listheading">
11     <th>[% 'File name' | $T8 %]</th>
12     <th>[% 'WebDAV link' | $T8 %]</th>
13    </tr>
14   </thead>
15
16   <tbody>
17 [%- FOREACH file = WEBDAV %]
18    <tr class="listrow">
19     <td>[% HTML.escape(file.name) %]</td>
20     <td><a href="[% HTML.escape(file.link) %]">[% HTML.escape(file.type) %]</a></td>
21    </tr>
22 [%- END %]
23   </tbody>
24  </table>
25
26 [% ELSE %]
27  <p>[% LxERP.t8("There are no documents in the WebDAV directory at the moment.") %]</p>
28 [% END %]
29 </div>
30
31 [%- END %]