Skip to content

Commit

Permalink
Wip
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikNoga committed May 10, 2024
1 parent eda0473 commit 1f34ec4
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 28 deletions.
3 changes: 2 additions & 1 deletion src/order-view/messages_en.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"orderView.view": "View details"
"orderView.view": "View details",
"orderView.isRequisitionless": "Requisitionless"
}
1 change: 1 addition & 0 deletions src/order-view/order-view.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@
{
header: 'orderView.lastUpdated',
propertyPath: 'lastUpdatedDate',
sortable: false,
template: function(item) {
return item.lastUpdatedDate ?
$filter('openlmisDate')(item.lastUpdatedDate) : '';
Expand Down
51 changes: 24 additions & 27 deletions src/order-view/order-view.html
Original file line number Diff line number Diff line change
@@ -1,32 +1,29 @@
<h2>{{'orderView.viewOrders' | message}}</h2>
<form class="sidebar" ng-submit="vm.loadOrders()">
<label for="supplyingFacility">{{'orderView.supplyingFacility' | message}}</label>
<select id="supplyingFacility"
ng-model="vm.supplyingFacility"
ng-options="facility.name for facility in vm.supplyingFacilities"
required></select>
<input type="submit" value="{{'orderView.search' | message}}" />
<label for="supplyingFacility">{{'orderView.supplyingFacility' | message}}</label>
<select id="supplyingFacility" ng-model="vm.supplyingFacility"
ng-options="facility.name for facility in vm.supplyingFacilities" required></select>
<input type="submit" value="{{'orderView.search' | message}}" />
</form>
<section class="openlmis-table-container order-view">
<form ng-submit="vm.loadOrders()" >
<label for="requestingFacility">{{'orderView.requestingFacility' | message}}</label>
<select id="requestingFacility"
ng-model="vm.requestingFacility"
ng-options="facility.name for facility in vm.requestingFacilities"></select>
<label>{{'orderView.program' | message}}</label>
<select id="program"
ng-model="vm.program"
ng-options="program.name for program in vm.programs"></select>
<label>{{'orderView.status' | message}}</label>
<select id="status"
ng-model="vm.status"
ng-options="status as status.name for status in vm.orderStatuses track by status.value"></select>
<label for=periodStartDate>{{'orderView.periodStart' | message}}</label>
<input id="periodStartDate" type="date" ng-model="vm.periodStartDate" max-date="vm.periodEndDate"/>
<label for=periodEndDate>{{'orderView.periodEnd' | message}}</label>
<input id="periodEndDate" type="date" ng-model="vm.periodEndDate" min-date="vm.periodStartDate"/>
<input type="submit" class="btn btn-primary" value="{{'orderView.search' | message}}"/>
</form>
<openlmis-table table-config="vm.tableConfig"></openlmis-table>
<openlmis-pagination/>
<form ng-submit="vm.loadOrders()">
<label for="requestingFacility">{{'orderView.requestingFacility' | message}}</label>
<select id="requestingFacility" ng-model="vm.requestingFacility"
ng-options="facility.name for facility in vm.requestingFacilities"></select>
<label>{{'orderView.program' | message}}</label>
<select id="program" ng-model="vm.program"
ng-options="program.name for program in vm.programs"></select>
<label>{{'orderView.status' | message}}</label>
<select id="status" ng-model="vm.status"
ng-options="status as status.name for status in vm.orderStatuses track by status.value"></select>
<label for=periodStartDate>{{'orderView.periodStart' | message}}</label>
<input id="periodStartDate" type="date" ng-model="vm.periodStartDate" max-date="vm.periodEndDate" />
<label for=periodEndDate>{{'orderView.periodEnd' | message}}</label>
<input id="periodEndDate" type="date" ng-model="vm.periodEndDate" min-date="vm.periodStartDate" />
<label for="">{{:: 'orderView.isRequisitionless' | message}}</label>
<input type="checkbox" id="isRequisitionless">
<input type="submit" class="btn btn-primary" value="{{'orderView.search' | message}}" />
</form>
<openlmis-table table-config="vm.tableConfig"></openlmis-table>
<openlmis-pagination />
</section>

0 comments on commit 1f34ec4

Please sign in to comment.