{* Example: Display a variable directly *} <div> {$editButton} {$deleteButton} </div> {*Test list all of the observations*} <h3>General observations</h3> <table class="crm-info-panel"> <tbody> <tr> <td class="label">Ethnicity</td> <td class="html-adjust">{$observations.nvgo_ethnicity_id}</td> </tr> <tr> <td class="label">Weight Kg</td> <td class="html-adjust">{$observations.nvgo_weight_kg}</td> </tr> <tr> <td class="label">Height (m)</td> <td class="html-adjust">{$observations.nvgo_height_m}</td> </tr> <tr> <td class="label">BMI</td> <td class="html-adjust">{$observations.nvgo_bmi}</td> </tr> <tr> <td class="label">Hand Preference</td> <td class="html-adjust">{$observations.nvgo_hand_preference}</td> </tr> <tr> <td class="label">ABO Group</td> <td class="html-adjust">{$observations.nvgo_abo_group}</td> </tr> <tr> <td class="label">Rhesus factor</td> <td class="html-adjust">{$observations.nvgo_rhesus_factor}</td> </tr> <tr> <td class="label">Probably consanguineous factor</td> <td class="html-adjust">{$observations.nvgo_probably_consanguineous}</td> </tr> <tr> <td class="label">Proband</td> <td class="html-adjust">{$observations.nvgo_proband}</td> </tr> <tr> <td class="label"> Family history (close family members with same or similar conditions)</td> <td class="html-adjust">{$observations.nvgo_family_history}</td> </tr> <tr> <td class="label">School value</td> <td class="html-adjust">{$observations.nvgo_school_id}</td> </tr> </tbody> </table> {literal} <script type="text/javascript"> let contactId = CRM.$('#deleteBtn').attr("entity_id"); CRM.$('#deleteBtn').click(function(){ deleteGenOb(contactId); }); </script> {/literal}