javascript test for srp admin dashboard

This commit is contained in:
2020-03-06 20:07:34 -06:00
parent 30595d6c08
commit f34da4ff5d

View File

@@ -40,7 +40,7 @@
{{ Form::text('total_loss', number_format($row['loss_value'], 2, ".", ","), ['class' => 'form-control', 'onchange' => 'UpdateTotalLoss(this.value)']) }}
</td>
<td><!-- Ship Type -->
{{ Form::select('ship_type', $viewShipTypes, $row['cost_code']) }}
{{ Form::select('ship_type', $viewShipTypes, $row['cost_code'], ['class' => 'form-control', 'onchange' => 'UpdateShipType(this.value)']) }}
</td>
<td><!-- Payout percentage -->
{{ $row['payout_percentage'] }}
@@ -85,6 +85,10 @@
function UpdateTotalLoss(val) {
alert("The input value has changed. The new value is: " + val);
}
function UpdateShipType(val) {
alert("The input value for ship type has changed. Thew new value is: " + val);
}
</script>
@else
<div class="container">