diff options
Diffstat (limited to 'app/Module/NotesTabModule.php')
| -rw-r--r-- | app/Module/NotesTabModule.php | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/app/Module/NotesTabModule.php b/app/Module/NotesTabModule.php index 1bab581a22..5b4e31037f 100644 --- a/app/Module/NotesTabModule.php +++ b/app/Module/NotesTabModule.php @@ -61,14 +61,13 @@ class NotesTabModule extends AbstractModule implements ModuleTabInterface { global $WT_TREE, $controller; ob_start(); - echo '<table class="facts_table">'; ?> - <tr> - <td colspan="2" class="descriptionbox rela"> + <div class="descriptionbox rela"> <input id="checkbox_note2" type="checkbox" <?php echo $WT_TREE->getPreference('SHOW_LEVEL2_NOTES') ? 'checked' : ''; ?> onclick="jQuery('tr.row_note2').toggle();"> - <label for="checkbox_note2"><?php echo I18N::translate('Show all notes'); ?></label> - </td> - </tr> + <label for="checkbox_note2"><?php echo I18N::translate('Show all notes'); ?></label> + </div> + <table class="facts_table"> + <?php foreach ($this->getFactsWithNotes() as $fact) { if ($fact->getTag() == 'NOTE') { |
