javascript test for srp admin dashboard
This commit is contained in:
@@ -40,7 +40,7 @@
|
|||||||
{{ Form::text('total_loss', number_format($row['loss_value'], 2, ".", ","), ['class' => 'form-control', 'onchange' => 'UpdateTotalLoss(this.value)']) }}
|
{{ Form::text('total_loss', number_format($row['loss_value'], 2, ".", ","), ['class' => 'form-control', 'onchange' => 'UpdateTotalLoss(this.value)']) }}
|
||||||
</td>
|
</td>
|
||||||
<td><!-- Ship Type -->
|
<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>
|
||||||
<td><!-- Payout percentage -->
|
<td><!-- Payout percentage -->
|
||||||
{{ $row['payout_percentage'] }}
|
{{ $row['payout_percentage'] }}
|
||||||
@@ -85,6 +85,10 @@
|
|||||||
function UpdateTotalLoss(val) {
|
function UpdateTotalLoss(val) {
|
||||||
alert("The input value has changed. The new value is: " + 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>
|
</script>
|
||||||
@else
|
@else
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
|||||||
Reference in New Issue
Block a user