Skip to content

Commit

Permalink
Planner: fix issue with smart block layout on planner related to unre…
Browse files Browse the repository at this point in the history
…factored code
  • Loading branch information
SKuipers committed Feb 7, 2025
1 parent 31c32c4 commit fd6ca6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/Planner/src/Forms/PlannerFormFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ public function createSmartBlockTemplate($guid) : OutputableInterface
$smartBlockTemplate = $container->get(SettingGateway::class)->getSettingByScope('Planner', 'smartBlockTemplate');
$col = $blockTemplate->addRow()->addClass('showHide w-full')->addColumn();
$col->addLabel('contentsLabel', __('Block Contents'))->setClass('mt-3 -mb-2');
$col->addTextArea('contents', $guid)->setRows(20)->addData('tinymce')->addData('media', '1')->setValue($smartBlockTemplate);
$col->addEditor('contents', $guid)->showMedia()->setRows(20)->setValue($smartBlockTemplate);

$col = $blockTemplate->addRow()->addClass('showHide w-full')->addColumn();
$col->addLabel('teachersNotesLabel', __('Teacher\'s Notes'))->setClass('mt-3 -mb-2');
$col->addTextArea('teachersNotes', $guid)->setRows(20)->addData('tinymce')->addData('media', '1');
$col->addEditor('teachersNotes', $guid)->showMedia()->setRows(20);

return $blockTemplate;
}
Expand Down Expand Up @@ -231,7 +231,7 @@ public function createOutcomeBlockTemplate($allowOutcomeEditing) : OutputableInt

$col = $blockTemplate->addRow()->addClass('showHide w-full')->addColumn();
if ($allowOutcomeEditing == 'Y') {
$col->addTextArea('outcomecontents')->setRows(10)->addData('tinymce');
$col->addEditor('outcomecontents')->setRows(10);
} else {
$col->addContent('')->wrap('<label for="outcomecontents" class="block pt-2">', '</label>')
->append('<input type="hidden" id="outcomecontents" name="outcomecontents" value="">');
Expand Down

0 comments on commit fd6ca6e

Please sign in to comment.