Welcome to mirror list, hosted at ThFree Co, Russian Federation.

datatable_actions.tpl « templates « CoreHome « plugins - github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 976555262d21190c48db5581b8ce4337d7cdb7f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<div class="dataTable" data-report="{$properties.uniqueId}" data-params="{$javascriptVariablesToSet|@json_encode|escape:'html'}">
    <div class="reportDocumentation">
        {if !empty($reportDocumentation)}<p>{$reportDocumentation}</p>{/if}
        {if isset($properties.metadata.archived_date)}<span class='helpDate'>{$properties.metadata.archived_date}</span>{/if}
    </div>
    <div class="dataTableActionsWrapper">
        {if isset($arrayDataTable.result) and $arrayDataTable.result == 'error'}
            {$arrayDataTable.message}
        {else}
            {if count($arrayDataTable) == 0}
                <div class="pk-emptyDataTable">{'CoreHome_ThereIsNoDataForThisReport'|translate}</div>
            {else}
                <table cellspacing="0" class="dataTable dataTableActions">
                    <thead>
                    <tr>
                        {foreach from=$dataTableColumns item=column name=head}
                            <th class="sortable {if $smarty.foreach.head.first}first{elseif $smarty.foreach.head.last}last{/if}" id="{$column}">
                                {if !empty($columnDocumentation[$column])}
                                    <div class="columnDocumentation">
                                        <div class="columnDocumentationTitle">
                                            {$columnTranslations[$column]|escape:'html'|replace:"&amp;nbsp;":"&nbsp;"}
                                        </div>
                                        {$columnDocumentation[$column]|escape:'html'}
                                    </div>
                                {/if}
                                <div id="thDIV">{$columnTranslations[$column]|escape:'html'}</div>
                            </th>
                        {/foreach}
                    </tr>
                    </thead>

                    <tbody>
                    {foreach from=$arrayDataTable item=row}
                        <tr {if $row.idsubdatatable}class="rowToProcess subActionsDataTable" id="{$row.idsubdatatable}"
                            {else}class="actionsDataTable rowToProcess"{/if}>
                            {foreach from=$dataTableColumns item=column}
                                <td>
                                    {include file="CoreHome/templates/datatable_cell.tpl"}
                                </td>
                            {/foreach}
                        </tr>
                    {/foreach}
                    </tbody>
                </table>
            {/if}

            {if $properties.show_footer}
                {include file="CoreHome/templates/datatable_footer.tpl"}
            {/if}
            {include file="CoreHome/templates/datatable_actions_js.tpl"}
        {/if}
    </div>
</div>