[BUGFIX] Display FlashMessage in View Module
[Packages/TYPO3.CMS.git] / typo3 / sysext / viewpage / Resources / Private / Templates / ViewModule / Show.html
1 <f:layout name="DocHeader" />
2 <f:section name="Content">
3 <f:flashMessages />
4 <f:if condition="{url}">
5 <div class="viewpage-item">
6 <div class="viewpage-topbar t3js-viewpage-topbar">
7 <div class="viewpage-topbar-orientation t3js-viewpage-topbar-orientation">
8 <a href="#" class="t3js-change-orientation">
9 {icons.orientation -> f:format.raw()}
10 </a>
11 </div>
12 <div class="viewpage-topbar-preset">
13 <span class="dropdown">
14 <button class="dropdown-toggle" type="button" id="viewpage-topbar-preset-button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
15 <span class="t3js-viewpage-current-label">
16 {current.label}
17 </span>
18 <span class="caret"></span>
19 </button>
20 <ul class="dropdown-menu" aria-labelledby="viewpage-topbar-preset-button">
21 <li role="separator" class="divider"></li>
22 <li>
23 <a href="#" class="t3js-preset-maximized t3js-change-preset" data-key="maximized" data-label="{f:translate(key: 'maximized')}" data-width data-height>
24 <span class="viewpage-preset-item">
25 <span class="viewpage-preset-item-icon">{icons.fullscreen -> f:format.raw()}</span>
26 <span class="viewpage-preset-item-label">
27 {f:translate(key: 'maximized')}
28 </span>
29 <span class="viewpage-preset-item-size">
30 100%/100%
31 </span>
32 </span>
33 </a>
34 </li>
35 <li>
36 <a href="#" class="t3js-preset-custom t3js-change-preset" data-key="custom" data-label="{f:translate(key: 'custom')}" data-width="{custom.width}" data-height="{custom.height}">
37 <span class="viewpage-preset-item">
38 <span class="viewpage-preset-item-icon">{icons.expand -> f:format.raw()}</span>
39 <span class="viewpage-preset-item-label t3js-preset-custom-label">
40 {f:translate(key: 'custom')}
41 </span>
42 <span class="viewpage-preset-item-size">
43 <span class="t3js-preset-custom-width">{custom.width}</span>px/<span class="t3js-preset-custom-height">{custom.height}</span>px
44 </span>
45 </span>
46 </a>
47 </li>
48
49 <f:for each="{presetGroups}" as="presetGroup" iteration="presetGroupIteration">
50 <f:if condition="{presetGroup}">
51 <li role="separator" class="divider"></li>
52 <f:for each="{presetGroup}" as="preset">
53 <li>
54 <a href="#" class="t3js-change-preset" data-key="{preset.key}" data-label="{preset.label}" data-width="{preset.width}" data-height="{preset.height}">
55 <span class="viewpage-preset-item">
56 <span class="viewpage-preset-item-icon">{icons.{preset.type} -> f:format.raw()}</span>
57 <span class="viewpage-preset-item-label">{preset.label}</span>
58 <span class="viewpage-preset-item-size">
59 {f:if(condition: preset.width, then: '{preset.width}px', else: '100%')}/{f:if(condition: preset.height, then: '{preset.height}px', else: '100%')}
60 </span>
61 </span>
62 </a>
63 </li>
64 </f:for>
65 </f:if>
66 </f:for>
67 </ul>
68 </span>
69 </div>
70 <div class="viewpage-topbar-size">
71 <input class="t3js-viewpage-input-width" type="number" name="width" min="300" max="9999" value="{current.width}">
72 x
73 <input class="t3js-viewpage-input-height" type="number" name="height" min="300" max="9999" value="{current.height}">
74 </div>
75 </div>
76 <div class="viewpage-resizeable t3js-viewpage-resizeable" style="width:{current.width}px;height:{current.height}px;">
77 <iframe src="{url}" width="100%" height="100%" id="tx_viewpage_iframe" frameborder="0" border="0"></iframe>
78 </div>
79 </div>
80 </f:if>
81 </f:section>