Changed to radio buttons on transaction category input
This commit is contained in:
parent
4d2ca8be74
commit
d1d47785e5
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