Skip to content

Commit

Permalink
Make label wider on packet index
Browse files Browse the repository at this point in the history
  • Loading branch information
carlbennett committed Feb 12, 2019
1 parent 4326a4d commit aaa5106
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/templates/Packet/Index.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ require('./header.inc.phtml');
} ?>>User Id (Descending)</option>
</select>
</div>
<table><thead><tr><th colspan="3">Packet Types</th></tr></thead><tbody>
<table><thead><tr><th colspan="6">Packet Types</th></tr></thead><tbody>
<?php $x = 0; foreach ($this->getContext()->application_layers as $layer) {
$id = 'pktapplayer-' . $layer->getId();
$chk = in_array( $layer->getId(), $this->getContext()->pktapplayer );
if ( $x % 3 == 0 ) { ?>
<tr>
<?php } ?>
<td><input type="checkbox" name="pktapplayer[]" id="<?php echo $id; ?>" value="<?php echo $layer->getId(); ?>"<?php if ($chk) { ?> checked="checked"<?php } ?>> <label for="<?php echo $id; ?>"><?php echo $layer->getTag(); ?></label></td>
<td style="width:20px;"><input type="checkbox" name="pktapplayer[]" id="<?php echo $id; ?>" value="<?php echo $layer->getId(); ?>"<?php if ($chk) { ?> checked="checked"<?php } ?>></td><td><label style="display:inline-block;" for="<?php echo $id; ?>"><?php echo $layer->getTag(); ?></label></td>
<?php if ( $x % 3 == 2 ) { ?>
</tr>
<?php } ?>
Expand Down

0 comments on commit aaa5106

Please sign in to comment.