|
@@ -3,9 +3,12 @@ $contentData = false;
|
|
if($section){
|
|
if($section){
|
|
$contentData = json_decode($section->content_data, true);
|
|
$contentData = json_decode($section->content_data, true);
|
|
}
|
|
}
|
|
-if(!$contentData || !isset($contentData['value'])) {
|
|
|
|
|
|
+if(!$contentData || !isset($contentData['clientInfoLineMulti'])) {
|
|
$contentData = [
|
|
$contentData = [
|
|
- 'value'=>''
|
|
|
|
|
|
+ 'clientInfoLineMulti'=> [
|
|
|
|
+ 'category' => 'allergy',
|
|
|
|
+ 'contentTexts' => ''
|
|
|
|
+ ]
|
|
];
|
|
];
|
|
}
|
|
}
|
|
$formID = rand(0, 100000);
|
|
$formID = rand(0, 100000);
|
|
@@ -18,7 +21,11 @@ $formID = rand(0, 100000);
|
|
<input type="hidden" name="section_template_uid" value="<?= $sectionTemplate->uid ?>">
|
|
<input type="hidden" name="section_template_uid" value="<?= $sectionTemplate->uid ?>">
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
<div class="form-group mb-2">
|
|
<div class="form-group mb-2">
|
|
- <textarea rte type="text" class="form-control form-control-sm p-2" name="value" placeholder="Value"><?= $contentData['value'] ?></textarea>
|
|
|
|
|
|
+ <label class="text-secondary text-sm mb-1 d-block">One allergy per line:</label>
|
|
|
|
+ <?php
|
|
|
|
+ $value = $contentData['clientInfoLineMulti']['contentTexts'];
|
|
|
|
+ ?>
|
|
|
|
+ <textarea type="text" class="form-control form-control-sm p-2" name="value" placeholder="Value"><?= $value ?></textarea>
|
|
</div>
|
|
</div>
|
|
<div class="form-group m-0 d-flex">
|
|
<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-primary mr-2">Submit</button>
|