[BUGFIX] Display FlashMessage in View Module
[Packages/TYPO3.CMS.git] / typo3 / sysext / viewpage / Resources / Private / Templates / ViewModule / Show.html
index 7dedc37..9d1d4b9 100644 (file)
@@ -1,14 +1,15 @@
 <f:layout name="DocHeader" />
 <f:section name="Content">
 <f:layout name="DocHeader" />
 <f:section name="Content">
-
-       <div class="viewpage-item">
-               <div class="viewpage-topbar t3js-viewpage-topbar">
-                       <div class="viewpage-topbar-orientation t3js-viewpage-topbar-orientation">
-                               <a href="#" class="t3js-change-orientation">
-                                       {icons.orientation -> f:format.raw()}
-                               </a>
-                       </div>
-                       <div class="viewpage-topbar-preset">
+       <f:flashMessages />
+       <f:if condition="{url}">
+               <div class="viewpage-item">
+                       <div class="viewpage-topbar t3js-viewpage-topbar">
+                               <div class="viewpage-topbar-orientation t3js-viewpage-topbar-orientation">
+                                       <a href="#" class="t3js-change-orientation">
+                                               {icons.orientation -> f:format.raw()}
+                                       </a>
+                               </div>
+                               <div class="viewpage-topbar-preset">
                                <span class="dropdown">
                                        <button class="dropdown-toggle" type="button" id="viewpage-topbar-preset-button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
                                                <span class="t3js-viewpage-current-label">
                                <span class="dropdown">
                                        <button class="dropdown-toggle" type="button" id="viewpage-topbar-preset-button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
                                                <span class="t3js-viewpage-current-label">
                                                </f:for>
                                        </ul>
                                </span>
                                                </f:for>
                                        </ul>
                                </span>
+                               </div>
+                               <div class="viewpage-topbar-size">
+                                       <input class="t3js-viewpage-input-width" type="number" name="width" min="300" max="9999" value="{current.width}">
+                                       x
+                                       <input class="t3js-viewpage-input-height" type="number" name="height" min="300" max="9999" value="{current.height}">
+                               </div>
                        </div>
                        </div>
-                       <div class="viewpage-topbar-size">
-                               <input class="t3js-viewpage-input-width" type="number" name="width" min="300" max="9999" value="{current.width}">
-                               x
-                               <input class="t3js-viewpage-input-height" type="number" name="height" min="300" max="9999" value="{current.height}">
+                       <div class="viewpage-resizeable t3js-viewpage-resizeable" style="width:{current.width}px;height:{current.height}px;">
+                               <iframe src="{url}" width="100%" height="100%" id="tx_viewpage_iframe" frameborder="0" border="0"></iframe>
                        </div>
                </div>
                        </div>
                </div>
-               <div class="viewpage-resizeable t3js-viewpage-resizeable" style="width:{current.width}px;height:{current.height}px;">
-                       <iframe src="{url}" width="100%" height="100%" id="tx_viewpage_iframe" frameborder="0" border="0"></iframe>
-               </div>
-       </div>
-
+       </f:if>
 </f:section>
 </f:section>