Skip to content

Commit

Permalink
Merge pull request #46 from OpenLMIS/OLMIS-6908
Browse files Browse the repository at this point in the history
OLMIS-6908: fix input onchange functionality
  • Loading branch information
saleksandra authored Oct 15, 2024
2 parents 20f22e9 + 7087553 commit 82da7b3
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ New functionality:
Bug fixes:
* [OLMIS-7749](https://openlmis.atlassian.net/browse/OLMIS-7749): Added note in popover on Supply Line page if there are not memeber facilities
* [OLMIS-7900](https://openlmis.atlassian.net/browse/OLMIS-7900): Updated breadcrumbs and added missing nav tag to New Requisition Group page
* [OLMIS-6908](https://openlmis.atlassian.net/browse/OLMIS-6908): Adding non-full supply product to the R&R

5.6.12 / 2024-04-19
==================
Expand Down
10 changes: 10 additions & 0 deletions src/select-products-modal/_select-products-modal.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.products-modal-input {
display: flex;
flex-wrap: nowrap;
align-items: center;
justify-content: space-between;
}

.products-modal-input > div.input-control {
width: 100%;
}
13 changes: 7 additions & 6 deletions src/select-products-modal/select-products-modal.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@ <h4>{{'selectProductsModal.addProducts' | message}}</h4>
<label for="search">
{{'selectProductsModal.searchProduct' | message}}
</label>
<input type="text" id="search" name="search" ng-model="vm.searchText"
ng-change="vm.search()"/>
<p class="note">{{'selectProductsModal.searchByCodeInfo' | message}}</p>
<div class='products-modal-input'>
<input type="text" id="search" name="search" ng-model="vm.searchText" style="margin-right: 20px"/>
<button class="primary" type="submit" ng-click="vm.search()">{{'requisitionInitiate.search' | message}}</button>
</div>
</fieldset>
<br/>
<div class="openlmis-table-container">
Expand Down Expand Up @@ -75,9 +76,9 @@ <h4>{{'selectProductsModal.addProducts' | message}}</h4>
</form>
</div>
<div class="modal-footer">
<button id="cancel" ng-click="vm.close()">{{'selectProductsModal.cancel' | message}}</button>
<button ng-if="vm.isUnpackKitState" class="primary" ng-click="vm.selectProducts()">{{'selectProductsModal.addProducts' | message}}</button>
<button ng-if="!vm.isUnpackKitState" class="primary" type="submit" form="productForm">{{'selectProductsModal.addProducts' | message}}</button>
<button id="cancel" ng-click="vm.close()">{{'selectProductsModal.cancel' | message}}</button>
<button ng-if="vm.isUnpackKitState" class="primary" ng-click="vm.selectProducts()">{{'selectProductsModal.addProducts' | message}}</button>
<button ng-if="!vm.isUnpackKitState" class="primary" type="submit" form="productForm">{{'selectProductsModal.addProducts' | message}}</button>
</div>
</div>
</div>
Expand Down

0 comments on commit 82da7b3

Please sign in to comment.