__section__
default
__description__
__title__

__page__
ajax
__lang__
en_US
__name__
prefs_home
__template__

<form id ="modal_prefs" method="post">

<input type="hidden" name="formname" value="home">
<input type="hidden" name="uid" value="[% user.uid %]">
<input type="hidden" name="refreshable" value="">

                [% IF tabbed == 1 %]
                <div style="text-align: center;">
                &nbsp;
                <span style="font-weight: bold; text-decoration: none; font-size: 14px; color: #ccc">Homepage</span>
                &nbsp;|&nbsp;
                <a href="" style="font-weight: bold; text-decoration: none; font-size: 14px;" onclick="getModalPrefs('slashboxes', 'Slashboxes', 1); return false;">Slashboxes</a>
                &nbsp;|&nbsp;
                <a href="" style="font-weight: bold; text-decoration: none; font-size: 14px;" onclick="getModalPrefs('sectional', 'Sectional Display', 1); return false;">Sections</a>
                &nbsp;|&nbsp;
                <a href="" style="font-weight: bold; text-decoration: none; font-size: 14px;" onclick="getModalPrefs('authors', 'Authors', 1); return false;">Authors</a>
                </div>
                [% END %]

                <br>

                <label>Date/Time Format</label>
                [%
                formats = Slash.db.getDescriptions('dateformats');
                Slash.createSelect('tzformat', formats, user.dfid, 1);
                %]

                <br>

                <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.tzcode_orig || user.tzcode;
                Slash.createSelect('tzcode',
                        these_tzdescs, this_tzcode, 1, 0, this_tzcodes.nsort
                );

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

                <br><br>

                [% sd_check = '';
                IF user.simpledesign;
                        sd_check = constants.markup_checked_attribute;
                END
                %]

                <input type="checkbox" name="simpledesign"[% sd_check %]> <b>Simple Design</b>&nbsp;<a href="#" onclick="displayModalPrefHelp('modalprefhelp_simpledesign');" class="help">?</a>
                <br>
                <div id="modalprefhelp_simpledesign" class="modalprefhelp" style="display: none;">
                        Simplifies the design of [% constants.sitename %] to strip away some of the excesses of the UI.
                </div>

                <br>

                [% lb_check = '';
                IF user.lowbandwidth;
                        lb_check = constants.markup_checked_attribute;
                END
                %]

                <input type="checkbox" name="lowbandwidth"[% lb_check %]> <b>Low Bandwidth</b>&nbsp;<a href="#" onclick="displayModalPrefHelp('modalprefhelp_lowbandwidth');" class="help">?</a>
                <br>
                <div id="modalprefhelp_lowbandwidth" class="modalprefhelp" style="display: none;">
                        Reduces the size of pages for people with slower network connections
                </div>

                <br>

                [% i_check = '';
                IF user.noicons;
                        i_check = constants.markup_checked_attribute;
                END
                %]

                <input type="checkbox" name="noicons"[% i_check %]> <b>No Icons</b>&nbsp;<a href="#" onclick="displayModalPrefHelp('modalprefhelp_noicons');" class="help">?</a>
                <br>
                <div id="modalprefhelp_noicons" class="modalprefhelp" style="display: none;">
                        Disable topic icon images on stories.
                </div>

                <br>

                <b>Maximum Stories</b> <input type="text" name="maxstories" size="3" value="[% user.maxstories %]">&nbsp;<a href="#" onclick="displayModalPrefHelp('modalprefhelp_maxstories');" class="help">?</a>
                <br>
                <div id="modalprefhelp_maxstories" class="modalprefhelp" style="display: none;">
                        The default is 30.  The main column displays 1/3rd of these at minimum, and all of today's stories at maximum.
                </div>

                <br>

                [% w_check = '';
                IF user.willing;
                        w_check = constants.markup_checked_attribute;
                END
                %]

                <input type="checkbox" name="willing"[% w_check %]> <b>Willing to Moderate</b>&nbsp;<a href="#" onclick="displayModalPrefHelp('modalprefhelp_moderate');" class="help">?</a>
                <br>
                <div id="modalprefhelp_moderate" class="modalprefhelp" style="display: none;">
                        By default all users are willing to Moderate. Uncheck this if you aren't interested.
                </div>

                <br>

                [% tag_check = '';
                IF !user.tags_turnedoff;
                        tag_check = constants.markup_checked_attribute;
                END
                %]

                <input type="checkbox" name="showtags"[%tag_check %]> <b>Show Tags</b>&nbsp;<a href="#" onclick="displayModalPrefHelp('modalprefhelp_showtags');" class="help">?</a>
                <br>
                <div id="modalprefhelp_showtags" class="modalprefhelp" style="display: none;">
                        Turn this off to ignore all tags.
                </div>

                <br>

                [% osdn_navbar_check = '';
                IF user.opt_osdn_navbar;
                        osdn_navbar_check = constants.markup_checked_attribute;
                END
                %]

                <input type="checkbox" name="opt_osdn_navbar"[% osdn_navbar_check %]> <b>OSTG Navbar</b>&nbsp;<a href="#" onclick="displayModalPrefHelp('modalprefhelp_ostg');" class="help">?</a>
                <br>
                <div id="modalprefhelp_ostg" class="modalprefhelp" style="display: none;">
                        Turn this on to display the OSTG nav bar at the top of the screen.
                </div>

                <br>

                <input type="button" value="Save" onclick="saveModalPrefs()">
</form>
__seclev__
500
__version__
$Id$
