From 87ff7b07d2c4314492f28d8a2b80f481ac6b907a Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 21 Oct 2008 20:33:16 +0000 Subject: [PATCH] - web: if user tries to edit a BOINC-wide team, warn them that changes will get overwritten. Fixes #758 svn path=/trunk/boinc/; revision=16244 --- checkin_notes | 7 +++++++ html/inc/team.inc | 9 +++++++++ 2 files changed, 16 insertions(+) diff --git a/checkin_notes b/checkin_notes index 55f7f727b3..6241453921 100644 --- a/checkin_notes +++ b/checkin_notes @@ -8499,3 +8499,10 @@ David 21 Oct 2008 profile_screen_action.php project.sample/ project.inc + +David 21 Oct 2008 + - web: if user tries to edit a BOINC-wide team, + warn them that changes will get overwritten. + + html/inc/ + team.inc diff --git a/html/inc/team.inc b/html/inc/team.inc index b230176ec6..7b91ec515e 100644 --- a/html/inc/team.inc +++ b/html/inc/team.inc @@ -387,6 +387,15 @@ function team_edit_form($team, $label, $url) { if ($team) { echo "id>\n"; } + if ($team->seti_id) { + echo "

WARNING: this is a BOINC-wide team. + If you make changes here, they will soon be overwritten. + Edit the + BOINC-wide team + instead. +

+ "; + } echo '

'.tra('%1Privacy note%2: if you create a team, your project preferences (resource share, graphics preferences) will be visible to the public.', '', '').'