Compare commits

...

1 commit

Author SHA1 Message Date
PCoder
f4469deba5 Set calculator post url 2019-12-24 17:44:36 +05:30

View file

@ -14,6 +14,7 @@
</script> </script>
{% endif %} {% endif %}
{% with url 'datacenterlight:index' as calculator_form_url %}
<form id="order_form" method="POST" action="{{calculator_form_url}}" data-toggle="validator" role="form"> <form id="order_form" method="POST" action="{{calculator_form_url}}" data-toggle="validator" role="form">
{% csrf_token %} {% csrf_token %}
<input type="hidden" name="pid" value="{{instance.id}}"> <input type="hidden" name="pid" value="{{instance.id}}">
@ -103,3 +104,4 @@
<input type="hidden" name="pricing_name" value="{% if vm_pricing.name %}{{vm_pricing.name}}{% else %}unknown{% endif%}"></input> <input type="hidden" name="pricing_name" value="{% if vm_pricing.name %}{{vm_pricing.name}}{% else %}unknown{% endif%}"></input>
<input type="submit" class="btn btn-primary disabled" value="{% trans 'Continue' %}"></input> <input type="submit" class="btn btn-primary disabled" value="{% trans 'Continue' %}"></input>
</form> </form>
{% endwith %}