__section__
default
__description__
Edit preferences

* title = passed to titlebar
* user_edit = hashref of preferences
* b_check = boolean to check b? noboxes
* i_check = boolean to check i? noicons
* w_check = boolean to check w? willing
* lb_check = boolean to check lowbandwidth 
* sd_check = boolean to check simpledesign 
* tzformat_select = popup for time format
* tilde_ed = checkbox thing for selecting authors, topics, sections, boxes

__title__

__page__
users
__lang__
en_US
__name__
editHome
__template__
[% orig_title = title %]
<div id="slashboxes">
[% UNLESS user.lowbandwidth %]
[% PROCESS userboxes %]
[% END %]
</div>
[% title = orig_title %]
<div id="users-blocks">
[% PROCESS prefs_titlebar tab_selected='home' %]
<div class="generalbody">
[% note %]

[% admin_block %]

<form action="[% env.script_name %]" method="post" name="edithome">
<fieldset>
<legend>Homepage settings</legend>
[% PROCESS formkey_tag %]

<input type="hidden" name="formname" value="edithome">
<input type="hidden" name="op" value="savehome">
<input type="hidden" name="uid" value="[% user_edit.uid %]">
		<label>
			<input type="checkbox" name="index_beta" [% beta_check %]> Use Beta Index
		</label>

		<label>
			Current Date/Time
		</label>
		<div class="note">
			Using saved preferences
		</div>
		[% Slash.timeCalc() %]

		<label>
			Date/Time Format
		</label>
		[% tzformat_select %]

		<label>
			Time Zone / Daylight Savings Time
		</label>
		[%
		USE this_format = format('%+0.4d %s');
		this_tzdescs = Slash.db.getDescriptions('tzdescription');
		this_tzcodes = Slash.db.getDescriptions('tzcodes');
                these_tzdescs = {};
		FOREACH tz = this_tzcodes.keys;
			this_num = this_tzcodes.$tz / 36;
			this_num = this_num.replace('50$', '30');
			these_tzdescs.$tz = this_format(this_num, this_tzdescs.$tz);
		END;

		this_tzcode = user_edit.tzcode_orig || user_edit.tzcode;
		Slash.createSelect('tzcode',
			these_tzdescs, this_tzcode, 1, 0, this_tzcodes.nsort
		);

		Slash.createSelect('dst', {
			''	=> 'Automatic',
			'on'	=> 'Manual (On)',
			'off'	=> 'Manual (Off)'
		}, user_edit.dst, 1);
		%]


<!-- Possible removal due to CSS styling availabilty -->
		<div class="note">
		Light Mode has been replaced by 2 toggle-able settings.  These are 'lowbandwidth' and 'simpledesign'. 
		You can use them individually, or together.
		</div>
		<label>
			<input type="checkbox" name="simpledesign"[% sd_check %]>Simple Design
		</label>
		<div class="note">
			Simplifies the design of [% constants.sitename %] to strip away some of the excesses  
of the UI.
		</div>
		<label>
			<input type="checkbox" name="lowbandwidth"[% lb_check %]>Low Bandwidth
		</label>
		<div class="note">
			Reduces the size of pages for people with slower network connections
		</div>

		<label>
			<input type="checkbox" name="noicons"[% i_check %]> No Icons
		</label> 
		<div class="notes">
			Disable topic icon images on stories.
		</div>

		<label>
			Maximum Stories <input type="text" name="maxstories" size="3" value="[% user_edit.maxstories %]">
		</label>
		<div class="notes">
			The default is 30.  The main column displays 1/3rd of these at minimum, and all of today's stories at maximum.
		</div>

		[%# We're not using the moderation FAQ for now.      %]
		[%# It will return...when we rewrite it. - Cliff     %]
		<label>
			<input type="checkbox" name="willing"[% w_check %]> Willing to Moderate 
		</label>
		<div class="notes">
			By default all users are willing to Moderate. Uncheck this if you aren't interested.
		</div>
		[% tilde_ed %]

		<input type="submit" value="Save" class="button">
		<input type="submit" name="restore_defaults" value="Restore Defaults" class="button">
		<input type="submit" name="restore_slashbox_defaults" value="Restore Default Slashboxes" class="button">
</fieldset>
</form>
</div>
</div>
__seclev__
500
__version__
$Id$
