Added functionality to select templates for the VMs being created
This commit is contained in:
parent
b68fe31361
commit
c8614f4f63
2 changed files with 33 additions and 20 deletions
|
|
@ -1,11 +1,15 @@
|
|||
{% extends "admin/base_site.html" %}
|
||||
{% load staticfiles bootstrap3 i18n %}
|
||||
{% block content %}
|
||||
|
||||
|
||||
|
||||
<a href="{% url 'admin:createvm' %}">Create VM</a>
|
||||
|
||||
<form action="{% url 'admin:createvm' %}" method="post">
|
||||
{% csrf_token %}
|
||||
<select id="vm_template" name="vm_template">
|
||||
<option value="select">Select a template</option>
|
||||
<option value="1">disk = 10GB, vcpu=1, ram=2GB</option>
|
||||
<option value="2">disk = 20GB, vcpu=2, ram=4GB</option>
|
||||
</select>
|
||||
<input type="submit" name="create_vm" value="Create VM" />
|
||||
</form>
|
||||
{% if vms %}
|
||||
<section>
|
||||
<table class="table table-striped">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue