[BUGFIX] Show information if access is not allowed in element information
[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:lang/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:lang/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:lang/Resources/Private/Language/locallang_common.xlf:back" />
47 </a>
48 </f:if>
49 <f:if condition="{refLines}">
50 <h3><f:translate key="LLL:EXT:lang/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:lang/Resources/Private/Language/locallang_core.xlf:show_item.php.title" /></th>
57 <th><f:translate key="LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:show_item.php.table" /></th>
58 <th><f:translate key="LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:show_item.php.uid" /></th>
59 <th><f:translate key="LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:show_item.php.field" /></th>
60 <th><f:translate key="LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:show_item.php.flexpointer" /></th>
61 <th><f:translate key="LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:show_item.php.softrefKey" /></th>
62 <th><f:translate key="LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:show_item.php.sorting" /></th>
63 <th class="col-control"></th>
64 </tr>
65 </thead>
66 <tbody>
67 <f:for each="{refLines}" as="refLine">
68 <f:render section="refLineRow" arguments="{line: refLine, maxTitleLength: maxTitleLength}" />
69 </f:for>
70 </tbody>
71 </table>
72 </div>
73 </f:if>
74 <f:if condition="{refFromLines}">
75 <h3><f:translate key="LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:show_item.php.referencesFromThisItem" /></h3>
76 <div class="table-fit">
77 <table class="table table-striped table-hover">
78 <thead>
79 <tr>
80 <th class="col-icon"></th>
81 <th class="col-title"><f:translate key="LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:show_item.php.title" /></th>
82 <th><f:translate key="LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:show_item.php.table" /></th>
83 <th><f:translate key="LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:show_item.php.uid" /></th>
84 <th><f:translate key="LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:show_item.php.field" /></th>
85 <th><f:translate key="LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:show_item.php.flexpointer" /></th>
86 <th><f:translate key="LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:show_item.php.softrefKey" /></th>
87 <th><f:translate key="LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:show_item.php.sorting" /></th>
88 <th><f:translate key="LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:show_item.php.refString" /></th>
89 <th class="col-control"></th>
90 </tr>
91 </thead>
92 <tbody>
93 <f:for each="{refFromLines}" as="refFromLine">
94 <f:render section="refFromLineRow" arguments="{line: refFromLine, maxTitleLength: maxTitleLength}" />
95 </f:for>
96 </tbody>
97 </table>
98 </div>
99 </f:if>
100 </f:then>
101 <f:else>
102 <f:be.infobox state="2">{f:translate(key: 'LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:labels.noEditPermission')}</f:be.infobox>
103 </f:else>
104 </f:if>
105
106
107
108 <f:section name="extraFieldRow">
109 <tr>
110 <th class="col-nowrap">{row.fieldLabel}</th>
111 <td>
112 <f:if condition="{row.creatorRecord}">
113 <div class="media">
114 <div class="media-left">
115 {row.creatorRecord.icon -> f:format.raw()}
116 </div>
117 <div class="media-body">
118 <strong>{row.creatorRecord.username}</strong><br>
119 {row.creatorRecord.realName}
120 </div>
121 </div>
122 </f:if>
123 <f:if condition="{row.value}">
124 {row.value}
125 </f:if>
126 </td>
127 </tr>
128 </f:section>
129
130 <f:section name="fieldRow">
131 <tr>
132 <th class="col-nowrap">{row.fieldLabel}</th>
133 <td>{row.fieldValue}</td>
134 </tr>
135 </f:section>
136
137 <f:section name="refLineRow">
138 <tr>
139 <f:if condition="{line.record}">
140 <f:then>
141 <td class="col-icon"><a href="{line.url}" title="id={line.record.uid}">{line.icon -> f:format.raw()}</a></td>
142 <td class="col-title"><a href="{line.url}" title="[id={line.record.uid}] {line.recordTitle}">{line.recordTitle -> f:format.crop(maxCharacters: maxTitleLength)}</a></td>
143 <td>{line.title}</td>
144 <td><span title="{f:translate(key: 'LLL:EXT:lang/Resources/Private/Language/locallang_common.xlf:page')}: {line.parentRecordTitle} (uid={line.record.pid})">
145 {line.record.uid}
146 </span></td>
147 </f:then>
148 <f:else>
149 <td class="col-icon"></td>
150 <td class="col-title"><f:translate key="LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:show_item.php.missing_record" /> (uid={line.row.recuid}</td>
151 <td>{line.row.title}</td>
152 <td></td>
153 </f:else>
154 </f:if>
155 <td>{line.labelForTableColumn}</td>
156 <td>{line.row.flexpointer}</td>
157 <td>{line.row.softref_key}</td>
158 <td>{line.row.sorting}</td>
159 <td class="col-control">
160 <f:render section="action" arguments="{line: line.actions}" />
161 </td>
162 </tr>
163 </f:section>
164
165 <f:section name="refFromLineRow">
166 <tr>
167 <f:if condition="{line.record}">
168 <f:then>
169 <td class="col-icon"><a href="{line.url}" title="id={line.record.uid}">{line.icon -> f:format.raw()}</a></td>
170 <td class="col-title"><a href="{line.url}" title="[id={line.record.uid}] {line.recordTitle}">{line.recordTitle -> f:format.crop(maxCharacters: maxTitleLength)}</a></td>
171 <td>{line.title}</td>
172 <td>{line.row.ref_uid}</td>
173 </f:then>
174 <f:else>
175 <td class="col-icon"></td>
176 <td class="col-title"><f:translate key="LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:show_item.php.missing_record" /> (uid={line.row.recuid}</td>
177 <td>{line.row.title}</td>
178 <td></td>
179 </f:else>
180 </f:if>
181 <td>{line.labelForTableColumn}</td>
182 <td>{line.row.flexpointer}</td>
183 <td>{line.row.softref_key}</td>
184 <td>{line.row.sorting}</td>
185 <td>{line.row.ref_string}</td>
186 <td class="col-control">
187 <f:render section="action" arguments="{line: line.actions}" />
188 </td>
189 </tr>
190 </f:section>
191
192 <f:section name="action">
193 <div class="btn-group" role="group">
194 <f:if condition="{line.webListUrl}">
195 <a class="btn btn-default btn-sm" href="#" onclick="{line.viewOnClick}" title="{f:translate(key: 'LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:labels.showPage')}">
196 <core:icon identifier="actions-document-view" size="small" />
197 </a>
198 </f:if>
199 <a class="btn btn-default btn-sm" href="{line.recordEditUrl}">
200 <core:icon identifier="actions-open" size="small" />
201 </a>
202 </div>
203 <div class="btn-group" role="group">
204 <a class="btn btn-default btn-sm" href="{line.recordHistoryUrl}">
205 <core:icon identifier="actions-document-history-open" size="small" />
206 </a>
207 </div>
208 <f:if condition="{line.webListUrl}">
209 <div class="btn-group" role="group">
210 <a class="btn btn-default btn-sm" href="{line.webListUrl}" title="{f:translate(key: 'LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:labels.showList')}">
211 <core:icon identifier="actions-system-list-open" size="small" />
212 </a>
213 </div>
214 </f:if>
215 </f:section>