|
@@ -3,29 +3,22 @@ $contentData = false;
|
|
|
if($section){
|
|
|
$contentData = json_decode($section->content_data, true);
|
|
|
}
|
|
|
-if(!$contentData || !isset($contentData['clientInfoLineMulti'])) {
|
|
|
+if(!$contentData || !isset($contentData['value'])) {
|
|
|
$contentData = [
|
|
|
- 'clientInfoLineMulti'=> [
|
|
|
- 'category' => 'allergy',
|
|
|
- 'contentTexts' => ''
|
|
|
- ]
|
|
|
+ 'value'=>''
|
|
|
];
|
|
|
}
|
|
|
$formID = rand(0, 100000);
|
|
|
?>
|
|
|
<form method="POST" action="/process_form_submit" onsubmit="return submitForm_NoteSection_{{ $formID }}(this);">
|
|
|
<?php if($section): ?>
|
|
|
- <input type="hidden" name="section_uid" value="<?= $section->uid?>">
|
|
|
+ <input type="hidden" name="section_uid" value="<?= $section->uid?>">
|
|
|
<?php else: ?>
|
|
|
- <input type="hidden" name="note_uid" value="<?= $note->uid?>">
|
|
|
- <input type="hidden" name="section_template_uid" value="<?= $sectionTemplate->uid ?>">
|
|
|
+ <input type="hidden" name="note_uid" value="<?= $note->uid?>">
|
|
|
+ <input type="hidden" name="section_template_uid" value="<?= $sectionTemplate->uid ?>">
|
|
|
<?php endif; ?>
|
|
|
<div class="form-group mb-2">
|
|
|
- <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>
|
|
|
+ <textarea rte type="text" class="form-control form-control-sm p-2" name="value" placeholder="Value"><?= $contentData['value'] ?></textarea>
|
|
|
</div>
|
|
|
<div class="form-group m-0 d-flex">
|
|
|
<button class="btn btn-sm btn-primary mr-2">Submit</button>
|