On Wed, Apr 02, 2008 at 06:35:35PM +0000, Jean-Sebastien Morisset wrote: > On Wed, Apr 02, 2008 at 05:49:07PM +0000, Jean-Sebastien Morisset wrote: >> Hi everyone, >> >> Is there a way to reset the user's Preferences -> Search options to the >> $DefaultSearchResultFormat? A "Defaults" button on the >> SearchOptions.html page, for example, could be handy. > > I've been able to add the button, but it screws up the display some: > > # diff ./share/html/Prefs/SearchOptions.html > ./local/html/Prefs/SearchOptions.html > 67a68,75 >> <form method="post" action="SearchOptions.html"> >> <input type="hidden" class="hidden" name="Format" >> value="<%$RT::DefaultSearchResultFormat%>" /> >> <input type="hidden" class="hidden" name="Order" value="ASC" >> /> >> <input type="hidden" class="hidden" name="OrderBy" value="id" >> /> >> <input type="hidden" class="hidden" name="RowsPerPage" >> value="50" /> >> <& /Elements/Submit, Name => 'SavePreferences', Label => >> loc('Reset to Defaults') &> >> </form> >> > > Any idea how I can tuck the "Save Changes" and "Reset to Defaults" > button together?
So this isn't pretty, but it works. # diff ./share/html/Prefs/SearchOptions.html ./local/html/Prefs/SearchOptions.html 65c65,68 < <& /Elements/Submit, Name => 'SavePreferences', Label => loc('Save Changes') &> --- > <div class="submit"> > <div class="buttons"> > <input type="submit" name="SavePreferences" value="Save > Changes" class="button" /> > </div> 66a70,78 > <form method="post" action="SearchOptions.html"> > <div class="extra-buttons"> > <input type="hidden" class="hidden" name="Format" > value="<%$RT::DefaultSearchResultFormat%>" /> > <input type="hidden" class="hidden" name="Order" value="ASC" > /> > <input type="hidden" class="hidden" name="OrderBy" value="id" > /> > <input type="hidden" class="hidden" name="RowsPerPage" > value="50" /> > <input type="submit" name="SavePreferences" value="Reset to > Defaults" class="button" /> > </div> > </form> js. -- Jean-Sebastien Morisset, Sr. UNIX Administrator <[EMAIL PROTECTED]> _______________________________________________ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: [EMAIL PROTECTED] Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com