Skip to content

Commit

Permalink
Evarisk#579 [Session] add: move content middle of page
Browse files Browse the repository at this point in the history
  • Loading branch information
evarisk-francois committed Jun 12, 2024
1 parent d5451c8 commit a71d27f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions view/session/session_card.php
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,9 @@
unset($object->fields['fk_soc']); // Hide field already shown in banner.
unset($object->fields['fk_contrat']); // Hide field already shown in banner.

$content = $object->fields['content'];
unset($object->fields['content']);

// Common attributes.
require_once DOL_DOCUMENT_ROOT . '/core/tpl/commonfields_view.tpl.php';

Expand All @@ -478,6 +481,21 @@

print '<div class="clearboth"></div>';

print '<table class="centpercent notopnoleftnoright table-fiche-title">';
print '<tbody>';
print '<tr class="titre">';
print '<td class="nobordernopadding valignmiddle col-title">';
print '<div class="titre inline-block">' . $langs->trans($content['label']) . '</div>';
print '</td>';
print '</tr>';
print '<tr>';
print '<td>';
print '<div class="longmessagecut">' . $object->content . '</div>';
print '</td>';
print '</tr>';
print '</tbody>';
print '</table>';

print dol_get_fiche_end();

$documentTypeArray = ['trainingsession', 'attendancesheet', 'completioncertificate'];
Expand Down

0 comments on commit a71d27f

Please sign in to comment.