templateEvent added and check-state fixed
authorKiv4h <jeffrey.reichardt@googlemail.com>
Wed, 16 May 2012 18:18:23 +0000 (20:18 +0200)
committerKiv4h <jeffrey.reichardt@googlemail.com>
Wed, 16 May 2012 18:18:23 +0000 (20:18 +0200)
wcfsetup/install/files/acp/templates/cronjobList.tpl
wcfsetup/install/files/acp/templates/packageUpdateSearch.tpl
wcfsetup/install/files/acp/templates/packageUpdateSearchResult.tpl

index 52de80cf8f5bf620a624dfd8e09b9b105de7b152..a3e941fc50d2a1d68f1c38c4c09e9b2e9c6a2f16 100644 (file)
                </table>
                
        </div>
-       
-       <div class="contentNavigation">
-               {@$pagesLinks}
-               
-               {* todo: add large button event *}
-               {if $__wcf->session->getPermission('admin.system.cronjob.canAddCronjob')}
-                       <nav>
-                               <ul class="wcf-largeButtons">
-                                       <li><a href="{link controller='CronjobAdd'}{/link}" title="{lang}wcf.acp.cronjob.add{/lang}" class="button"><img src="{@$__wcf->getPath()}icon/add.svg" alt="" class="icon24" /> <span>{lang}wcf.acp.cronjob.add{/lang}</span></a></li>
-                               </ul>
-                       </nav>
-               {/if}
-       </div>
 {hascontentelse}
        <p class="warning">{lang}wcf.acp.cronjob.noneAvailable{/lang}</p>
 {/hascontent}
 
+<div class="contentNavigation">
+       {@$pagesLinks}
+       
+       {hascontent}
+               <nav>
+                       <ul>
+                               {content}
+                                       {if $__wcf->session->getPermission('admin.system.cronjob.canAddCronjob')}
+                                               <li><a href="{link controller='CronjobAdd'}{/link}" title="{lang}wcf.acp.cronjob.add{/lang}" class="button"><img src="{@$__wcf->getPath()}icon/add.svg" alt="" class="icon24" /> <span>{lang}wcf.acp.cronjob.add{/lang}</span></a></li>
+                                       {/if}
+
+                                       {event name='largeButtons'}
+                               {/content}
+                       </ul>
+               </nav>
+       {/hascontent}
+</div>
+
 {include file='footer'}
index 26cedff95c78bded8f06cc9e724677aeaa93c26b..1db7e142c1fdd520634edd4148ca9376468d3a37 100644 (file)
@@ -14,7 +14,7 @@
                                $checked = $count;
                        }
                        else {
-                               $('input[name="packageUpdateServerIDs[]"]').attr('checked', '');
+                               $('input[name="packageUpdateServerIDs[]"]').attr('checked', false);                             
                                $checked = 0;
                        }
                });
@@ -29,7 +29,7 @@
                                }
                        }
                        else {
-                               $('input[name="checkUncheck"]').attr('checked', '');
+                               $('input[name="checkUncheck"]').attr('checked', false);
                                $checked--;
                        }
                });
index fc4ec2cffe2383c00170653c9fb3fc2a4910cfa3..13f2b28ee6115c50678002c19461e7def92d9c4a 100644 (file)
                                        <fieldset>
                                                <legend>{lang}wcf.acp.packageUpdate.options{/lang}</legend>
                                        
-                                               <div><!-- ToDo: Definition List -->
-                                                       <ul>
-                                                               {* new installation *}
-                                                               {if $package.isUnique && !$package.updatableInstances|count}
-                                                                       <li>{lang}wcf.acp.packageUpdate.options.alreadyInstalledUnique{/lang}</li>
-                                                               {/if}
-                                                               {if !$package.isUnique}
-                                                                       <li><label><input type="checkbox" id="updates-{$package.package}" name="updates[{$package.package}]" value="{$package.packageVersion}" {if $selectedPackages[$package.package]|isset}checked="checked" {/if}/> {if $package.instances}{lang}wcf.acp.packageUpdate.options.installAlreadyInstalled{/lang}{else}{lang}wcf.acp.packageUpdate.options.install{/lang}{/if}</label></li>
-                                                               {/if}
-                                                               
-                                                               {* update *}
-                                                               {foreach from=$package.updatableInstances item=updatableInstance}
-                                                                       <li><label><input type="checkbox" id="updates-{$updatableInstance.packageID}" name="updates[{$updatableInstance.packageID}]" value="{$package.packageVersion}" {if $selectedPackages[$updatableInstance.packageID]|isset}checked="checked" {/if}/> {lang}wcf.acp.packageUpdate.options.update{/lang}</label></li>
-                                                               {/foreach}
-                                                       </<ul>
-                                               </div>
+                                               <dl>
+                                                       {* new installation *}
+                                                       {if $package.isUnique && !$package.updatableInstances|count}
+                                                               <dt></dt>
+                                                               <dt>{lang}wcf.acp.packageUpdate.options.alreadyInstalledUnique{/lang}</dd>
+                                                       {/if}
+                                                       {if !$package.isUnique}
+                                                               <dt></dt>
+                                                               <dd><label><input type="checkbox" id="updates-{$package.package}" name="updates[{$package.package}]" value="{$package.packageVersion}" {if $selectedPackages[$package.package]|isset}checked="checked" {/if}/> {if $package.instances}{lang}wcf.acp.packageUpdate.options.installAlreadyInstalled{/lang}{else}{lang}wcf.acp.packageUpdate.options.install{/lang}{/if}</label></dd>
+                                                       {/if}
+                                                       
+                                                       {* update *}
+                                                       {foreach from=$package.updatableInstances item=updatableInstance}
+                                                               <dt></dt>
+                                                               <dd><label><input type="checkbox" id="updates-{$updatableInstance.packageID}" name="updates[{$updatableInstance.packageID}]" value="{$package.packageVersion}" {if $selectedPackages[$updatableInstance.packageID]|isset}checked="checked" {/if}/> {lang}wcf.acp.packageUpdate.options.update{/lang}</label></dd>
+                                                       {/foreach}
+                                               </dl>
                                        </fieldset>
                                        
                                </div>