-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(dropdowns): make dropdown links stand out
This commit makes sure that all dropdown links on the registries are colored as hrefs to let users know they are able to be clicked.
- Loading branch information
Showing
6 changed files
with
76 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 25 additions & 22 deletions
47
client/src/partials/cash/payments/templates/action.cell.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,27 @@ | ||
<div class="ui-grid-cell-contents"> | ||
<span uib-dropdown dropdown-append-to-body> | ||
<div class="ui-grid-cell-contents text-action" uib-dropdown dropdown-append-to-body uib-dropdown-toggle> | ||
<a href> | ||
<span data-method="action" translate>FORM.BUTTONS.ACTIONS</span> | ||
<span class="caret"></span> | ||
</a> | ||
|
||
<span uib-dropdown-toggle class="text-action"> | ||
<span data-method="action" translate>FORM.BUTTONS.ACTIONS</span> | ||
<span class="caret"></span> | ||
</span> | ||
<ul data-action="{{ rowRenderIndex}}" class="dropdown-menu-right" uib-dropdown-menu> | ||
<li><a data-method="receipt" ng-click="grid.appScope.openReceiptModal(row.entity.uuid)" data-link-receipt="{{ ::row.entity.uuid }}" href><i class="fa fa-file-pdf-o"></i> <span translate>TABLE.COLUMNS.RECEIPT</span></a></li> | ||
<li> | ||
<a href id="{{row.entity.reference}}" | ||
data-method="cancel" | ||
ng-click="grid.appScope.cancelCash(row.entity)" | ||
ng-hide="{{row.entity.type_id === grid.appScope.bhConstants.transactionType.CREDIT_NOTE}}"> | ||
<span class="text-danger"><i class="fa fa-clone"></i> <span translate>TABLE.COLUMNS.CANCEL_CASH</span></span> | ||
</a> | ||
<a ng-show="{{row.entity.type_id === grid.appScope.bhConstants.transactionType.CREDIT_NOTE}}" | ||
class="text-danger text-action" href> | ||
<span class="text-danger"><i class="fa fa-ban"></i> <span translate>FORM.LABELS.CANCELED</span></span> | ||
</a> | ||
</li> | ||
</ul> | ||
</span> | ||
<ul data-action="{{ rowRenderIndex}}" class="dropdown-menu-right" uib-dropdown-menu> | ||
<li> | ||
<a data-method="receipt" ng-click="grid.appScope.openReceiptModal(row.entity.uuid)" data-link-receipt="{{ ::row.entity.uuid }}" href> | ||
<i class="fa fa-file-pdf-o"></i> <span translate>TABLE.COLUMNS.RECEIPT</span> | ||
</a> | ||
</li> | ||
<li> | ||
<a href | ||
id="{{row.entity.reference}}" | ||
data-method="cancel" | ||
ng-click="grid.appScope.cancelCash(row.entity)" | ||
ng-hide="row.entity._hasCreditNote"> | ||
<span class="text-danger"><i class="fa fa-clone"></i> <span translate>TABLE.COLUMNS.CANCEL_CASH</span></span> | ||
</a> | ||
|
||
<a ng-show="row.entity._hasCreditNote" href> | ||
<span class="text-danger"><i class="fa fa-ban"></i> <span translate>FORM.LABELS.CANCELED</span></span> | ||
</a> | ||
</li> | ||
</ul> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,24 @@ | ||
<div class="ui-grid-cell-contents"> | ||
<span uib-dropdown dropdown-append-to-body> | ||
<div class="ui-grid-cell-contents text-action" uib-dropdown dropdown-append-to-body uib-dropdown-toggle> | ||
<a href> | ||
<span data-method="action" translate>FORM.BUTTONS.ACTIONS</span> | ||
<span class="caret"></span> | ||
</a> | ||
|
||
<span uib-dropdown-toggle class="text-action"> | ||
<span data-method="action" translate>FORM.BUTTONS.ACTIONS</span> | ||
<span class="caret"></span> | ||
</span> | ||
<ul data-action="{{ rowRenderIndex}}" class="dropdown-menu-right" uib-dropdown-menu> | ||
<li> | ||
<a data-method="record" ui-sref="patientRecord.details({patientID : row.entity.uuid})" href> | ||
<span class="fa fa-book"></span> <span translate>PATIENT_REGISTRY.RECORD</span> | ||
</a> | ||
</li> | ||
<li> | ||
<a data-method="edit" ui-sref="patientEdit({uuid : row.entity.uuid})" href> | ||
<span class="fa fa-edit"></span> <span translate>TABLE.COLUMNS.EDIT</span> | ||
</a> | ||
</li> | ||
<li> | ||
<a data-method="card" ng-click="grid.appScope.patientCard(row.entity.uuid)" href> | ||
<span class="fa fa-user"></span> <span translate>PATIENT_REGISTRY.CARD</span> | ||
</a> | ||
</li> | ||
</ul> | ||
</span> | ||
<ul data-action="{{ rowRenderIndex}}" class="dropdown-menu-right" uib-dropdown-menu> | ||
<li> | ||
<a data-method="record" ui-sref="patientRecord.details({patientID : row.entity.uuid})" href> | ||
<span class="fa fa-book"></span> <span translate>PATIENT_REGISTRY.RECORD</span> | ||
</a> | ||
</li> | ||
<li> | ||
<a data-method="edit" ui-sref="patientEdit({uuid : row.entity.uuid})" href> | ||
<span class="fa fa-edit"></span> <span translate>TABLE.COLUMNS.EDIT</span> | ||
</a> | ||
</li> | ||
<li> | ||
<a data-method="card" ng-click="grid.appScope.patientCard(row.entity.uuid)" href> | ||
<span class="fa fa-user"></span> <span translate>PATIENT_REGISTRY.CARD</span> | ||
</a> | ||
</li> | ||
</ul> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
<div class="ui-grid-cell-contents"> | ||
<span uib-dropdown dropdown-append-to-body> | ||
<div class="ui-grid-cell-contents text-action" uib-dropdown dropdown-append-to-body uib-dropdown-toggle> | ||
<a href> | ||
<span data-method="action" translate>FORM.BUTTONS.ACTIONS</span> | ||
<span class="caret"></span> | ||
</a> | ||
|
||
<span uib-dropdown-toggle class="text-action"> | ||
<span data-method="action" translate>FORM.BUTTONS.ACTIONS</span> | ||
<span class="caret"></span> | ||
</span> | ||
<ul data-action="{{ rowRenderIndex}}" class="dropdown-menu-right" uib-dropdown-menu> | ||
<li><a data-method="edit" ng-click="grid.appScope.edit(row.entity)" href><i class="fa fa-edit"></i> <span translate>FORM.BUTTONS.EDIT</span></a></li> | ||
<li><a data-method="permission" ng-click="grid.appScope.editPermissions(row.entity)" href><i class="fa fa-key"></i> <span translate>FORM.BUTTONS.EDIT_PERMISSIONS</span></a></li> | ||
</ul> | ||
</span> | ||
<ul data-action="{{ rowRenderIndex}}" class="dropdown-menu-right" uib-dropdown-menu> | ||
<li><a data-method="edit" ng-click="grid.appScope.edit(row.entity)" href><i class="fa fa-edit"></i> <span translate>FORM.BUTTONS.EDIT</span></a></li> | ||
<li><a data-method="permission" ng-click="grid.appScope.editPermissions(row.entity)" href><i class="fa fa-key"></i> <span translate>FORM.BUTTONS.EDIT_PERMISSIONS</span></a></li> | ||
</ul> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,18 @@ | ||
<div class="ui-grid-cell-contents"> | ||
<span uib-dropdown dropdown-append-to-body> | ||
<div class="ui-grid-cell-contents text-action" uib-dropdown dropdown-append-to-body uib-dropdown-toggle> | ||
<a href> | ||
<span data-method="action" translate>FORM.BUTTONS.ACTIONS</span> | ||
<span class="caret"></span> | ||
</a> | ||
|
||
<span uib-dropdown-toggle class="text-action"> | ||
<span data-method="action" translate>FORM.BUTTONS.ACTIONS</span> | ||
<span class="caret"></span> | ||
</span> | ||
<ul data-action="{{ rowRenderIndex}}" class="dropdown-menu-right" uib-dropdown-menu> | ||
<li> | ||
<a href | ||
data-method="receipt" | ||
ng-if="row.entity.uuid" | ||
ng-click="grid.appScope.showReceipt(row.entity.uuid)" | ||
data-link-receipt="{{ ::row.entity.uuid }}"> | ||
<i class="fa fa-file-pdf-o"></i> <span translate>TABLE.COLUMNS.RECEIPT</span> | ||
</a> | ||
</li> | ||
</ul> | ||
</span> | ||
</div> | ||
<ul data-action="{{ rowRenderIndex}}" class="dropdown-menu-right" uib-dropdown-menu> | ||
<li> | ||
<a href | ||
data-method="receipt" | ||
ng-if="row.entity.uuid" | ||
ng-click="grid.appScope.showReceipt(row.entity.uuid)" | ||
data-link-receipt="{{ ::row.entity.uuid }}"> | ||
<i class="fa fa-file-pdf-o"></i> <span translate>TABLE.COLUMNS.RECEIPT</span> | ||
</a> | ||
</li> | ||
</ul> | ||
</div> |