Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Button Colour Fixed #983

Merged
merged 3 commits into from
Apr 25, 2017
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/admin/custom-forms/edit/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</div>
<h4>
{{t 'admin.customForms.titles.fields'}}
<button class="btn btn-default align-right" {{action 'addField'}}>
<button class="btn btn-primary align-right" {{action 'addField'}}>
{{t 'admin.customForms.buttons.addField'}}
</button>
</h4>
Expand Down Expand Up @@ -56,7 +56,7 @@
{{t 'admin.customForms.buttons.preview'}}
</button>
{{#if preview}}
<div class="panel panel-primary form-preview">
<div class="panel panel-default form-preview">
<div class="panel-heading">
<h3 class="panel-title">{{formName}}</h3>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/admin/loaddb/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="panel-body">
{{#em-form model=model submitButton=false }}
{{file-upload label=(t 'labels.fileToLoad') property="importFileName" selectedFile=importFile }}
<button class="btn btn-default" {{action 'loadFile'}}>{{t 'buttons.loadFile'}}</button>
<button class="btn btn-primary" {{action 'loadFile'}}>{{t 'buttons.loadFile'}}</button>
{{/em-form}}
{{#if syncResults}}
<h4>{{t 'labels.fileLoadSuccessful'}}</h4>
Expand Down
4 changes: 2 additions & 2 deletions app/admin/lookup/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@
<div class="row">
<div class="col-sm-4">
{{em-checkbox label=(t 'labels.userCanAddNewValue') property="userCanAdd"}}
<button class="btn btn-default" {{action 'updateList'}}>{{t 'buttons.update'}}</button>
<button class="btn btn-primary" {{action 'updateList'}}>{{t 'buttons.update'}}</button>
</div>
{{#if showOrganizeByType}}
{{em-checkbox label="Organize Pricing By Type" property="organizeByType" class="col-sm-4"}}
{{/if}}
<div class="col-sm-4">
{{file-upload label=(t 'labels.importFile') property="importFileName" selectedFile=importFile }}
<button class="btn btn-default" {{action 'importList'}}>{{t 'buttons.import'}}</button>
<button class="btn btn-primary" {{action 'importList'}}>{{t 'buttons.import'}}</button>
</div>
</div>
{{/em-form}}
Expand Down
2 changes: 1 addition & 1 deletion app/appointments/calendar/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
{{/em-form}}
<div class="panel-footer">
<button class="btn btn-default warning" {{action 'clearFilteringCriteria'}}>{{t 'buttons.clear'}}</button>
<button class="btn btn-default" {{action 'filter'}}>{{t 'buttons.filter'}}</button>
<button class="btn btn-primary" {{action 'filter'}}>{{t 'buttons.filter'}}</button>
</div>
{{calendar-control events=model.events
defaultDate=calendarDate
Expand Down
2 changes: 1 addition & 1 deletion app/appointments/item/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{{/if}}
{{#if canAddVisit}}
{{#if (eq appointment.displayStatus 'Scheduled')}}
<button class="btn btn-default" {{action 'checkIn' appointment bubbles=false }}>
<button class="btn btn-primary" {{action 'checkIn' appointment bubbles=false }}>
<span class="glyphicon glyphicon-log-in"></span>
{{t 'visits.buttons.checkIn'}}
</button>
Expand Down
2 changes: 1 addition & 1 deletion app/appointments/search/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{{/em-form}}
</div>
<div class="panel-footer">
<button class="btn btn-default" {{action 'search'}}>{{t 'buttons.search'}}</button>
<button class="btn btn-primary" {{action 'search'}}>{{t 'buttons.search'}}</button>
</div>
</div>
<table class="table">
Expand Down
2 changes: 1 addition & 1 deletion app/appointments/theater/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
{{/em-form}}
<div class="panel-footer">
<button class="btn btn-default warning" {{action 'clearFilteringCriteria'}}>{{t 'buttons.clear'}}</button>
<button class="btn btn-default" {{action 'filter'}}>{{t 'buttons.filter'}}</button>
<button class="btn btn-primary" {{action 'filter'}}>{{t 'buttons.filter'}}</button>
</div>
{{calendar-control events=model.events
defaultDate=calendarDate
Expand Down
2 changes: 1 addition & 1 deletion app/inventory/edit/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
{{#if canAdjustLocation}}
<td>
<button class="btn btn-primary neutral" {{action "showAdjustment" location}}>{{t 'inventory.labels.adjust'}}</button>
<button class="btn btn-primary neutral" {{action "showTransfer" location}}>{{t 'inventory.labels.transfer'}}</button>
<button class="btn btn-primary btn-extra" {{action "showTransfer" location}}>{{t 'inventory.labels.transfer'}}</button>
</td>
{{/if}}
</tr>
Expand Down
2 changes: 1 addition & 1 deletion app/inventory/listing/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<td>{{inventory.crossReference}}</td>
<td>
{{#if canAddPurchase}}
<button class="btn btn-default" {{action 'showAddPurchase' inventory bubbles=false }}>{{t 'buttons.add'}}</button>
<button class="btn btn-primary" {{action 'showAddPurchase' inventory bubbles=false }}>{{t 'buttons.add'}}</button>
{{/if}}
{{#if canAddItem}}
<button class="btn btn-default neutral" {{action 'editItem' inventory bubbles=false }}>{{t 'labels.edit'}}</button>
Expand Down
43 changes: 43 additions & 0 deletions app/inventory/purchase/template.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{{#item-listing paginationProps=paginationProps }}
{{#if hasRecords}}
<table class="table">
<tr class="table-header">
{{#sortable-column sortBy='friendlyId' sortDesc=sortDesc sortKey=sortKey }}{{t 'labels.id'}}{{/sortable-column}}
{{#sortable-column sortBy='name' sortDesc=sortDesc sortKey=sortKey }}{{t 'labels.name'}}{{/sortable-column}}
{{#sortable-column sortBy='inventoryType' sortDesc=sortDesc sortKey=sortKey }}{{t 'labels.type'}}{{/sortable-column}}
{{#sortable-column sortBy='quantity' sortDesc=sortDesc sortKey=sortKey }}{{t 'labels.quantity'}}{{/sortable-column}}
<th>{{t 'inventory.labels.location'}}</th>
{{#sortable-column sortBy='crossReference' sortDesc=sortDesc sortKey=sortKey }}{{t 'inventory.labels.xref'}}{{/sortable-column}}
<th>{{t 'labels.actions'}}</th>
</tr>
{{#each model as |inventory|}}
{{#unless inventory.isNew}}
<tr {{action 'editItem' inventory}} class="clickable">
<td>{{inventory.friendlyId}}</td>
<td>{{inventory.name}}</td>
<td>{{inventory.inventoryType}}</td>
<td>{{inventory.quantity}} {{inventory.distributionUnit}}</td>
<td>{{inventory.displayLocations}}</td>
<td>{{inventory.crossReference}}</td>
<td>
{{#if canAddPurchase}}
<button class="btn btn-primary" {{action 'showAddPurchase' inventory bubbles=false }}>{{t 'buttons.add'}}</button>
{{/if}}
{{#if canAddItem}}
<button class="btn btn-default neutral" {{action 'editItem' inventory bubbles=false }}>{{t 'labels.edit'}}</button>
{{/if}}
{{#if canDeleteItem}}
<button class="btn btn-default warning" {{action 'deleteItem' inventory bubbles=false }}><span class="octicon octicon-x"></span> {{t 'buttons.delete'}}</button>
{{/if}}
{{#link-to 'inventory.barcode' inventory class="btn btn-extra" bubbles=false }}{{t 'buttons.barcode'}}{{/link-to}}
</td>
</tr>
{{/unless}}
{{/each}}
</table>
{{else}}
<div class="alert alert-info">
<p>{{t 'messages.noItemsFound'}} {{#if canAddItem}} <a href="#" {{action 'newItem'}}>{{t 'messages.createNewRecord'}}</a>{{/if}}</p>
</div>
{{/if}}
{{/item-listing}}
4 changes: 2 additions & 2 deletions app/inventory/reports/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
{{/em-form}}
</div>
<div class="panel-footer">
<button class="btn btn-default" {{action 'generateReport'}}>{{t 'inventory.reports.generate'}}</button>
<button class="btn btn-primary" {{action 'generateReport'}}>{{t 'inventory.reports.generate'}}</button>
</div>
</div>
{{#if showReportResults}}
Expand All @@ -100,7 +100,7 @@
</table>
</div>
<div class="panel-footer">
<a href={{csvExport}} target="_blank" download="{{reportTitle}}.csv" class="btn btn-default">{{t 'inventory.reports.export'}}</a>
<a href={{csvExport}} target="_blank" download="{{reportTitle}}.csv" class="btn btn-primary">{{t 'inventory.reports.export'}}</a>

</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/invoices/index/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
{{#unless invoice.paidFlag}}
{{#if showActions}}
{{#if canAddPayment}}
<button class="btn btn-default neutral" {{action 'showAddPayment' invoice bubbles=false }}>
<button class="btn btn-primary btn-extra" {{action 'showAddPayment' invoice bubbles=false }}>
<span class="octicon octicon-plus"></span> {{t 'admin.roles.capability.addPayment'}}
</button>
{{/if}}
Expand Down
2 changes: 1 addition & 1 deletion app/medication/index/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<td>{{medicationRequest.status}}</td>
{{#if showActions}}
<td>
<button class="btn btn-default" {{action 'editItem' medicationRequest bubbles=false }}>{{t 'labels.fulfill'}}</button>
<button class="btn btn-primary" {{action 'editItem' medicationRequest bubbles=false }}>{{t 'labels.fulfill'}}</button>
</td>
{{/if}}
</tr>
Expand Down
6 changes: 3 additions & 3 deletions app/patients/index/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@
{{/if}}
{{#if patient.admitted}}
{{#if canDischargePatient}}
<button class="btn btn-default info" {{action 'dischargePatient' patient bubbles=false }}><span class="glyphicon glyphicon-log-out"></span> {{t 'visits.buttons.discharge'}}</button>
<button class="btn btn-primary info" {{action 'dischargePatient' patient bubbles=false }}><span class="glyphicon glyphicon-log-out"></span> {{t 'visits.buttons.discharge'}}</button>
{{/if}}
{{else}}
{{#if patient.checkedIn}}
{{#if canDischargePatient}}
<button class="btn btn-default info" {{action 'checkoutPatient' patient bubbles=false }}><span class="glyphicon glyphicon-log-out"></span> {{t 'visits.buttons.checkOut'}}</button>
<button class="btn btn-primary info" {{action 'checkoutPatient' patient bubbles=false }}><span class="glyphicon glyphicon-log-out"></span> {{t 'visits.buttons.checkOut'}}</button>
{{/if}}
{{else}}
{{#if canAdmitPatient}}
<button class="btn btn-default success admit" {{action 'checkInPatient' patient bubbles=false }}><span class="glyphicon glyphicon-log-in"></span> {{t 'visits.buttons.checkIn'}}</button>
<button class="btn btn-primary success admit" {{action 'checkInPatient' patient bubbles=false }}><span class="glyphicon glyphicon-log-in"></span> {{t 'visits.buttons.checkIn'}}</button>
{{/if}}
{{/if}}
{{/if}}
Expand Down
2 changes: 1 addition & 1 deletion app/patients/outpatient/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<div class="form-group col-sm-3">
<label class="control-label"></label>
<div>
<button class="btn btn-default" {{action 'search'}}>{{t 'buttons.search'}}</button>
<button class="btn btn-primary" {{action 'search'}}>{{t 'buttons.search'}}</button>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/patients/reports/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
{{/em-form}}
</div>
<div class="panel-footer">
<button class="btn btn-default" {{action 'generateReport'}}>{{t 'inventory.reports.generate'}}</button>
<button class="btn btn-primary" {{action 'generateReport'}}>{{t 'inventory.reports.generate'}}</button>
</div>
</div>
{{#if showReportResults}}
Expand Down
10 changes: 8 additions & 2 deletions app/styles/components/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,17 @@
color: $gray;

&:hover,
&:focus { opacity: .8; }
&:focus {
opacity: .8;
}
}

&.admit {
width: 103px;
width: 110px;
}

&.info {
width: 110px;
}

.octicon {
Expand Down
2 changes: 1 addition & 1 deletion app/users/index/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
{{#if showActions}}
<td>
{{#if canAdd}}
<button class="btn btn-default" {{action 'editItem' user bubbles=false }}>{{t 'labels.edit'}}</button>
<button class="btn btn-primary" {{action 'editItem' user bubbles=false }}>{{t 'labels.edit'}}</button>
{{/if}}
{{#if canDelete}}
<button class="btn btn-default warning" {{action 'deleteItem' user bubbles=false }}><span class="octicon octicon-x"></span>{{t 'labels.delete'}}</button>
Expand Down