ui: Identity labels

This commit is contained in:
tecnovert
2021-12-06 01:06:34 +02:00
parent 1e01851152
commit 4b7b16145f
10 changed files with 85 additions and 12 deletions

View File

@@ -9,6 +9,13 @@
<form method="post">
<table>
{% if data.show_edit_form %}
<tr><td>Label</td><td><input type="text" id="label" name="label" value="{{ data.label }}"></td></tr>
{% else %}
<tr><td>Label</td><td>{{ data.label }}</td></tr>
{% endif %}
<tr><td>Successful Sent Bids</td><td>{{ data.num_sent_bids_successful }}</td></tr>
<tr><td>Successful Received Bids</td><td>{{ data.num_recv_bids_successful }}</td></tr>
<tr><td>Rejected Sent Bids</td><td>{{ data.num_sent_bids_rejected }}</td></tr>
@@ -16,6 +23,14 @@
<tr><td>Failed Sent Bids</td><td>{{ data.num_sent_bids_failed }}</td></tr>
<tr><td>Failed Received Bids</td><td>{{ data.num_recv_bids_failed }}</td></tr>
</table>
{% if data.show_edit_form %}
<input type="submit" name="apply" value="Apply">
<input type="submit" name="cancel" value="Cancel">
{% else %}
<input type="submit" name="edit" value="Edit">
{% endif %}
<input type="hidden" name="formid" value="{{ form_id }}">
</form>