Adds details/summary to 'add new' extensions page
authorNicol <vingle@users.noreply.github.com>
Thu, 7 Dec 2023 13:52:57 +0000 (13:52 +0000)
committerGitHub <noreply@github.com>
Thu, 7 Dec 2023 13:52:57 +0000 (13:52 +0000)
templates/CRM/Admin/Page/Extensions/AddNew.tpl

index 396b72226df40013d1fecccd60bb4bbf1dc7970f..1543d9c276becb131350e0f5512a01ce3a9fc6bc 100644 (file)
@@ -22,18 +22,16 @@ Depends: CRM/common/enableDisableApi.tpl and CRM/common/jsortable.tpl
         {/if}
         <tr id="addnew-row_{$row.file}" class="crm-extensions crm-extensions_{$row.file}">
           <td class="crm-extensions-label">
-            <a class="collapsed" href="#"></a>&nbsp;<strong>{$row.label|escape}</strong><br/>{$row.description|escape}
+            <details class="crm-accordion-light">
+              <summary><strong>{$row.label|escape}</strong>
+              <br/>{$row.description|escape}</summary>
+                {include file="CRM/Admin/Page/ExtensionDetails.tpl" extension=$row}
+            </details>
           </td>
           <td class="crm-extensions-version">{$row.version|escape}</td>
           <td class="crm-extensions-description">{$row.type|capitalize}</td>
           <td>{$row.action|smarty:nodefaults|replace:'xx':$row.id}</td>
         </tr>
-        <tr class="hiddenElement" id="crm-extensions-details-addnew-{$row.file}">
-            <td>
-                {include file="CRM/Admin/Page/ExtensionDetails.tpl" extension=$row}
-            </td>
-            <td></td><td></td><td></td>
-        </tr>
         {/foreach}
       </tbody>
     </table>