Changed to radio buttons on transaction category input

This commit is contained in:
piratefinn 2018-01-25 11:18:13 +00:00
parent 4d2ca8be74
commit d1d47785e5

View file

@ -27,13 +27,11 @@
<div class="form-group row"> <div class="form-group row">
<label class="col-md-3 form-control-label" for="text-input">Category</label> <label class="col-md-3 form-control-label" for="text-input">Category</label>
<div class="col-md-9"> <div class="col-md-9">
<div class="input-group"> <div class="radio" *ngFor="let category of categoryIdList, let i=index">
<select type="text" class="form-control" [(ngModel)]="categoryId" size="10"> <label>
<option value="">Uncategorised</option> <input [value]="category" type="radio" name="radios" [(ngModel)]="categoryId">
<option *ngFor="let category of categoryIdList, let i=index" [ngValue]="category" > {{ categoryNameList[i] }}
{{ categoryNameList[i] }} </label>
</option>
</select>
</div> </div>
<span class="help-block"><strong>Optional:</strong> Choose the relevant Category for the purchase.</span> <span class="help-block"><strong>Optional:</strong> Choose the relevant Category for the purchase.</span>
</div> </div>