Backend.html 3.12 KB
Newer Older
1
2
{namespace be=TYPO3\CMS\Backend\ViewHelpers}

3
4
5
6
7
8
<style type="text/css">
	.backend-preview-table > tbody > tr > th {
		white-space: normal;
	}
</style>

9
10
<be:link.editRecord uid="{uid}" table="tt_content">
	<br/>
Tim Wagner's avatar
Tim Wagner committed
11
	<f:if condition="{data.showApiResult}">
12
		<div class="alert alert-warning">
13
14
15
16
17
18
			<h4 class="alert-title">
				<f:translate key="backendPreview.apiDebugWarning.header" extensionName="SgYoutube"/>
			</h4>
			<p class="alert-message">
				<f:translate key="backendPreview.apiDebugWarning.message" extensionName="SgYoutube"/>
			</p>
19
20
		</div>
	</f:if>
21
	<table class="table table-striped table-bordered backend-preview-table">
22
		<thead>
23
			<tr>
24
25
26
27
28
				<th scope="col" style="width: 50%">
					<f:translate key="backendPreview.settings" extensionName="SgYoutube"/>
				</th>
				<th scope="col" style="width: 50%">
					<f:translate key="backendPreview.values" extensionName="SgYoutube"/>
29
30
				</th>
			</tr>
31
		</thead>
Tim Wagner's avatar
Tim Wagner committed
32

33
		<tbody>
Tim Wagner's avatar
Tim Wagner committed
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
			<tr>
				<th scope="row">
					<f:translate key="flexform.id" extensionName="SgYoutube"/>
				</th>
				<td>
					{data.youtubeId}
				</td>
			</tr>

			<tr>
				<th scope="row">
					<f:translate key="flexform.maxResults" extensionName="SgYoutube"/>
				</th>
				<td>
					{data.maxResults}
				</td>
			</tr>

52
53
54
55
56
57
58
59
60
			<tr>
				<th scope="row">
					<f:translate key="flexform.showTitle" extensionName="SgYoutube"/>
				</th>
				<td>
					<f:render partial="BooleanIcon" arguments="{boolValue: '{data.showTitle}'}"/>
				</td>
			</tr>

Tim Wagner's avatar
Tim Wagner committed
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
			<tr>
				<th scope="row">
					<f:translate key="flexform.showDescription" extensionName="SgYoutube"/>
				</th>
				<td>
					<f:render partial="BooleanIcon" arguments="{boolValue: '{data.showDescription}'}"/>
				</td>
			</tr>

			<tr>
				<th scope="row">
					<f:translate key="flexform.disableLightbox" extensionName="SgYoutube"/>
				</th>
				<td>
					<f:render partial="BooleanIcon" arguments="{boolValue: '{data.disableLightbox}'}"/>
				</td>
			</tr>

			<tr>
				<th scope="row">
					<f:translate key="flexform.disableLightboxMobile" extensionName="SgYoutube"/>
				</th>
				<td>
					<f:render partial="BooleanIcon" arguments="{boolValue: '{data.disableLightboxMobile}'}"/>
				</td>
			</tr>

			<tr>
				<th scope="row">
					<f:translate key="flexform.thumbnailType" extensionName="SgYoutube"/>
				</th>
				<td>
					<f:if condition="{data.thumbnailType}">
						<f:then>
							<f:translate key="flexform.thumbnailType.{data.thumbnailType}"
										 extensionName="SgYoutube"/>
						</f:then>
						<f:else>
							<f:translate key="flexform.thumbnailType.default" extensionName="SgYoutube"/>
						</f:else>
					</f:if>
				</td>
			</tr>

			<f:if condition="{data.thumbnailType} == 'byAspectRatio'">
				<tr>
					<th scope="row">
						<f:translate key="flexform.aspectRatio" extensionName="SgYoutube"/>
					</th>
					<td>
						{data.aspectRatio}
					</td>
				</tr>
			</f:if>

			<f:if condition="{data.thumbnailImagesCount} > 0">
117
118
				<tr>
					<th scope="row">
Tim Wagner's avatar
Tim Wagner committed
119
						<f:translate key="backendPreview.thumbnailImagesCount" extensionName="SgYoutube"/>
120
121
					</th>
					<td>
Tim Wagner's avatar
Tim Wagner committed
122
						{data.thumbnailImagesCount}
123
124
					</td>
				</tr>
Tim Wagner's avatar
Tim Wagner committed
125
			</f:if>
126
		</tbody>
127
128
	</table>
</be:link.editRecord>