some interface help on the admin for this. centered submit button and panel around...
authorOve Klykken <klykken@gmail.com>
Fri, 11 Jul 2014 20:29:32 +0000 (16:29 -0400)
committerOve Klykken <klykken@gmail.com>
Fri, 11 Jul 2014 20:29:32 +0000 (16:29 -0400)
Toolkit/Property/Views/index.tpl
Toolkit/Property/Views/listImages.tpl

index 020183b..5982b64 100644 (file)
@@ -5,6 +5,12 @@
         <meta http-equiv="content-type" content="text/html;charset=utf-8">
         {$styleSheets}
         {$topScripts}
+        <style>
+        #propertyImagesSubmit input[type="submit"] {
+            margin: 1em auto;
+            display: block;
+            }
+        </style>
     </head>
     <body>
         <h1>Property Admin</h1>
index 9d0feb8..e73d88c 100644 (file)
                     <div class="row">
                         <div class="small-6 columns">
                             <div class="row">
-                                <div class="small-6 columns">
-                                    <label for="img1">
-                                        {if $property.image}
-                                            <input type="hidden" name="oldimg1" value="{$property.image}">
-                                            <img src="{$imgUrl}{$property.image}" width="180">
-                                        {else}
-                                            <input type="hidden" name="oldimg1">
-                                            No Image
-                                        {/if}
-                                    </label>
-                                </div>
-                                <div class="small-6 columns">
-                                    <label>Image 1
-                                        <input id="img1" type="file" name="image">
-                                    </label>
+                                <div class="panel clearfix">
+                                    <div class="small-6 columns">
+                                        <label for="img1">
+                                            {if $property.image}
+                                                <input type="hidden" name="oldimg1" value="{$property.image}">
+                                                <img src="{$imgUrl}{$property.image}" width="180">
+                                            {else}
+                                                <input type="hidden" name="oldimg1">
+                                                No Image
+                                            {/if}
+                                        </label>
+                                    </div>
+                                    <div class="small-6 columns">
+                                        <label>Image 1
+                                            <input id="img1" type="file" name="image">
+                                        </label>
+                                    </div>
                                 </div>
                             </div>
                         </div>
                         <div class="small-6 columns">
                             <div class="row">
-                                <div class="small-6 columns">
-                                    <label for="img2">
-                                        {if $property.image2}
-                                            <input type="hidden" name="oldimg2" value="{$property.image2}">
-                                            <img src="{$imgUrl}{$property.image2}" width="180">
-                                        {else}
-                                            <input type="hidden" name="oldimg2">
-                                            No Image
-                                        {/if}
-                                    </label>
-                                </div>
-                                <div class="small-6 columns">
-                                    <label>Image 2
-                                        <input id="img2" type="file" name="image2">
-                                    </label>
+                                <div class="panel clearfix">
+                                    <div class="small-6 columns">
+                                        <label for="img2">
+                                            {if $property.image2}
+                                                <input type="hidden" name="oldimg2" value="{$property.image2}">
+                                                <img src="{$imgUrl}{$property.image2}" width="180">
+                                            {else}
+                                                <input type="hidden" name="oldimg2">
+                                                No Image
+                                            {/if}
+                                        </label>
+                                    </div>
+                                    <div class="small-6 columns">
+                                        <label>Image 2
+                                            <input id="img2" type="file" name="image2">
+                                        </label>
+                                    </div>
                                 </div>
                             </div>
                         </div>
@@ -89,7 +93,7 @@
                         </div>
                      {/if}
                     </div>
-                    <div class="row">
+                    <div class="row" id="propertyImagesSubmit">
                         <div class="small-12 columns">
                             <label>
                                 <input type="submit" class="button" value="Save">