Fix invalid markup on extension page - remove dots from ids & classes
authorColeman Watts <coleman@civicrm.org>
Sat, 29 Sep 2018 19:29:30 +0000 (15:29 -0400)
committerColeman Watts <coleman@civicrm.org>
Sun, 30 Sep 2018 10:19:16 +0000 (06:19 -0400)
templates/CRM/Admin/Page/Extensions/AddNew.tpl
templates/CRM/Admin/Page/Extensions/Main.tpl

index b908533057f1bbead8cba14bf4f41d577b8b464c..3e025ac6a39f3fee5be02985dac82542566e15c9 100644 (file)
@@ -20,7 +20,7 @@ Depends: CRM/common/enableDisableApi.tpl and CRM/common/jsortable.tpl
         {if $localExtensionRows[$extKey]}
           {continue}
         {/if}
-        <tr id="addnew-row_{$row.id}" class="crm-extensions crm-extensions_{$row.id}">
+        <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}</strong><br/>({$row.key})
           </td>
@@ -28,7 +28,7 @@ Depends: CRM/common/enableDisableApi.tpl and CRM/common/jsortable.tpl
           <td class="crm-extensions-description">{$row.type|capitalize}</td>
           <td>{$row.action|replace:'xx':$row.id}</td>
         </tr>
-        <tr class="hiddenElement" id="crm-extensions-details-addnew-{$row.id}">
+        <tr class="hiddenElement" id="crm-extensions-details-addnew-{$row.file}">
             <td>
                 {include file="CRM/Admin/Page/ExtensionDetails.tpl" extension=$row}
             </td>
index 34d38092bc84b12d5d71b79d023c2c3025838cce..e23977a984ecee21407fb4235e106a3c246d1482 100644 (file)
@@ -19,7 +19,7 @@ Depends: CRM/common/enableDisableApi.tpl and CRM/common/jsortable.tpl
       </thead>
       <tbody>
         {foreach from=$localExtensionRows key=extKey item=row}
-        <tr id="extension-{$row.id}" class="crm-entity crm-extension_{$row.id}{if $row.status eq 'disabled'} disabled{/if}{if $row.status eq 'installed-missing' or $row.status eq 'disabled-missing'} extension-missing{/if}{if $row.upgradable} extension-upgradable{elseif $row.status eq 'installed'} extension-installed{/if}">
+        <tr id="extension-{$row.file}" class="crm-entity crm-extension-{$row.file}{if $row.status eq 'disabled'} disabled{/if}{if $row.status eq 'installed-missing' or $row.status eq 'disabled-missing'} extension-missing{/if}{if $row.upgradable} extension-upgradable{elseif $row.status eq 'installed'} extension-installed{/if}">
           <td class="crm-extensions-label">
               <a class="collapsed" href="#"></a>&nbsp;<strong>{$row.label}</strong><br/>({$row.key})
               {if $extAddNewEnabled && $remoteExtensionRows[$extKey] && $remoteExtensionRows[$extKey].is_upgradeable}
@@ -32,7 +32,7 @@ Depends: CRM/common/enableDisableApi.tpl and CRM/common/jsortable.tpl
           <td class="crm-extensions-description">{$row.type|capitalize}</td>
           <td>{$row.action|replace:'xx':$row.id}</td>
         </tr>
-        <tr class="hiddenElement" id="crm-extensions-details-{$row.id}">
+        <tr class="hiddenElement" id="crm-extensions-details-{$row.file}">
             <td>
                 {include file="CRM/Admin/Page/ExtensionDetails.tpl" extension=$row localExtensionRows=$localExtensionRows remoteExtensionRows=$remoteExtensionRows}
             </td>