Added proper styling for form grids
authorAlexander Ebert <ebert@woltlab.com>
Sat, 16 Apr 2016 10:50:56 +0000 (12:50 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sat, 16 Apr 2016 10:51:04 +0000 (12:51 +0200)
wcfsetup/install/files/acp/templates/pageList.tpl
wcfsetup/install/files/style/layout/form.scss

index 65639ca559933d48058ab240700e8a3b34dd8b39..1972e72de7492eecfa9efd70f4b254835c6859b5 100644 (file)
        <section class="section">
                <h2 class="sectionTitle">{lang}wcf.global.filter{/lang}</h2>
                
-               <div class="row rowColGap">
-                       <div class="row rowColGap col-xs-12 col-md-10">
-                               <dl class="col-xs-12 col-md-4 wide">
-                                       <dt></dt>
-                                       <dd>
-                                               <input type="text" id="name" name="name" value="{$name}" placeholder="{lang}wcf.global.name{/lang}" class="long" />
-                                       </dd>
-                               </dl>
-                               
-                               <dl class="col-xs-12 col-md-4 wide">
-                                       <dt></dt>
-                                       <dd>
-                                               <input type="text" id="pageTitle" name="title" value="{$title}" placeholder="{lang}wcf.acp.page.title{/lang}" class="long" />
-                                       </dd>
-                               </dl>
-                               
-                               <dl class="col-xs-12 col-md-4 wide">
-                                       <dt></dt>
-                                       <dd>
-                                               <input type="text" id="pageContent" name="content" value="{$content}" placeholder="{lang}wcf.acp.page.content{/lang}" class="long" />
-                                       </dd>
-                               </dl>
-                               
-                               <dl class="col-xs-12 col-md-4 wide">
-                                       <dt></dt>
-                                       <dd>
+               <div class="row rowColGap formGrid">
+                       <dl class="col-xs-12 col-md-4">
+                               <dt></dt>
+                               <dd>
+                                       <input type="text" id="name" name="name" value="{$name}" placeholder="{lang}wcf.global.name{/lang}" class="long" />
+                               </dd>
+                       </dl>
+                       
+                       <dl class="col-xs-12 col-md-4">
+                               <dt></dt>
+                               <dd>
+                                       <input type="text" id="pageTitle" name="title" value="{$title}" placeholder="{lang}wcf.acp.page.title{/lang}" class="long" />
+                               </dd>
+                       </dl>
+                       
+                       <dl class="col-xs-12 col-md-4">
+                               <dt></dt>
+                               <dd>
+                                       <input type="text" id="pageContent" name="content" value="{$content}" placeholder="{lang}wcf.acp.page.content{/lang}" class="long" />
+                               </dd>
+                       </dl>
+                       
+                       <dl class="col-xs-12 col-md-4">
+                               <dt></dt>
+                               <dd>
+                                       <label class="selectDropdown">
                                                <select name="packageID" id="packageID">
                                                        <option value="0">{lang}wcf.acp.page.packageID{/lang}</option>
                                                        {foreach from=$availableApplications item=availableApplication}
                                                                <option value="{@$availableApplication->packageID}"{if $availableApplication->packageID == $packageID} selected="selected"{/if}>{$availableApplication->getAbbreviation()}: {$availableApplication->domainName}{$availableApplication->domainPath}</option>
                                                        {/foreach}
                                                </select>
-                                       </dd>
-                               </dl>
-                               
-                               <dl class="col-xs-12 col-md-4 wide">
-                                       <dt></dt>
-                                       <dd>
+                                       </label>
+                               </dd>
+                       </dl>
+                       
+                       <dl class="col-xs-12 col-md-4">
+                               <dt></dt>
+                               <dd>
+                                       <label class="selectDropdown">
                                                <select name="pageType" id="pageType">
                                                        <option value="">{lang}wcf.acp.page.pageType{/lang}</option>
                                                        <option value="static"{if $pageType == 'static'} selected="selected"{/if}>{lang}wcf.acp.page.pageType.static{/lang}</option>
                                                        <option value="system"{if $pageType == 'system'} selected="selected"{/if}>{lang}wcf.acp.page.pageType.system{/lang}</option>
                                                </select>
-                                       </dd>
-                               </dl>
-                               
-                               {event name='filterFields'}
-                       </div>
+                                       </label>
+                               </dd>
+                       </dl>
                        
-                       <div class="col-xs-12 col-md-2">
-                               <input type="submit" value="{lang}wcf.global.button.submit{/lang}" accesskey="s" />
-                               {@SECURITY_TOKEN_INPUT_TAG}
-                       </div>
+                       {event name='filterFields'}
+               </div>
+               
+               <div class="formSubmit">
+                       <input type="submit" value="{lang}wcf.global.button.submit{/lang}" accesskey="s" />
+                       {@SECURITY_TOKEN_INPUT_TAG}
                </div>
        </section>
 </form>
index b8adc56af1dd5103a4233a8fd9c1515096fa848e..8732e33fc25ea361e422bdf11b5358aab46997e1 100644 (file)
@@ -208,3 +208,15 @@ input {
                width: 100%;
        }
 }
+
+/* grid-based form controls */
+.formGrid {
+       dt {
+               display: none;
+       }
+       
+       .selectDropdown,
+       select {
+               width: 100%;
+       }
+}