Added save function to save button
This commit also improves how forms are parsed by PHP by passing them as arrays, therefore making them easier to process. Note: One of the files contains a debug statement that will be removed in the next commit
This commit is contained in:
@@ -18,9 +18,15 @@
|
||||
|
||||
<div class="card-body">
|
||||
|
||||
<fieldset id="buildyourform">
|
||||
<legend>Form Builder</legend>
|
||||
</fieldset>
|
||||
<form id="formbuilder" action="{{route('saveForm')}}" method="POST">
|
||||
|
||||
@csrf
|
||||
|
||||
<fieldset id="buildyourform">
|
||||
<legend>Form Builder</legend>
|
||||
</fieldset>
|
||||
|
||||
</form>
|
||||
|
||||
<div class="mt-4">
|
||||
<input type="button" value="New Field" class="add btn btn-success" id="add" />
|
||||
@@ -31,7 +37,7 @@
|
||||
|
||||
<div class="card-footer text-center">
|
||||
|
||||
<button type="button" class="btn btn-success">Save Form</button>
|
||||
<button onclick="save()" type="button" class="btn btn-success">Save Form</button>
|
||||
|
||||
</div>
|
||||
|
||||
|
Reference in New Issue
Block a user