diff options
| author | wjames5 <will@tekimaki.com> | 2009-11-12 05:09:05 +0000 |
|---|---|---|
| committer | wjames5 <will@tekimaki.com> | 2009-11-12 05:09:05 +0000 |
| commit | e2a98da57304b5779a96cc0b6dd30a7f496ed8fe (patch) | |
| tree | e7252178d0138b54a06c7e139262d761a09347a6 /templates/admin_layout.tpl | |
| parent | f7b9ef447f5581b997f7f7edf0711e12138211eb (diff) | |
| download | themes-e2a98da57304b5779a96cc0b6dd30a7f496ed8fe.tar.gz themes-e2a98da57304b5779a96cc0b6dd30a7f496ed8fe.tar.bz2 themes-e2a98da57304b5779a96cc0b6dd30a7f496ed8fe.zip | |
Begin module upgrade - read in modules from both old and new locations and process config files during layout editing. Add an upgrade method for packages which upgrade their modules to call to assist people updating their site. Make some use of the new config data to demonstrate possibilities in layout menu. Include one module update in blog pkg to sketch out how configuration file might look.
Diffstat (limited to 'templates/admin_layout.tpl')
| -rw-r--r-- | templates/admin_layout.tpl | 41 |
1 files changed, 39 insertions, 2 deletions
diff --git a/templates/admin_layout.tpl b/templates/admin_layout.tpl index 4de36e4..b28d3cf 100644 --- a/templates/admin_layout.tpl +++ b/templates/admin_layout.tpl @@ -112,7 +112,16 @@ <div class="row"> {formlabel label="Module" for="module_rsrc"} {forminput} - {html_options name="fAssign[module_rsrc]" id="module_rsrc" options=$allModules selected=`$fAssign.name`} + {*html_options name="fAssign[module_rsrc]" id="module_rsrc" options=$allModules selected=`$fAssign.name` *} + <select name="fAssign[module_rsrc]" id="module_rsrc" onchange="javascript:BitThemes.viewModuleParamsHelp( this.options[this.selectedIndex].value )"> + {foreach key=pkg item=modules from=$allModules} + <optgroup label="{$pkg}"> + {foreach key=value item=module from=$modules} + <option value="{$value}" {if $fAssign.name eq $value}selected="selected"{/if}>{$module.title}</option> + {/foreach} + </optgroup> + {/foreach} + </select> {formhelp note="Extended help can be found at the end of this page."} {/forminput} </div> @@ -176,6 +185,25 @@ {forminput} <input type="text" size="48" name="fAssign[params]" id="params" value="{$fAssign.params|escape}" /> {formhelp note="Here you can enter any additional parameters the module might need. Use the http query string form, e.g. foo=123&bar=ABC (optional)"} + {foreach key=pkg item=modules from=$allModules} + {foreach key=value item=module from=$modules} + {if $module.params} + <table id="themes_params_help_{$value}" class="themes_params_help" style="display:none"> + <tr> + <th colspan=2 style="text-align:left">Options for {$module.title}</th> + </tr> + {foreach key=param item=data from=$module.params} + {if $data.help} + <tr> + <td style="font-weight:bold; padding-right:4px">{$param}</td> + <td>{$data.help}</td> + </tr> + {/if} + {/foreach} + </table> + {/if} + {/foreach} + {/foreach} {/forminput} </div> @@ -225,7 +253,16 @@ {if $fEdit && $fAssign.name} <input type="hidden" name="fAssign[module]" value="{$fAssign.module}" id="module" />{$fAssign.module} {else} - {html_options name="fAssign[module_rsrc]" id="module" values=$allCenters options=$allCenters selected=`$mod`} + {* html_options name="fAssign[module_rsrc]" id="module" values=$allCenters options=$allCenters selected=`$mod` *} + <select name="fAssign[module_rsrc]" id="module" {*onchange="javascript:BitThemes.viewModuleParamsHelp( this.options[this.selectedIndex].value )"*}> + {foreach key=pkg item=modules from=$allCenters} + <optgroup label="{$pkg}"> + {foreach key=value item=module from=$modules} + <option value="{$value}" {if $mod eq $value}selected="selected"{/if}>{$module.title}</option> + {/foreach} + </optgroup> + {/foreach} + </select> {/if} {formhelp note="Pick the center bit you want to display when accessing this package."} {/forminput} |
