lundi 25 janvier 2016

Dialog form in form action laravel 5.1

Hai i have many question :D

I have form action

<form  id="form_1" action="{{route("admin.pos.store")}}" method="POST" enctype="multipart/form-data" onsubmit="return CJForm_s(1)">
<!-- Transaction form -->

<!-- end Transaction -->
<!-- Dialog Payment -->
<button  class="btn btn-info btn-block btn-lg" type="button" data-toggle = "modal" data-target="#payments" >Complete</button>
<div class="modal fade" id="payments" tabindex="-1" role="dialog" aria-labelledby="payments">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="method">Method Payment</h4>
            </div>
            <div class="modal-body">
                <button class="btn btn-primary" type="button" id="debit">Debit</button>
                <button class="btn btn-primary" type="button" id="kredit">Kredit</button>
                <button class="btn btn-primary" type="button" id="transfer">Transfer</button>
                <button class="btn btn-primary" type="button" id="cash">Cash</button>
                <hr/>
                <div id="content-payment"></div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                <button type="button" class="btn btn-primary" type="submit" id="send_payment">Send</button>
            </div>
        </div>
    </div>
</div>
<!-- End Dialog Payment -->
</form>

if click button submit in dialog it will be stored all transactions and input in dialog, Thats happend if submit in dialog nothing happen.

Can you give me soltuion for this problem ?

Thanks



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1KBpA3z
via IFTTT

Aucun commentaire:

Enregistrer un commentaire