Files
upstream-espocrm/client/res/templates/record/merge.tpl
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 2s
Test Integration on MySQL / Test on PHP 8.5 (push) Failing after 0s
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

73 lines
2.5 KiB
Smarty

<div class="merge">
<table class="table table-bordered">
<thead>
<tr>
<th style="width: 20%"></th>
{{#each dataList}}
<th style="vertical-align: middle; width: 5%">
<input
type="radio"
name="check-all"
value="{{id}}"
data-id="{{id}}"
class="pull-right form-radio"
>
</th>
<th style="width: {{../width}}%">
<a href="#{{../scope}}/view/{{id}}" target="_BLANK" class="text-large">{{name}}</a>
</th>
{{/each}}
</tr>
</thead>
<tbody>
{{#if hasCreatedAt}}
<tr>
<td style="text-align: right">
{{translate 'createdAt' scope=scope category='fields'}}
</td>
{{#each dataList}}
<td></td>
<td data-id="{{id}}">
<div class="field" data-name="createdAt">
{{{var createdAtViewName ../this}}}
</div>
</td>
{{/each}}
</tr>
{{/if}}
{{#each rows}}
<tr>
<td style="text-align: right">
{{translate name scope=../scope category='fields'}}
</td>
{{#each columns}}
<td>
{{#unless isReadOnly}}
<input
type="radio"
name="{{../name}}"
value="{{id}}"
data-id="{{id}}"
class="pull-right field-radio form-radio"
>
{{/unless}}
</td>
<td data-id="{{id}}">
<div class="field" data-name="{{../name}}">
{{{var fieldVariable ../../this}}}
</div>
</td>
{{/each}}
</tr>
{{/each}}
</tbody>
</table>
<div class="button-container">
<div class="btn-group">
<button class="btn btn-danger btn-xs-wide" data-action="merge">{{translate 'Merge'}}</button>
<button class="btn btn-default btn-xs-wide" data-action="cancel">{{translate 'Cancel'}}</button>
</div>
</div>
</div>