[FEATURE] Add path where reference records are located to record info
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Resources / Private / Templates / ContentElement / ElementInformation.html
1 <f:if condition="{accessAllowed}">
2 <f:then>
3 <h1>
4 <f:if condition="{table}">
5 <small>{table}</small><br />{icon -> f:format.raw()}
6 <span title="{title}">{title -> f:format.crop(maxCharacters: maxTitleLength)}</span>
7 </f:if>
8 </h1>
9 <f:if condition="{missingFile}">
10 <f:be.infobox title="{f:translate(key:'LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:warning.file_missing')}" state="1">{missingFile}</f:be.infobox>
11 </f:if>
12 <f:if condition="{fileRenderer}">
13 <p>
14 {fileRenderer -> f:format.raw()}
15 </p>
16 </f:if>
17 <f:if condition="{fileObject}">
18 <p>
19 <f:media file="{fileObject}"
20 width="{width}"
21 height="{height}"
22 />
23 </p>
24 </f:if>
25 <f:if condition="{url}">
26 <p>
27 <a class="btn btn-default" href="{url}" target="_blank">
28 <core:icon identifier="actions-document-view" size="small" alternativeMarkupIdentifier="inline" />
29 <f:translate key="LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.show" />
30 </a>
31 </p>
32 </f:if>
33 <div class="table-fit table-fit-wrap">
34 <table class="table table-striped table-hover">
35 <f:for each="{extraFields}" as="extraField">
36 <f:render section="extraFieldRow" arguments="{row: extraField}" />
37 </f:for>
38 <f:for each="{fields}" as="field">
39 <f:render section="fieldRow" arguments="{row: field}" />
40 </f:for>
41 </table>
42 </div>
43 <f:if condition="{returnUrl}">
44 <a class="btn btn-primary" href="{returnUrl}">
45 <core:icon identifier="actions-view-go-back" size="small" />
46 <f:translate key="LLL:EXT:core/Resources/Private/Language/locallang_common.xlf:back" />
47 </a>
48 </f:if>
49 <f:if condition="{refLines}">
50 <h3><f:translate key="LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:show_item.php.referencesToThisItem" /></h3>
51 <div class="table-fit">
52 <table class="table table-striped table-hover">
53 <thead>
54 <tr>
55 <th class="col-icon"></th>
56 <th class="col-title"><f:translate key="LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:show_item.php.title" /></th>
57 <th><f:translate key="LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:show_item.php.table" /></th>
58 <th><f:translate key="LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:show_item.php.uid" /></th>
59 <th><f:translate key="LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.path" /></th>
60 <th><f:translate key="LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:show_item.php.field" /></th>
61 <th><f:translate key="LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:show_item.php.flexpointer" /></th>
62 <th><f:translate key="LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:show_item.php.softrefKey" /></th>
63 <th><f:translate key="LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:show_item.php.sorting" /></th>
64 <th class="col-control"></th>
65 </tr>
66 </thead>
67 <tbody>
68 <f:for each="{refLines}" as="refLine">
69 <f:render section="refLineRow" arguments="{line: refLine, maxTitleLength: maxTitleLength}" />
70 </f:for>
71 </tbody>
72 </table>
73 </div>
74 </f:if>
75 <f:if condition="{refFromLines}">
76 <h3><f:translate key="LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:show_item.php.referencesFromThisItem" /></h3>
77 <div class="table-fit">
78 <table class="table table-striped table-hover">
79 <thead>
80 <tr>
81 <th class="col-icon"></th>
82 <th class="col-title"><f:translate key="LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:show_item.php.title" /></th>
83 <th><f:translate key="LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:show_item.php.table" /></th>
84 <th><f:translate key="LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:show_item.php.uid" /></th>
85 <th><f:translate key="LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.path" /></th>
86 <th><f:translate key="LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:show_item.php.field" /></th>
87 <th><f:translate key="LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:show_item.php.flexpointer" /></th>
88 <th><f:translate key="LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:show_item.php.softrefKey" /></th>
89 <th><f:translate key="LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:show_item.php.sorting" /></th>
90 <th><f:translate key="LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:show_item.php.refString" /></th>
91 <th class="col-control"></th>
92 </tr>
93 </thead>
94 <tbody>
95 <f:for each="{refFromLines}" as="refFromLine">
96 <f:render section="refFromLineRow" arguments="{line: refFromLine, maxTitleLength: maxTitleLength}" />
97 </f:for>
98 </tbody>
99 </table>
100 </div>
101 </f:if>
102 </f:then>
103 <f:else>
104 <f:be.infobox state="2">{f:translate(key: 'LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.noEditPermission')}</f:be.infobox>
105 </f:else>
106 </f:if>
107
108
109
110 <f:section name="extraFieldRow">
111 <tr>
112 <th class="col-nowrap">{row.fieldLabel}</th>
113 <td>
114 <f:if condition="{row.creatorRecord}">
115 <div class="media">
116 <div class="media-left">
117 {row.creatorRecord.icon -> f:format.raw()}
118 </div>
119 <div class="media-body">
120 <strong>{row.creatorRecord.username}</strong><br>
121 {row.creatorRecord.realName}
122 </div>
123 </div>
124 </f:if>
125 <f:if condition="{row.value}">
126 {row.value}
127 </f:if>
128 </td>
129 </tr>
130 </f:section>
131
132 <f:section name="fieldRow">
133 <tr>
134 <th class="col-nowrap">{row.fieldLabel}</th>
135 <td>{row.fieldValue}</td>
136 </tr>
137 </f:section>
138
139 <f:section name="refLineRow">
140 <tr>
141 <f:if condition="{line.record}">
142 <f:then>
143 <td class="col-icon"><a href="{line.url}" title="id={line.record.uid}">{line.icon -> f:format.raw()}</a></td>
144 <td class="col-title"><a href="{line.url}" title="[id={line.record.uid}] {line.recordTitle}">{line.recordTitle -> f:format.crop(maxCharacters: maxTitleLength)}</a></td>
145 <td>{line.title}</td>
146 <td><span title="{f:translate(key: 'LLL:EXT:core/Resources/Private/Language/locallang_common.xlf:page')}: {line.parentRecordTitle} (uid={line.record.pid})">
147 {line.record.uid}
148 </span></td>
149 </f:then>
150 <f:else>
151 <td class="col-icon"></td>
152 <td class="col-title"><f:translate key="LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:show_item.php.missing_record" /> (uid={line.row.recuid}</td>
153 <td>{line.row.title}</td>
154 <td></td>
155 </f:else>
156 </f:if>
157 <td title="{line.path}" class="col-responsive">{line.path}</td>
158 <td>{line.labelForTableColumn}</td>
159 <td>{line.row.flexpointer}</td>
160 <td>{line.row.softref_key}</td>
161 <td>{line.row.sorting}</td>
162 <td class="col-control">
163 <f:render section="action" arguments="{line: line.actions}" />
164 </td>
165 </tr>
166 </f:section>
167
168 <f:section name="refFromLineRow">
169 <tr>
170 <f:if condition="{line.record}">
171 <f:then>
172 <td class="col-icon"><a href="{line.url}" title="id={line.record.uid}">{line.icon -> f:format.raw()}</a></td>
173 <td class="col-title"><a href="{line.url}" title="[id={line.record.uid}] {line.recordTitle}">{line.recordTitle -> f:format.crop(maxCharacters: maxTitleLength)}</a></td>
174 <td>{line.title}</td>
175 <td>{line.row.ref_uid}</td>
176 </f:then>
177 <f:else>
178 <td class="col-icon"></td>
179 <td class="col-title"><f:translate key="LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:show_item.php.missing_record" /> (uid={line.row.recuid}</td>
180 <td>{line.row.title}</td>
181 <td></td>
182 </f:else>
183 </f:if>
184 <td title="{line.path}" class="col-responsive">{line.path}</td>
185 <td>{line.labelForTableColumn}</td>
186 <td>{line.row.flexpointer}</td>
187 <td>{line.row.softref_key}</td>
188 <td>{line.row.sorting}</td>
189 <td>{line.row.ref_string}</td>
190 <td class="col-control">
191 <f:render section="action" arguments="{line: line.actions}" />
192 </td>
193 </tr>
194 </f:section>
195
196 <f:section name="action">
197 <div class="btn-group" role="group">
198 <f:if condition="{line.webListUrl}">
199 <a class="btn btn-default btn-sm" href="#" onclick="{line.viewOnClick}" title="{f:translate(key: 'LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.showPage')}">
200 <core:icon identifier="actions-document-view" size="small" />
201 </a>
202 </f:if>
203 <a class="btn btn-default btn-sm" href="{line.recordEditUrl}">
204 <core:icon identifier="actions-open" size="small" />
205 </a>
206 </div>
207 <div class="btn-group" role="group">
208 <a class="btn btn-default btn-sm" href="{line.recordHistoryUrl}">
209 <core:icon identifier="actions-document-history-open" size="small" />
210 </a>
211 </div>
212 <f:if condition="{line.webListUrl}">
213 <div class="btn-group" role="group">
214 <a class="btn btn-default btn-sm" href="{line.webListUrl}" title="{f:translate(key: 'LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.showList')}">
215 <core:icon identifier="actions-system-list-open" size="small" />
216 </a>
217 </div>
218 </f:if>
219 </f:section>