From: <ri...@us...> - 2009-12-21 18:42:45
|
Revision: 23974 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=23974&view=rev Author: ricks99 Date: 2009-12-21 18:42:32 +0000 (Mon, 21 Dec 2009) Log Message: ----------- [ENH]Because selecting a module causes the form to automatically submit and show the preview, there is no reason to show the base option fields since they cannot be completed on the initial display. This just confuses users. Now, the fields will appear only after selecting the module name. Modified Paths: -------------- trunk/templates/tiki-admin_modules.tpl Modified: trunk/templates/tiki-admin_modules.tpl =================================================================== --- trunk/templates/tiki-admin_modules.tpl 2009-12-21 18:21:02 UTC (rev 23973) +++ trunk/templates/tiki-admin_modules.tpl 2009-12-21 18:42:32 UTC (rev 23974) @@ -133,7 +133,7 @@ {/if} <table class="normal"> <tr> - <td class="formcolor"><label for="{tr}assign_name">Module Name{/tr}</label></td> + <td class="formcolor"><label for="assign_name">{tr}Module Name{/tr}</label></td> <td class="formcolor"> <select id="assign_name" name="assign_name" onchange="needToConfirm=false;this.form.preview.click()"> <option value=""></option> @@ -143,6 +143,9 @@ </select> </td> </tr> + +{if !empty($assign_name)} +{* because changeing the module name willl auto-submit the form, no reason to display these fields until a module is selected *} <tr> <td class="formcolor"><label for="assign_position">{tr}Position{/tr}</label></td> <td class="formcolor"> @@ -247,6 +250,15 @@ <input type="submit" name="assign" value="{tr}Assign{/tr}" onclick="needToConfirm=false;" /> </td> </tr> +{else} + <tr> + <td class="formcolor"> </td> + <td class="formcolor"> + <input type="submit" name="preview" value="{tr}Module Options{/tr}" onclick="needToConfirm=false;" /> + </td> + </tr> + +{/if} </table> </form> {/tab} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |