2014-12-24 13:55:42 -06:00
|
|
|
<form style="display: inline;" id="add" action="{{route('piggy_banks.add',$piggyBank->id)}}" method="POST">
|
2014-10-31 01:32:43 -05:00
|
|
|
{{Form::token()}}
|
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
|
2014-12-24 12:13:15 -06:00
|
|
|
<h4 class="modal-title" id="myModalLabel">Add money to {{{$piggyBank->name}}}</h4>
|
2014-10-31 01:32:43 -05:00
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<p>
|
2015-01-02 02:06:44 -06:00
|
|
|
The maximum amount you can add is {{Amount::format($maxAmount)}}
|
2014-10-31 01:32:43 -05:00
|
|
|
</p>
|
|
|
|
<div class="input-group">
|
|
|
|
<div class="input-group-addon">€</div>
|
2014-11-08 04:37:55 -06:00
|
|
|
<input step="any" class="form-control" id="amount" autocomplete="off" name="amount" max="{{round($maxAmount,2)}}" type="number">
|
2014-10-31 01:32:43 -05:00
|
|
|
</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>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-01-01 23:16:49 -06:00
|
|
|
</form>
|