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