Changed to radio buttons on transaction category input
This commit is contained in:
parent
d674c5b59b
commit
ec1aef6627
1 changed files with 5 additions and 7 deletions
|
@ -27,13 +27,11 @@
|
|||
<div class="form-group row">
|
||||
<label class="col-md-3 form-control-label" for="text-input">Category</label>
|
||||
<div class="col-md-9">
|
||||
<div class="input-group">
|
||||
<select type="text" class="form-control" [(ngModel)]="categoryId" size="10">
|
||||
<option value="">Uncategorised</option>
|
||||
<option *ngFor="let category of categoryIdList, let i=index" [ngValue]="category" >
|
||||
<div class="radio" *ngFor="let category of categoryIdList, let i=index">
|
||||
<label>
|
||||
<input [value]="category" type="radio" name="radios" [(ngModel)]="categoryId">
|
||||
{{ categoryNameList[i] }}
|
||||
</option>
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
<span class="help-block"><strong>Optional:</strong> Choose the relevant Category for the purchase.</span>
|
||||
</div>
|
||||
|
|
Reference in a new issue