added viewing of purchase being essential in transaction read

This commit is contained in:
Finn 2018-03-01 17:20:50 +00:00
parent 396cb3c8f6
commit af6d198c8f

View file

@ -34,6 +34,13 @@
<label for="value">Value</label>
<input id="value" type="text" class="form-control" placeholder="Value" name="value" value="<%= sprintf '£%.2f', $transaction->value / 100000 %>" disabled>
</div>
<div class="form-group">
<label for="value">Essential Purchase</label>
<select id="lis" class="form-control" name="essential" disabled>
<option value="0"<%= !$transaction->essential ? '' : ' selected' %>>Non Essential</option>
<option value="1"<%= $transaction->essential ? ' selected' : '' %>>Essential</option>
</select>
</div>
<div class="form-group">
<label for="text">Category</label>
<input id="category" type="text" class="form-control" placeholder="Uncategorised" name="category" value="<%= defined $transaction->category ? $transaction->category->category->name : 'Uncategorised' %>" disabled>