firefly-iii/resources/twig/piggy-banks/add.twig

26 lines
1.3 KiB
Twig
Raw Normal View History

<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-05-02 04:32:45 -05:00
<div class="modal-body">
<p>
The maximum amount you can add is {{ maxAmount|formatAmount }}.
</p>
<div class="input-group">
<div class="input-group-addon">{{ getCurrencySymbol()|raw }}</div>
2015-05-02 04:32:45 -05:00
<input type="hidden" name="_token" value="{{ csrf_token() }}" />
<input step="any" class="form-control" id="amount" autocomplete="off" name="amount" max="{{ maxAmount|round(2) }}" type="number" />
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">{{ 'close'|_ }}</button>
2015-05-02 04:32:45 -05:00
<button type="submit" class="btn btn-primary">Add</button>
</div>
</form>
2015-05-02 04:32:45 -05:00
</div>
</div>
2015-05-02 04:32:45 -05:00