mirror of https://github.com/BOINC/boinc.git
web: tweaks to project-specific prefs
This commit is contained in:
parent
5df6cda994
commit
58c4d02b5d
|
@ -271,7 +271,7 @@ function print_prefs_display_project($user, $columns=false) {
|
||||||
|
|
||||||
$switch_link = " <font size=\"-1\"><a href=prefs.php?subset=project&cols=". (int)!$columns .">".tra("(Switch View)")."</a></font>";
|
$switch_link = " <font size=\"-1\"><a href=prefs.php?subset=project&cols=". (int)!$columns .">".tra("(Switch View)")."</a></font>";
|
||||||
if ($columns) {
|
if ($columns) {
|
||||||
echo "<h2>".tra("Combined preferences").$switch_link."</h2>";
|
echo "<h3>".tra("Combined preferences").$switch_link."</h3>";
|
||||||
start_table();
|
start_table();
|
||||||
prefs_show_privacy($user, true);
|
prefs_show_privacy($user, true);
|
||||||
venue_show($user);
|
venue_show($user);
|
||||||
|
@ -282,7 +282,7 @@ function print_prefs_display_project($user, $columns=false) {
|
||||||
end_table();
|
end_table();
|
||||||
} else {
|
} else {
|
||||||
if (isset($project_prefs->home) || isset($project_prefs->work) || isset($project_prefs->school)) {
|
if (isset($project_prefs->home) || isset($project_prefs->work) || isset($project_prefs->school)) {
|
||||||
echo "<h2>".tra("Primary (default) preferences").$switch_link."</h2>";
|
echo "<h3>".tra("Primary (default) preferences").$switch_link."</h3>";
|
||||||
}
|
}
|
||||||
start_table();
|
start_table();
|
||||||
prefs_show_project($project_prefs, false);
|
prefs_show_project($project_prefs, false);
|
||||||
|
|
|
@ -109,7 +109,7 @@ function project_specific_prefs_default() {
|
||||||
|
|
||||||
function number_select($name, $max, $n) {
|
function number_select($name, $max, $n) {
|
||||||
$sel = ($n == 0) ? "selected":"";
|
$sel = ($n == 0) ? "selected":"";
|
||||||
$x = "<select name=$name> <option value=0 $sel>".tra("No limit")."</option>";
|
$x = "<select class=\"form-control\" name=$name> <option value=0 $sel>".tra("No limit")."</option>";
|
||||||
for ($i=1; $i<=$max; $i++) {
|
for ($i=1; $i<=$max; $i++) {
|
||||||
$sel = ($n == $i) ? "selected":"";
|
$sel = ($n == $i) ? "selected":"";
|
||||||
$x .= "<option value=$i $sel>$i</option>";
|
$x .= "<option value=$i $sel>$i</option>";
|
||||||
|
@ -127,7 +127,7 @@ function project_specific_prefs_edit($prefs, $error=false) {
|
||||||
global $app_array;
|
global $app_array;
|
||||||
if (COLOR_PREFS) {
|
if (COLOR_PREFS) {
|
||||||
$x = $prefs->color_scheme;
|
$x = $prefs->color_scheme;
|
||||||
$y = "<select name=color_scheme>
|
$y = "<select class=\"form-control\" name=color_scheme>
|
||||||
".option("Tahiti Sunset", $x)
|
".option("Tahiti Sunset", $x)
|
||||||
.option("Desert Sands", $x)."
|
.option("Desert Sands", $x)."
|
||||||
</select>
|
</select>
|
||||||
|
|
Loading…
Reference in New Issue