Commit | Line | Data |
---|---|---|
66cae705 | 1 | {* |
6a488035 TO |
2 | Display a table of remotely-available extensions |
3 | ||
4d17a233 | 4 | Depends: 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} | |
d7494df0 | 20 | {if array_key_exists($extKey, $localExtensionRows)} |
6a488035 TO |
21 | {continue} |
22 | {/if} | |
bf1d7ef9 | 23 | <tr id="addnew-row_{$row.file}" class="crm-extensions crm-extensions_{$row.file}"> |
6a488035 | 24 | <td class="crm-extensions-label"> |
11ba145f | 25 | <a class="collapsed" href="#"></a> <strong>{$row.label|escape}</strong><br/>{$row.description|escape} |
6a488035 | 26 | </td> |
a22f6d00 | 27 | <td class="crm-extensions-version">{$row.version|escape}</td> |
6a488035 TO |
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} |