Add ssh key form to order_detail page
To ask for the SSH key at the time of confirming and placing the order. The order does not proceed until the user provides a valid ssh key.
This commit is contained in:
parent
c99e943ebc
commit
108fbb09b0
1 changed files with 21 additions and 0 deletions
|
@ -134,6 +134,27 @@
|
|||
</div>
|
||||
<form id="virtual_machine_create_form" action="" method="POST">
|
||||
{% csrf_token %}
|
||||
{% if generic_payment_details %}
|
||||
{% else %}
|
||||
{% comment %}
|
||||
We are in VM buy flow and we want user to click the "Place order" button.
|
||||
At this point, we also want the user to input the SSH key for the VM.
|
||||
{% endcomment %}
|
||||
|
||||
{% if messages %}
|
||||
<div class="alert alert-warning">
|
||||
{% for message in messages %}
|
||||
<span>{{ message }}</span>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="dashboard-container-head">
|
||||
<h2 class="dashboard-title-thin"><i class="fa fa-key" aria-hidden="true"></i> {% trans "Add your public SSH key" %}</h2>
|
||||
</div>
|
||||
{% for field in form %}
|
||||
{% bootstrap_field field %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
<div class="row">
|
||||
<div class="col-sm-8">
|
||||
{% if generic_payment_details %}
|
||||
|
|
Loading…
Reference in a new issue