<?php
$contentData = false;
if($section){
    $contentData = json_decode($section->content_data, true);
}
if(!$contentData || !isset($contentData['value'])) {
    $contentData = [
        'value'=>''
    ];
}
?>
<form processed-form>
    <?php if($section): ?>
        <input type="hidden" name="section_uid" value="<?= $section->uid?>">
        <input type="hidden" name="data">
    <?php else: ?>
        <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">
        <div note-rte type="text" name="value" placeholder="Value"><?= $contentData['value'] ?></div>
    </div>
</form>
