Commit Graph

33 Commits

Author SHA1 Message Date
Shawn Kwang 9811fe9cc7 web: Add foreach venue to print '--' for venue columns. 2019-01-30 13:09:14 -06:00
Shawn Kwang 7bf7d5c0a0 web: User SQL View latest_consent to obtain consent information for users.
Web site operations can now use latest_consent View.
2018-09-13 11:54:04 -05:00
Shawn Kwang 71046d4cef web: Fixed bug found in Scrutinizer. 2018-06-15 16:07:35 -05:00
Shawn Kwang ffdc327509 web: Web code modified to work with new database table definitions.
Modified web code to use consent_type_id in place of consent_name in various places.
RPCs also modified to use the new definitions.
2018-06-15 15:38:39 -05:00
Shawn Kwang 1f70734f5f web: modified privacy prefs code
Privacy prefs now loads the the consent_types found in the database table dynamically based on the enabled and privacypref flags introduced.
Removed enable_record_optin_consent config settings. Now the 'enabled' field in consent_type takes its place, one a consent_type by consent_type basis.
2018-06-04 11:26:35 -05:00
Shawn Kwang b0557ef161 web: updated preferences for stats exports to use new consent table definitions. 2018-05-24 12:03:35 -05:00
Shawn Kwang 284694c704 web: Fixed bug, variable restored. 2018-05-17 14:47:02 -05:00
Shawn Kwang 07607ed41d web: Fixed bug found by Scrutinizer.
Removed unused code.
2018-05-17 14:30:11 -05:00
Shawn Kwang 4ad801ff30 web: project privacy preferences modified to add 'consent to data export' option.
Added new preferences sub-class for consent table modification.
Added privacy preference form item to record user giving consent to data exports.
User's consent is recorded in the consent table.
2018-05-17 14:07:46 -05:00
David Anderson ce213120de web: fix bug in project prefs; appearance tweaks
- editing resource shared wasn't working
- change sizes of controls to "input-sm"
- show errors correctly in project prefs
- move selection of project prefs from project_specific_prefs.inc
  to project.inc.
  This means that (unless you've added your own project prefs)
  you can update project_specific_prefs.inc from master, with no changes.

NOTE: projects will need to move their project prefs selections, e.g.
    define('COLOR_PREFS', false);
from project_specific_prefs.inc to project.inc.
Then copy project.sample/project_specific_prefs.inc to your project/
2016-12-19 15:47:52 -08:00
David Anderson cb5668a0d8 web: various appearance tweaks
policy change: when showing lists of name/value pairs in a table,
don't show the names with a different background color or font.
This is what Edward Tufte would call "noise".
Keep the visuals as simple as possible.
2016-12-19 01:15:48 -08:00
David Anderson c054358a6e web: tweaks to fix Scrutinizer complaints; few visible effects 2016-12-07 11:32:25 -08:00
David Anderson fa06cb7b10 web: fix appearance of project-specific prefs in grid mode 2016-11-29 23:32:06 -08:00
David Anderson 7463938995 web: more fixes for dark themes 2016-11-23 02:35:28 -08:00
David Anderson c5b948020d Initial commit for Bootstrap 2016-11-11 12:36:27 -08:00
David Anderson 7788f1f9aa web: in prefs, change enabled default to 0:00 - 23:00 2015-03-04 12:59:40 -08:00
David Anderson db015b5795 web: prefs tooltips tweaks 2015-02-19 10:56:23 -08:00
David Anderson dd1be1c0ce web: prefs pages: show tooltips on entire table row 2015-02-18 20:36:05 -08:00
David Anderson db304bf4fb web: add tooltips for computing prefs 2015-02-18 08:29:20 -08:00
David Anderson 4dbf011488 web: When check network "Limit usage to" pref, populate w/ reasonable values 2015-02-13 11:39:03 -08:00
David Anderson a918898956 web: appearance tweaks to computing prefs 2014-12-18 11:31:34 -08:00
David Anderson 0bf5c3d37c web: changes to prefs display and edit to match new design (more or less)
See http://boinc.berkeley.edu/trac/wiki/PrefsUnification

Discrepancies:
- "Consider the computer in use" pref isn't disabled when the two
  "suspend X when computer is in use" prefs are unset.
  Doing this would have greatly complicated things.
- day-of-week prefs aren't implemented

No tooltips yet.
2014-12-12 17:54:26 -08:00
David Anderson e6ecb981b3 web: change CSS usage to partly match Twitter Bootstrap. From Christian Beer. 2014-10-02 12:15:54 -07:00
David Anderson b1fabcfedd web: add optional project-specific pref for preferring non-graphical apps
Also: show beta-test preference if project has beta app versions
2014-08-07 15:43:41 -07:00
David Anderson aa8c53773b web: factor project prefs code into a separate file
I set out to make project-specific prefs use the same object framework
(PREF_BOOL, PREF_NUM etc.) as other prefs.
This turned out to be infeasible, so I settled for a code cleanup instead.

The reason it's infeasible is that the "other prefs" code
uses a SAX parser (xml_parser_create() etc.),
while the code for project-specific prefs uses the primitive
parse_element() and parse_next_element() functions in util_basic.inc.

If I'm going to change anything, I want to switch to a DOM parser
(e.g. simplexml) for both purposes.
2014-08-05 21:02:59 -07:00
David Anderson 3fc341fc60 - user web: fix numeric field sanitization in prefs. Fixes #1087.
- client: if PREFS::max_ncpus_pct is 0, don't set it to 100;
    doing so prevents PREFS::max_ncpus from having any effect.


svn path=/trunk/boinc/; revision=23355
2011-04-08 00:14:01 +00:00
David Anderson 4d79a87eb6 - web: show prefs bools as checkboxes rather than radio yes/no
svn path=/trunk/boinc/; revision=22634
2010-11-08 16:44:57 +00:00
Rytis Slatkevičius c2ffa60527 user web: fix boolean type preferences for non-english languages where PREF_BOOL is used
svn path=/trunk/boinc/; revision=21553
2010-05-17 16:13:23 +00:00
David Anderson 91665c7109 - user web: bug fixes for prefs
svn path=/trunk/boinc/; revision=21301
2010-04-26 20:28:54 +00:00
David Anderson 26c0814d26 - client: clean up network suspension logic.
There are now separate flags for
    "file_xfers_suspended": don't do file transfers
    "network_suspended": don't do any network comm
        (scheduler RPCs, RSS fetch, master fetch, etc.)
    The policy:
    if preferences/settings say no network
    (quota exceeded, no-network mode, user active, time, excl. app)
    then:
        file_xfers_suspended = true
        if (no recent network-related RPC) network_suspended = true
- user web: code cleanup for project prefs

svn path=/trunk/boinc/; revision=21299
2010-04-26 19:31:28 +00:00
David Anderson 37f08f46b0 - user web: message tweaks
svn path=/trunk/boinc/; revision=21290
2010-04-26 02:34:58 +00:00
David Anderson 8f91d96150 - user web: add network quota pref (the goal that spurred all this cleanup)
- rename prefs.daily_xfer_period to daily_xfer_period_days


svn path=/trunk/boinc/; revision=21269
2010-04-23 20:29:02 +00:00
David Anderson a32dca3fbc - user web: separate general stuff from prefs.inc
svn path=/trunk/boinc/; revision=21268
2010-04-23 18:32:30 +00:00