Skip to content

Commit

Permalink
feat(vouchers): link receipt w/ id column
Browse files Browse the repository at this point in the history
Most registries will now link their receipts from the id column of the
registry.  This commit updates the voucher registry to do exactly that.
  • Loading branch information
Jonathan Niles authored and jniles committed Apr 14, 2017
1 parent eb47684 commit a0eb2e1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/modules/vouchers/templates/action.cell.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="ui-grid-cell-contents text-action" uib-dropdown dropdown-append-to-body uib-dropdown-toggle>
<a href>
<div class="ui-grid-cell-contents text-action" uib-dropdown dropdown-append-to-body>
<a href uib-dropdown-toggle>
<span data-method="action" translate>FORM.BUTTONS.ACTIONS</span>
<span class="caret"></span>
</a>
Expand Down
1 change: 1 addition & 0 deletions client/src/modules/vouchers/voucher-registry.ctrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ function VoucherController(Vouchers, Notify, Filtering, uiGridGroupingConstants,
field : 'reference',
displayName : 'TABLE.COLUMNS.REFERENCE',
headerCellFilter : 'translate',
cellTemplate : 'partials/vouchers/templates/uuid.tmpl.html',
treeAggregationType : uiGridGroupingConstants.aggregation.COUNT,
sortingAlgorithm : Sorting.algorithms.sortByReference,
treeAggregationLabel : '',
Expand Down
5 changes: 5 additions & 0 deletions client/src/partials/vouchers/templates/uuid.tmpl.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<div class="ui-grid-cell-contents">
<a href ng-click="grid.appScope.showReceipt(row.entity.uuid)">
{{ row.entity.reference }}
</a>
</div>

0 comments on commit a0eb2e1

Please sign in to comment.