Skip to content

Commit

Permalink
Tweaks to manual reconcilation page (NOJIRA)
Browse files Browse the repository at this point in the history
  • Loading branch information
Benn Oshrin committed Apr 24, 2021
1 parent b0ac1f4 commit 0076605
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions app/src/Template/Matchgrids/reconcile.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@
<td class="empty"></td>
<?php foreach($vv_candidates as $c): ?>
<th class="reference-ids">
<?= (!empty($c['referenceid']) ? '<a href="#" title="' . $c['referenceid'] . '">' . substr($c['referenceid'],0,7) . '</a>...' : __('match.op.new')); ?>
<?=
(!empty($c['referenceid'])
? '<a href="#" title="' . $c['referenceid'] . '">' . substr($c['referenceid'],0,10) . '</a>' . (strlen($c['referenceid']) > 10 ? '...' : '')
: __('match.op.new')); ?>
</th>
<?php endforeach; ?>
</tr>
Expand All @@ -90,16 +93,16 @@
<?php foreach($vv_candidates as $c): ?>
<th>
<?=
$this->Form->postLink(__('match.op.reconcile.assign'),
$this->Form->postLink(__('match.op.reconcile.' . (!empty($c['referenceid']) ? 'assign' : 'generate')),
['action' => 'reconcile',
$vv_cur_mg->id],
['data' => [
'rowid' => $vv_request['id'],
// Default value needs to be the literal string "new" and not a localized text string
'referenceid' => (!empty($c['referenceid']) ? $c['referenceid'] : 'new')
],
'confirm' => __('match.op.assign.confirm'),
'class' => 'linkbutton']);
'confirm' => __('match.op.assign.confirm'),
'class' => 'linkbutton']);
?>
</th>
<?php endforeach; ?>
Expand Down

0 comments on commit 0076605

Please sign in to comment.