Rework transaction views
This commit is contained in:
parent
751c6e64f2
commit
3e3f667053
2 changed files with 34 additions and 16 deletions
|
@ -32,15 +32,15 @@
|
|||
</div>
|
||||
<div class="form-group">
|
||||
<label for="email">Value</label>
|
||||
<input id="value" type="text" class="form-control" placeholder="Value" name="value" value="<%= $transaction->value %>" disabled>
|
||||
<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="email">Submitted At</label>
|
||||
<input id="submitted_at" type="text" class="form-control" placeholder="Submitted At" name="submitted_at" value="<%= $transaction->submitted_at %>" disabled>
|
||||
<input id="submitted_at" type="text" class="form-control" placeholder="Submitted At" name="submitted_at" value="<%= format_human_datetime $transaction->submitted_at %>" disabled>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="email">Purchase Time</label>
|
||||
<input id="purchase_time" type="text" class="form-control" placeholder="Purchase Time" name="purchase_time" value="<%= $transaction->purchase_time %>" disabled>
|
||||
<input id="purchase_time" type="text" class="form-control" placeholder="Purchase Time" name="purchase_time" value="<%= format_human_datetime $transaction->purchase_time %>" disabled>
|
||||
</div>
|
||||
<div class="form-group d-flex justify-content-center">
|
||||
<img class="mw-100" src="<%= url_for . '/image' %>"/>
|
||||
|
|
Reference in a new issue