Skip to content

Commit

Permalink
Restyle the send reminder form
Browse files Browse the repository at this point in the history
Fixes #17832

Signed-off-by: Victor Boctor <victor@mantishub.net>
  • Loading branch information
syncguru authored and vboctor committed Nov 22, 2014
1 parent 2153872 commit 3ad885b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 26 deletions.
46 changes: 22 additions & 24 deletions bug_reminder_page.php
Expand Up @@ -70,11 +70,11 @@

<?php # Send reminder Form BEGIN ?>
<br />
<div>
<form method="post" action="bug_reminder.php">
<?php echo form_security_field( 'bug_reminder' ) ?>
<input type="hidden" name="bug_id" value="<?php echo $f_bug_id ?>" />
<table class="width75" cellspacing="1">
<div class="width75 form-container">
<table cellspacing="1">
<tr>
<td class="form-title" colspan="2">
<?php echo lang_get( 'bug_reminder' ) ?>
Expand All @@ -84,39 +84,38 @@
<th class="category">
<?php echo lang_get( 'to' ) ?>
</th>
<th class="category">
<?php echo lang_get( 'reminder' ) ?>
</th>
</tr>
<tr>
<td>
<select name="to[]" multiple="multiple" size="10">
<select name="to[]" multiple="multiple" size="12" class="width20">
<?php
$t_project_id = bug_get_field( $f_bug_id, 'project_id' );
$t_access_level = config_get( 'reminder_receive_threshold' );
if( $t_bug->view_state === VS_PRIVATE ) {
$t_private_bug_threshold = config_get( 'private_bug_threshold' );
if( $t_private_bug_threshold > $t_access_level ) {
$t_access_level = $t_private_bug_threshold;
}
$t_project_id = bug_get_field( $f_bug_id, 'project_id' );
$t_access_level = config_get( 'reminder_receive_threshold' );
if( $t_bug->view_state === VS_PRIVATE ) {
$t_private_bug_threshold = config_get( 'private_bug_threshold' );
if( $t_private_bug_threshold > $t_access_level ) {
$t_access_level = $t_private_bug_threshold;
}
$t_selected_user_id = 0;
print_user_option_list( $t_selected_user_id, $t_project_id, $t_access_level );
}
$t_selected_user_id = 0;
print_user_option_list( $t_selected_user_id, $t_project_id, $t_access_level );
?>
</select>
</td>
<td class="center">
<textarea name="body" cols="65" rows="10"></textarea>
</td>
</tr>
<tr>
<td class="center" colspan="2">
<input type="submit" class="button" value="<?php echo lang_get( 'bug_send_button' ) ?>" />
<th class="category">
<?php echo lang_get( 'reminder' ) ?>
</th>
<td>
<textarea name="body" cols="85" rows="10" class="width100"></textarea>
</td>
</tr>
</table>
<div class="center">
<input type="submit" class="button" value="<?php echo lang_get( 'bug_send_button' ) ?>" />
</div>
</div>
</form>
<br />
<br/>
<table class="width75" cellspacing="1">
<tr>
<td>
Expand All @@ -132,7 +131,6 @@
</td>
</tr>
</table>
</div>

<br />
<?php
Expand Down
8 changes: 6 additions & 2 deletions css/default.css
Expand Up @@ -22,11 +22,15 @@ a > img { border: none; }
form { display: inline; }

input {}
input.button {}
input.button-small { font-size: 1em; }
input.button {}
input.button-small { font-size: 1em; }

textarea {}
textarea.width100 { width: 100%; }

select {}
select.width100 { width: 100%; }
select.width20 { width: 20%; }

span { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; }
span.print { font-size: 8pt; }
Expand Down

0 comments on commit 3ad885b

Please sign in to comment.