Files
upstream-mirror 7cc7e6b4f3
Some checks failed
Test / Test on PHP 8.3 (push) Failing after 5s
Test / Test on PHP 8.4 (push) Failing after 4s
Test / Test on PHP 8.5 (push) Failing after 3s
TypeScript static analysis / TypeScript check (push) Failing after 14s
Test Integration on MySQL / Test on PHP 8.3 (push) Failing after 1s
Test Integration on MySQL / Test on PHP 8.5 (push) Failing after 1s
Test Integration on PostgreSQL / Test on PHP 8.4 fix (push) Failing after 1s
Test Integration on PostgreSQL / Test on PHP 8.4 master (push) Failing after 1s
snapshot of https://github.com/espocrm/espocrm.git (master, 2026-09-18; blobs > 131072B omitted)
2026-09-18 04:19:15 +05:00

62 lines
2.7 KiB
Smarty

<div
id="dashlet-{{id}}"
class="panel panel-default headered dashlet{{#if isDoubleHeight}} double-height{{/if}}"
data-name="{{name}}"
data-id="{{id}}"
>
<div class="panel-heading">
<div class="btn-group pull-right">
{{#each buttonList}}
<button
type="button"
class="btn btn-{{#if ../style}}{{../style}}{{else}}default{{/if}} dashlet-action btn-sm action{{#if hidden}} hidden{{/if}}"
data-action="{{name}}"
data-name="{{name}}"
title="{{#if title}}{{translate title}}{{/if}}"
>{{#if html}}{{{html}}}{{else}}{{#if text}}{{text}}{{else}}{{translate label}}{{/if}}{{/if}}</button>
{{/each}}
<button
class="dropdown-toggle btn btn-{{#if ../style}}{{../style}}{{else}}default{{/if}} btn-sm menu-button"
data-toggle="dropdown"
><span class="fas fa-ellipsis-h"></span></button>
<ul class="dropdown-menu dropdown-menu-with-icons" role="menu">
{{#each actionList}}
{{#if this}}
<li>
<a
data-action="{{name}}"
data-name="{{name}}"
class="action dashlet-action"
{{#if url}}href="{{url}}"{{else}}role="button"{{/if}}
tabindex="0"
{{#each data}} data-{{hyphen @key}}="{{./this}}"{{/each}}
>
{{~#if iconHtml}}{{{iconHtml}}}
{{~else~}}
{{~#if iconClass~}}
<span class="{{iconClass}} item-icon"></span>
{{~/if~}}
{{~/if~}}
<span class="item-text">{{#if html}}{{{html}}}{{else}}{{#if text}}{{text}}{{else}}{{translate label}}{{/if}}{{/if}}</span>
</a>
</li>
{{else}}
<li class="divider"></li>
{{/if}}
{{/each}}
</ul>
</div>
<h4 class="panel-title">
<span
data-action="refresh"
class="action"
title="{{translate 'Refresh'}}"
>
{{~#if color}}<span class="color-icon fas fa-square" style="color: {{color}}"></span><span>&nbsp;</span>{{/if~}}
{{~#if title}}{{title}}{{else}}&nbsp;{{/if~}}
</span>
</h4>
</div>
<div class="dashlet-body panel-body{{#if noPadding}} no-padding{{/if}}">{{{body}}}</div>
</div>