root / templates / apply.html @ 064ecc91
History | View | Annotate | Download (4.2 kB)
1 |
{% extends "base.html" %} |
---|---|
2 |
{% load i18n %} |
3 |
{% block title %}{% trans "Create new Virtual Machine" %}{% endblock %} |
4 |
{% block breadcrumbs %}:: {% trans "Create Instance" %}{% endblock %} |
5 |
{% block content %} |
6 |
<style type="text/css"> |
7 |
th { |
8 |
text-align: right; |
9 |
padding-right: 0.5em; |
10 |
vertical-align: top; |
11 |
} |
12 |
|
13 |
.help { |
14 |
font-style: italic; |
15 |
|
16 |
} |
17 |
</style>
|
18 |
|
19 |
<div align="center"> |
20 |
<h3>{% trans "Apply for a new instance" %}</h3> |
21 |
<form method="POST"> |
22 |
{% csrf_token %} |
23 |
<fieldset>
|
24 |
<legend>{% trans "Instance information" %}</legend> |
25 |
<table>
|
26 |
<tr><th>{{ form.hostname.label_tag }}</th><td>{{ form.hostname }}<span class="error">{{ form.hostname.errors|join:", " }}</span></td></tr> |
27 |
<tr class="help"><td></td><td>{{ form.hostname.help_text }}</td></tr> |
28 |
<tr><th>{{ form.memory.label_tag }}</th><td>{{ form.memory }}<span class="error">{{ form.memory.errors|join:", " }}</span></td></tr> |
29 |
<tr><th>{{ form.vcpus.label_tag }}</th><td>{{ form.vcpus }}<span class="error">{{ form.vcpus.errors|join:", " }}</span></td></tr> |
30 |
<tr><th>{{ form.disk_size.label_tag }}</th><td>{{ form.disk_size }}<span class="error">{{ form.disk_size.errors|join:", " }}</span></td></tr> |
31 |
<tr class="help"><td></td><td>{{ form.disk_size.help_text }}</td></tr> |
32 |
<tr><th>{{ form.hosts_mail_server.label_tag }}</th><td>{{ form.hosts_mail_server }}<span class="error">{{ form.hosts_mail_server.errors|join:", " }}</span></td></tr> |
33 |
<tr class="help"><td></td><td>{{ form.hosts_mail_server.help_text }}</td></tr> |
34 |
<tr><th>{{ form.operating_system.label_tag }}</th><td>{{ form.operating_system }}<span class="error">{{ form.operating_system.errors|join:", " }}</span></td></tr> |
35 |
{% if form.network %} |
36 |
<tr><th>{{ form.network.label_tag }}</th><td>{{ form.network }}<span class="error">{{ form.network.errors|join:", " }}</span></td></tr> |
37 |
<tr class="help"><td></td><td>{{ form.network.help_text|linebreaks }}</td></tr> |
38 |
{% endif %} |
39 |
</table>
|
40 |
</fieldset>
|
41 |
|
42 |
<fieldset>
|
43 |
<legend>{% trans "Use/Comments" %}</legend> |
44 |
{% blocktrans %} |
45 |
<p>Give a short description of the intended use of this virtual machine, that justifies the parameter selection above. Feel free to include any additional comments.</p> |
46 |
{% endblocktrans %} |
47 |
<p>{{ form.comments }}
|
48 |
{% if form.errors %}<br /><span class="error">{{ form.comments.errors|join:", " }}</span>{% endif %} |
49 |
</p>
|
50 |
</fieldset>
|
51 |
|
52 |
<fieldset>
|
53 |
<legend>{% trans "Administrative contact" %}</legend> |
54 |
{% blocktrans %} |
55 |
<p>If you are applying on behalf of a NOC under GRNET's constituency, please select the appropriate organization. Otherwise, fill-in the admin contact information below.</p> |
56 |
{% endblocktrans %} |
57 |
|
58 |
{% if form.non_field_errors %} |
59 |
<p class="error">{{ form.non_field_errors|join:", "}}</p> |
60 |
{% endif %} |
61 |
|
62 |
<table>
|
63 |
<tr><th>{{ form.organization.label_tag }}</th><td>{{ form.organization }}<span class="error">{{ form.organization.errors|join:", " }}</span></td></tr> |
64 |
|
65 |
|
66 |
<tr><td colspan="3"><div align="center">{% trans "OR" %}</div></td></tr> |
67 |
|
68 |
|
69 |
<tr><th colspan="3"><div align="center">{% trans "Administrative contact" %}</div></th></tr> |
70 |
<tr><th>{% trans "Name" %}</th><td>{{ form.admin_contact_name }}<span class="error">{{ form.admin_contact_name.errors|join:", " }}</span></td></tr> |
71 |
<tr><th>E-mail</th><td>{{ form.admin_contact_email }}<span class="error">{{ form.admin_contact_email.errors|join:", " }}</span></td></tr> |
72 |
<tr><th>{% trans "Phone" %}</th><td>{{ form.admin_contact_phone }}<span class="error">{{ form.admin_contact_phone.errors|join:", " }}</span></td></tr> |
73 |
</table>
|
74 |
</fieldset>
|
75 |
|
76 |
<fieldset>
|
77 |
<legend>{% trans "Miscellaneous" %}</legend> |
78 |
{% blocktrans %} |
79 |
<p>We kindly remind you of the following:</p> |
80 |
<ul align="left"> |
81 |
<li>You are solely responsible for the data on your VM. You have to take care of back-ups etc.</li> |
82 |
<li>We reserve the right to temporarily suspend the operation of your VM in case it causes malfunctions to our infrastructure</li> |
83 |
</ul>
|
84 |
{% endblocktrans %} |
85 |
<p>{{ form.accept_tos }} {% trans "I have read the above and accept them, along with the" %} <a href="/about/terms-of-service/" target="_blank">{% trans "Terms of Service" %}</a></p> |
86 |
{% if form.accept_tos.errors %} |
87 |
<p class="error"> |
88 |
{% trans "You must accept the terms of service before continuing." %} |
89 |
</p>
|
90 |
{% endif %} |
91 |
</fieldset>
|
92 |
|
93 |
<p><input type="submit" value="{% trans "Apply" %}" /></p> |
94 |
</form>
|
95 |
</div>
|
96 |
{% endblock %} |