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

Commit

Permalink
add rank-select component to inventory item form
Browse files Browse the repository at this point in the history
  • Loading branch information
turboMaCk committed Dec 6, 2015
1 parent fab7e40 commit bf5f068
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/templates/inventory-basic.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@
{{input class="form-control test-item-id" value=model.friendlyId type="text" disabled=true }}
</div>
{{/unless}}
{{em-input property="name" label="Name" class="required col-sm-8 test-inv-name"}}
{{em-input property="name" label="Name" class="required col-sm-6 test-inv-name"}}
{{inventory/rank-select property="rank"}}
{{#unless model.isNew}}
<div class="form-group col-sm-2">
<label>Quantity</label>
<p class="form-control-static">{{model.quantity}}</p>
</div>
{{/unless}}

</div>

{{em-text label="Description" property="description" rows=1 }}
<div class="row">
{{em-select label="Type" property="inventoryType"
Expand Down
1 change: 1 addition & 0 deletions tests/acceptance/inventory-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ test('Adding a new inventory item', (assert) => {
assert.equal(currentURL(), '/inventory/edit/new');
});
fillIn('.test-inv-name input', 'Biogesic');
select('.test-inv-rank', 'B');
fillIn('textarea', 'Biogesic nga medisina');
select('.test-inv-type', 'Medication');
fillIn('.test-inv-cross input', '2600');
Expand Down

0 comments on commit bf5f068

Please sign in to comment.