Skip to content

Commit

Permalink
MantisBT 1.3 support follow-up
Browse files Browse the repository at this point in the history
@bkraul's original submission only updated the HTML displayed in bug
report page, but did not update the config page.

Fixes #3
  • Loading branch information
dregad committed Mar 24, 2017
1 parent 6ad7d2c commit d22e3be
Showing 1 changed file with 31 additions and 22 deletions.
53 changes: 31 additions & 22 deletions pages/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,36 +30,45 @@
?>

<br/>
<div class="form-container width50">

<form action="<?php echo plugin_page( 'config_edit' ) ?>" method="post">
<?php echo form_security_field( 'plugin_customreporter_config_update' ) ?>

<table align="center" class="width50" cellspacing="1">
<table>

<tr>
<td class="form-title" colspan="2">
<?php echo $t_title . ': ' . plugin_lang_get( 'config' )?>
</td>
</tr>
<thead>
<tr>
<th class="form-title" colspan="2">
<?php echo $t_title . ': ' . plugin_lang_get( 'config' )?>
</th>
</tr>
</thead>

<tr <?php echo helper_alternate_class() ?>>
<td class="category">
<?php echo plugin_lang_get( 'threshold' ) ?>
</td>
<td class="center">
<select name="plugin_customreporter_threshold">
<?php print_enum_string_option_list( 'access_levels', plugin_config_get( 'select_threshold' ) ) ?>;
</select>
</td>
</tr>
<tbody>
<tr>
<td class="category">
<?php echo plugin_lang_get( 'threshold' ) ?>
</td>
<td class="center">
<select name="plugin_customreporter_threshold">
<?php print_enum_string_option_list( 'access_levels', plugin_config_get( 'select_threshold' ) ) ?>;
</select>
</td>
</tr>
</tbody>

<tr>
<td class="center" colspan="3">
<input type="submit" class="button" value="<?php echo lang_get( 'change_configuration' ) ?>" />
</td>
</tr>
<tfoot>
<tr>
<td class="center" colspan="3">
<input type="submit" class="button" value="<?php echo lang_get( 'change_configuration' ) ?>" />
</td>
</tr>
</tfoot>

</table>
<form>
</form>
</div>

<?php
html_page_bottom1( __FILE__ );

0 comments on commit d22e3be

Please sign in to comment.