[ENH] bemade_sports_clinic: wrap text on the portal and show HTML.

Allows portal users to see the full diagnosis and notes. Previously,
diagnosis was truncated if it went beyond the bounds of the column.

Also, notes are now shown in HTML instead of HTML escaped to text.
This commit is contained in:
Marc Durepos 2023-12-11 18:23:31 -05:00
parent 579ba7bab9
commit e96bcadaed
2 changed files with 5 additions and 5 deletions

View file

@ -18,7 +18,7 @@
#
{
'name': 'Sports Clinic Management',
'version': '16.0.1.5.0',
'version': '16.0.1.5.1',
'summary': 'Manage the patients of a sports medicine clinic.',
'description': """
Adds the notion of sports teams, players (patients), coaches and treatment

View file

@ -165,18 +165,18 @@
<t t-call="portal.portal_table">
<thead>
<tr>
<th width="20%">Active Injury</th>
<th width="80%">Notes</th>
<th width="30%">Active Injury</th>
<th width="70%">Notes</th>
</tr>
</thead>
<tbody>
<t t-foreach="injuries" t-as="injury">
<tr>
<td>
<span t-field="injury.diagnosis"/>
<span t-field="injury.diagnosis" class="text-wrap"/>
</td>
<td>
<span t-field="injury.external_notes"/>
<span t-raw="injury.external_notes" class="text-wrap"/>
</td>
</tr>
</t>