Skip to content

Commit

Permalink
Fixes #10728: Refactor reporting page to allow controlling which fiel…
Browse files Browse the repository at this point in the history
…ds should be visible.

1. Get rid of the concept of simple / advanced.
2. Allow admins to control which fields to be visible in the report pages.
  • Loading branch information
vboctor committed Jul 15, 2009
1 parent 639629e commit fce709d
Show file tree
Hide file tree
Showing 9 changed files with 404 additions and 650 deletions.
40 changes: 16 additions & 24 deletions account_prefs_inc.php
Expand Up @@ -69,7 +69,7 @@ function edit_account_prefs($p_user_id = null, $p_error_if_protected = true, $p_
?>
</td>
</tr>
<tr class="row-1">
<tr <?php echo helper_alternate_class() ?>>
<td class="category" width="50%">
<?php echo lang_get( 'default_project' ) ?>
</td>
Expand All @@ -79,31 +79,23 @@ function edit_account_prefs($p_user_id = null, $p_error_if_protected = true, $p_
</select>
</td>
</tr>
<tr class="row-2">
<td class="category">
<?php echo lang_get( 'advanced_report' ) ?>
</td>
<td>
<input type="checkbox" name="advanced_report" <?php check_checked( $t_pref->advanced_report, ON ); ?> />
</td>
</tr>
<tr class="row-1">
<tr <?php echo helper_alternate_class() ?>>
<td class="category">
<?php echo lang_get( 'refresh_delay' ) ?>
</td>
<td>
<input type="text" name="refresh_delay" size="4" maxlength="4" value="<?php echo $t_pref->refresh_delay ?>" /> <?php echo lang_get( 'minutes' ) ?>
</td>
</tr>
<tr class="row-2">
<tr <?php echo helper_alternate_class() ?>>
<td class="category">
<?php echo lang_get( 'redirect_delay' ) ?>
</td>
<td>
<input type="text" name="redirect_delay" size="4" maxlength="1" value="<?php echo $t_pref->redirect_delay ?>" /> <?php echo lang_get( 'seconds' ) ?>
</td>
</tr>
<tr class="row-1">
<tr <?php echo helper_alternate_class() ?>>
<td class="category">
<?php echo lang_get( 'bugnote_order' ) ?>
</td>
Expand All @@ -115,7 +107,7 @@ function edit_account_prefs($p_user_id = null, $p_error_if_protected = true, $p_
<?php
if ( ON == config_get( 'enable_email_notification' ) ) {
?>
<tr class="row-2">
<tr <?php echo helper_alternate_class() ?>>
<td class="category">
<?php echo lang_get( 'email_on_new' ) ?>
</td>
Expand All @@ -129,7 +121,7 @@ function edit_account_prefs($p_user_id = null, $p_error_if_protected = true, $p_
</select>
</td>
</tr>
<tr class="row-1">
<tr <?php echo helper_alternate_class() ?>>
<td class="category">
<?php echo lang_get( 'email_on_assigned' ) ?>
</td>
Expand All @@ -143,7 +135,7 @@ function edit_account_prefs($p_user_id = null, $p_error_if_protected = true, $p_
</select>
</td>
</tr>
<tr class="row-2">
<tr <?php echo helper_alternate_class() ?>>
<td class="category">
<?php echo lang_get( 'email_on_feedback' ) ?>
</td>
Expand All @@ -157,7 +149,7 @@ function edit_account_prefs($p_user_id = null, $p_error_if_protected = true, $p_
</select>
</td>
</tr>
<tr class="row-1">
<tr <?php echo helper_alternate_class() ?>>
<td class="category">
<?php echo lang_get( 'email_on_resolved' ) ?>
</td>
Expand All @@ -171,7 +163,7 @@ function edit_account_prefs($p_user_id = null, $p_error_if_protected = true, $p_
</select>
</td>
</tr>
<tr class="row-2">
<tr <?php echo helper_alternate_class() ?>>
<td class="category">
<?php echo lang_get( 'email_on_closed' ) ?>
</td>
Expand All @@ -185,7 +177,7 @@ function edit_account_prefs($p_user_id = null, $p_error_if_protected = true, $p_
</select>
</td>
</tr>
<tr class="row-1">
<tr <?php echo helper_alternate_class() ?>>
<td class="category">
<?php echo lang_get( 'email_on_reopened' ) ?>
</td>
Expand All @@ -199,7 +191,7 @@ function edit_account_prefs($p_user_id = null, $p_error_if_protected = true, $p_
</select>
</td>
</tr>
<tr class="row-2">
<tr <?php echo helper_alternate_class() ?>>
<td class="category">
<?php echo lang_get( 'email_on_bugnote_added' ) ?>
</td>
Expand All @@ -213,7 +205,7 @@ function edit_account_prefs($p_user_id = null, $p_error_if_protected = true, $p_
</select>
</td>
</tr>
<tr class="row-1">
<tr <?php echo helper_alternate_class() ?>>
<td class="category">
<?php echo lang_get( 'email_on_status_change' ) ?>
</td>
Expand All @@ -227,7 +219,7 @@ function edit_account_prefs($p_user_id = null, $p_error_if_protected = true, $p_
</select>
</td>
</tr>
<tr class="row-2">
<tr <?php echo helper_alternate_class() ?>>
<td class="category">
<?php echo lang_get( 'email_on_priority_change' ) ?>
</td>
Expand All @@ -241,7 +233,7 @@ function edit_account_prefs($p_user_id = null, $p_error_if_protected = true, $p_
</select>
</td>
</tr>
<tr class="row-1">
<tr <?php echo helper_alternate_class() ?>>
<td class="category">
<?php echo lang_get( 'email_bugnote_limit' ) ?>
</td>
Expand Down Expand Up @@ -270,7 +262,7 @@ function edit_account_prefs($p_user_id = null, $p_error_if_protected = true, $p_
<input type="hidden" name="email_on_priority_min_severity" value="<?php echo $t_pref->email_on_priority_min_severity ?>" />
<input type="hidden" name="email_bugnote_limit" value="<?php echo $t_pref->email_bugnote_limit ?>" />
<?php } ?>
<tr class="row-2">
<tr <?php echo helper_alternate_class() ?>>
<td class="category">
<?php echo lang_get( 'timezone' ) ?>
</td>
Expand All @@ -280,7 +272,7 @@ function edit_account_prefs($p_user_id = null, $p_error_if_protected = true, $p_
</select>
</td>
</tr>
<tr class="row-2">
<tr <?php echo helper_alternate_class() ?>>
<td class="category">
<?php echo lang_get( 'language' ) ?>
</td>
Expand Down

0 comments on commit fce709d

Please sign in to comment.