Merge pull request #17981 from eileenmcnaughton/merge_form
[civicrm-core.git] / templates / CRM / Admin / Page / Extensions / AddNew.tpl
CommitLineData
66cae705 1{*
6a488035
TO
2Display a table of remotely-available extensions
3
4d17a233 4Depends: CRM/common/enableDisableApi.tpl and CRM/common/jsortable.tpl
6a488035
TO
5*}
6{if $remoteExtensionRows}
7 <div id="extensions-addnew">
8 {strip}
9 <table id="extensions-addnew-table" class="display">
10 <thead>
11 <tr>
12 <th>{ts}Extension name (key){/ts}</th>
13 <th>{ts}Version{/ts}</th>
14 <th>{ts}Type{/ts}</th>
15 <th></th>
16 </tr>
17 </thead>
18 <tbody>
19 {foreach from=$remoteExtensionRows key=extKey item=row}
20 {if $localExtensionRows[$extKey]}
21 {continue}
22 {/if}
bf1d7ef9 23 <tr id="addnew-row_{$row.file}" class="crm-extensions crm-extensions_{$row.file}">
6a488035
TO
24 <td class="crm-extensions-label">
25 <a class="collapsed" href="#"></a>&nbsp;<strong>{$row.label}</strong><br/>({$row.key})
26 </td>
27 <td class="crm-extensions-label">{$row.version} {if $row.upgradable}<br/>({$row.upgradeVersion}){/if}</td>
28 <td class="crm-extensions-description">{$row.type|capitalize}</td>
29 <td>{$row.action|replace:'xx':$row.id}</td>
30 </tr>
bf1d7ef9 31 <tr class="hiddenElement" id="crm-extensions-details-addnew-{$row.file}">
6a488035
TO
32 <td>
33 {include file="CRM/Admin/Page/ExtensionDetails.tpl" extension=$row}
34 </td>
35 <td></td><td></td><td></td>
36 </tr>
37 {/foreach}
38 </tbody>
39 </table>
40 {/strip}
41 </div>
42{else}
43 <div class="messages status no-popup">
34d6cec4 44 {icon icon="fa-info-circle"}{/icon}
6a488035
TO
45 {ts}There are no extensions to display. Please click "Refresh" to update information about available extensions.{/ts}
46 </div>
47{/if}