firefly-iii/resources/views/piggy-banks/add.blade.php

28 lines
1.3 KiB
PHP
Raw Normal View History

2015-02-24 14:10:25 -06:00
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
<h4 class="modal-title" id="myModalLabel">Add money to {{{$piggyBank->name}}}</h4>
</div>
<form style="display: inline;" id="add" action="{{route('piggy-banks.add',$piggyBank->id)}}" method="POST">
2015-02-24 14:10:25 -06:00
<div class="modal-body">
<p>
2015-02-25 12:32:33 -06:00
The maximum amount you can add is {!! Amount::format($maxAmount) !!}
2015-02-24 14:10:25 -06:00
</p>
<div class="input-group">
<div class="input-group-addon"></div>
{!! Form::token() !!}
2015-02-24 14:10:25 -06:00
<input step="any" class="form-control" id="amount" autocomplete="off" name="amount" max="{{round($maxAmount,2)}}" type="number">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="submit" class="btn btn-primary">Add</button>
</div>
</form>
2015-02-24 14:10:25 -06:00
</div>
</div>