|
@@ -72,27 +72,31 @@
|
|
|
}
|
|
|
$formID = rand(0, 100000);
|
|
|
?>
|
|
|
- <form ajax-form method="POST" action="/process_form_submit">
|
|
|
-
|
|
|
- <input type="hidden" name="section_uid" value="<?= $section->uid?>">
|
|
|
-
|
|
|
- <input type="hidden" name="data" value="">
|
|
|
+
|
|
|
|
|
|
<?php
|
|
|
if(file_exists(storage_path('sections/' . $sectionInternalName . '/form.blade.php'))) {
|
|
|
- include(storage_path('sections/' . $sectionInternalName . '/form.blade.php'));
|
|
|
+ ?>
|
|
|
+
|
|
|
+ @include('sections.' . $sectionInternalName . '.form')
|
|
|
+ <?php
|
|
|
}else{
|
|
|
?>
|
|
|
+ <form ajax-form method="POST" action="/process_form_submit">
|
|
|
+ <input type="hidden" name="section_uid" value="<?= $section->uid?>">
|
|
|
+ <input type="hidden" name="data" value="">
|
|
|
<div note-rte data-content="{{$contentData['value']}}" class="form-group mb-2 border-left border-right rte-holder"></div>
|
|
|
+ <div class="form-group m-0 d-flex">
|
|
|
+ <button class="btn btn-sm btn-primary mr-2">Submit</button>
|
|
|
+ <button class="btn btn-sm btn-default border" onclick="return cancelFormNoteSection(this)">Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+
|
|
|
<?php
|
|
|
}
|
|
|
?>
|
|
|
|
|
|
- <div class="form-group m-0 d-flex">
|
|
|
- <button class="btn btn-sm btn-primary mr-2">Submit</button>
|
|
|
- <button class="btn btn-sm btn-default border" onclick="return cancelFormNoteSection(this)">Cancel</button>
|
|
|
- </div>
|
|
|
- </form>
|
|
|
+
|
|
|
</div>
|
|
|
</div>
|
|
|
@endforeach
|