6561b06c8c406dabe2f3d823053a6ebaf2e5f7ae
[Packages/TYPO3.CMS.git] / typo3 / sysext / filelist / Resources / Private / Templates / FileList / Search.html
1 <html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
2 xmlns:core="http://typo3.org/ns/TYPO3/CMS/Core/ViewHelpers"
3 xmlns:fl="http://typo3.org/ns/TYPO3/CMS/Filelist/ViewHelpers">
4 <f:layout name="Default"/>
5
6 <f:section name="headline">
7 <h1><f:translate id="search">Search</f:translate>: "{searchWord}"</h1>
8 </f:section>
9
10 <f:section name="content">
11
12 <f:render partial="SearchForm" arguments="{searchWord:searchWord}" />
13
14 <f:if condition="{files->f:count()} > 0">
15 <div class="table-fit">
16 <table class="table table-striped table-hover" id="typo3-filelist">
17 <thead>
18 <tr data-uid="0" data-l10nparent="0">
19 <th class="col-icon nowrap"></th>
20 <th class="col-path nowrap">{f:translate( key:'LLL:EXT:filelist/Resources/Private/Language/locallang_mod_file_list.xlf:c_filepath' )}</th>
21 <th class="col-title nowrap">{f:translate( key:'LLL:EXT:filelist/Resources/Private/Language/locallang_mod_file_list.xlf:c_file' )}</th>
22 <th class="col-control"></th>
23 <th class="nowrap">{f:translate( key:'LLL:EXT:filelist/Resources/Private/Language/locallang_mod_file_list.xlf:c_fileext' )}</th>
24 <th class="nowrap">{f:translate( key:'LLL:EXT:filelist/Resources/Private/Language/locallang_mod_file_list.xlf:c_tstamp' )}</th>
25 <th class="nowrap">{f:translate( key:'LLL:EXT:filelist/Resources/Private/Language/locallang_mod_file_list.xlf:c_size' )}</th>
26 <th class="nowrap">{f:translate( key:'LLL:EXT:filelist/Resources/Private/Language/locallang_mod_file_list.xlf:c_rw' )}</th>
27 <th class="nowrap">{f:translate( key:'LLL:EXT:filelist/Resources/Private/Language/locallang_mod_file_list.xlf:c__REF_' )}</th>
28 </tr>
29 </thead>
30 <tbody>
31 <f:for each="{files}" as="file">
32 <tr data-uid="0" data-l10nparent="0">
33 <td class="col-icon nowrap">
34 <a class="t3js-contextmenutrigger" data-uid="{file.identifier}" data-table="sys_file" href="#">
35 <core:iconForResource resource="{file.resource}" />
36 </a>
37 </td>
38 <td class="col-path nowrap">
39 {file.path}
40 </td>
41 <td class="col-title col-responsive nowrap">
42 <f:if condition="{file.isMetadataEditable}">
43 <f:then>
44 <a href="#" class="filelist-file-title"
45 title="{f:translate( key:'LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:cm.editMetadata' )}"
46 data-url="{fl:uri.editSysFileMetadataRecord( uid:file.metadataUid, returnUrl:'{f:uri.action( action:\'search\', arguments:{ searchWord:\'{searchWord->f:format.htmlentities()}\' } ) -> f:format.raw()}' )}"
47 >
48 {file.name}
49 </a>
50 </f:then>
51 <f:else>
52 {file.name}
53 </f:else>
54 </f:if>
55 <f:if condition="{file.isImage}">
56 <br>
57 <f:image image="{file.resource}" maxWidth="{thumbnail.width}" maxHeight="{thumbnail.height}" />
58 </f:if>
59 </td>
60 <td class="col-control nowrap">
61 <div class="btn-group">
62 <f:if condition="{file.isEditable}">
63 <f:then>
64 <a href="#" class="btn btn-default filelist-file-edit"
65 title="{f:translate( key:'LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:cm.editcontent' )}"
66 data-url="{fl:uri.editFileContent( file:file.resource, returnUrl:'{f:uri.action( action:\'search\', arguments:{ searchWord:\'{searchWord->f:format.htmlentities()}\' } ) -> f:format.raw()}' )}"
67 >
68 <core:icon identifier="actions-page-open" />
69 </a>
70 </f:then>
71 <f:else>
72 <span class="btn btn-default disabled"><core:icon identifier="empty-empty" /></span>
73 </f:else>
74 </f:if>
75
76 <f:if condition="{file.IsMetadataEditable}">
77 <f:then>
78 <a href="#" class="btn btn-default filelist-file-edit"
79 title="{f:translate( key:'LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:cm.editMetadata' )}"
80 data-url="{fl:uri.editSysFileMetadataRecord(uid:file.metadataUid, returnUrl:'{f:uri.action( action:\'search\', arguments:{ searchWord:\'{searchWord->f:format.htmlentities()}\' } ) -> f:format.raw()}' )}"
81 >
82 <core:icon identifier="actions-open" />
83 </a>
84 </f:then>
85 <f:else>
86 <span class="btn btn-default disabled"><core:icon identifier="empty-empty" /></span>
87 </f:else>
88 </f:if>
89
90 <f:if condition="{file.publicUrl}">
91 <f:then>
92 <a href="#" class="btn btn-default filelist-file-view"
93 title="{f:translate( key:'LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:cm.view' )}"
94 data-url="{file.publicUrl}"
95 >
96 <core:icon identifier="actions-document-view" />
97 </a>
98 </f:then>
99 <f:else>
100 <span class="btn btn-default disabled"><core:icon identifier="empty-empty" /></span>
101 </f:else>
102 </f:if>
103
104 <f:if condition="{file.isReplaceable}">
105 <f:then>
106 <a href="#" class="btn btn-default filelist-file-replace"
107 title="{f:translate( key:'LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:cm.replace' )}"
108 data-url="{fl:uri.replaceFile( file:file.resource, returnUrl:'{f:uri.action( action:\'search\', arguments:{ searchWord:\'{searchWord->f:format.htmlentities()}\' } ) -> f:format.raw()}' )}"
109 >
110 <core:icon identifier="actions-edit-replace" />
111 </a>
112 </f:then>
113 <f:else>
114 <span class="btn btn-default disabled"><core:icon identifier="empty-empty" /></span>
115 </f:else>
116 </f:if>
117
118 <f:if condition="{file.isRenamable}">
119 <f:then>
120 <a href="#" class="btn btn-default filelist-file-rename"
121 title="{f:translate( key:'LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:cm.rename' )}"
122 data-url="{fl:uri.renameFile( file:file.resource, returnUrl:'{f:uri.action( action:\'search\', arguments:{ searchWord:\'{searchWord->f:format.htmlentities()}\' } ) -> f:format.raw()}' )}"
123 >
124 <core:icon identifier="actions-edit-rename" />
125 </a>
126 </f:then>
127 <f:else>
128 <span class="btn btn-default disabled"><core:icon identifier="empty-empty" /></span>
129 </f:else>
130 </f:if>
131
132 <f:if condition="{file.isReadable}">
133 <f:then>
134 <a href="#" class="btn btn-default filelist-file-info"
135 title="{f:translate( key:'LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:cm.info' )}"
136 data-identifier="{file.identifier}"
137 >
138 <core:icon identifier="actions-document-info" />
139 </a>
140 </f:then>
141 <f:else>
142 <span class="btn btn-default disabled"><core:icon identifier="empty-empty" /></span>
143 </f:else>
144 </f:if>
145 <f:if condition="{file.isDeletable}">
146 <f:then>
147 <a href="#" class="btn btn-default t3js-filelist-delete"
148 title="{f:translate( key:'LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:cm.delete' )}"
149 data-identifier="{file.identifier}"
150 data-title="{f:translate( key:'LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:cm.delete' )}"
151 data-content="{f:translate( key:'LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:mess.delete', arguments: {0:file.name} )}"
152 data-check="{f:if(condition:settings.jsConfirmationDelete, then:'1', else:'0')}"
153 data-delete-url="{deleteUrl}"
154 data-delete-type="delete_file"
155 data-redirect-url="{f:uri.action( action:'search', arguments:{ searchWord:'{searchWord->f:format.htmlentities()}' } )}"
156 >
157 <core:icon identifier="actions-edit-delete" />
158 </a>
159 </f:then>
160 <f:else>
161 <span class="btn btn-default disabled"><core:icon identifier="empty-empty" /></span>
162 </f:else>
163 </f:if>
164 </div>
165 </td>
166 <td class="nowrap">{file.extension}</td>
167 <td class="nowrap">{file.lastModified}</td>
168 <td class="nowrap">{file.size}</td>
169 <td class="nowrap">
170 <f:if condition="{file.isReadable}"><strong class="text-danger">{f:translate( key:'LLL:EXT:filelist/Resources/Private/Language/locallang_mod_file_list.xlf:read' )}</strong></f:if><f:if condition="{file.isWritable}"><strong class="text-danger">{f:translate( key:'LLL:EXT:filelist/Resources/Private/Language/locallang_mod_file_list.xlf:write' )}</strong></f:if>
171 </td>
172 <td class="nowrap">
173 <f:if condition="{file.referenceCount} > 0">
174 <f:then>
175 <a href="#" class="filelist-file-references" data-identifier="{file.identifier}" title="{f:translate( key:'LLL:EXT:backend/Resources/Private/Language/locallang.xlf:show_references' )} ({file.referenceCount})">{file.referenceCount}</a>
176 </f:then>
177 <f:else>
178 -
179 </f:else>
180 </f:if>
181 </td>
182 </tr>
183 </f:for>
184 </tbody>
185 </table>
186 </div>
187 </f:if>
188 </f:section>
189 </html>