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