Skip to content

Commit

Permalink
Edit note form should use consistent background color
Browse files Browse the repository at this point in the history
When editing an issue, the background color for the text area should be
consistent with the class of private vs. public notes.

Issue #21697
  • Loading branch information
vboctor committed Sep 27, 2016
1 parent fd6c9c7 commit dce9774
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bugnote_edit_page.php
Expand Up @@ -109,6 +109,8 @@
layout_page_header( bug_format_summary( $t_bug_id, SUMMARY_CAPTION ) );

layout_page_begin();

$t_bugnote_class = bugnote_get_field( $f_bugnote_id, 'view_state' ) == VS_PUBLIC ? '' : 'bugnote-private';
?>
<div class="col-md-12 col-xs-12">

Expand All @@ -128,7 +130,8 @@
<table class="table table-bordered table-condensed table-striped">
<tr>
<td class="center" colspan="2">
<textarea class="form-control" cols="80" rows="10" name="bugnote_text"><?php echo $t_bugnote_text ?></textarea>
<textarea class="form-control <?php echo $t_bugnote_class; ?>" cols="80" rows="10" name="bugnote_text"
><?php echo $t_bugnote_text ?></textarea>
</td>
</tr>
<?php if( config_get( 'time_tracking_enabled' ) ) { ?>
Expand Down

0 comments on commit dce9774

Please sign in to comment.