root / templates / review.html @ bbb71107
History | View | Annotate | Download (4.9 kB)
1 | 064ecc91 | Leonidas Poulopoulos | {% extends "base.html" %} |
---|---|---|---|
2 | 064ecc91 | Leonidas Poulopoulos | {% load i18n %} |
3 | 064ecc91 | Leonidas Poulopoulos | {% block title %}{% trans "Review application" %} #{{ application.pk }}{% endblock %} |
4 | 064ecc91 | Leonidas Poulopoulos | {% block content %} |
5 | 064ecc91 | Leonidas Poulopoulos | <style type="text/css"> |
6 | 064ecc91 | Leonidas Poulopoulos | .comments { |
7 | 064ecc91 | Leonidas Poulopoulos | font-style: italic; |
8 | 064ecc91 | Leonidas Poulopoulos | max-width: 40em; |
9 | 064ecc91 | Leonidas Poulopoulos | } |
10 | 064ecc91 | Leonidas Poulopoulos | .notice { |
11 | 064ecc91 | Leonidas Poulopoulos | text-align: center; |
12 | 064ecc91 | Leonidas Poulopoulos | font-style: italic; |
13 | 064ecc91 | Leonidas Poulopoulos | } |
14 | 064ecc91 | Leonidas Poulopoulos | |
15 | 064ecc91 | Leonidas Poulopoulos | #review { |
16 | 064ecc91 | Leonidas Poulopoulos | max-width: 50em; |
17 | 064ecc91 | Leonidas Poulopoulos | margin-left: auto; |
18 | 064ecc91 | Leonidas Poulopoulos | margin-right: auto; |
19 | 064ecc91 | Leonidas Poulopoulos | } |
20 | 064ecc91 | Leonidas Poulopoulos | </style>
|
21 | 064ecc91 | Leonidas Poulopoulos | <script>
|
22 | 064ecc91 | Leonidas Poulopoulos | function set_network(net){
|
23 | 064ecc91 | Leonidas Poulopoulos | $("#id_network").val(net);
|
24 | 064ecc91 | Leonidas Poulopoulos | }
|
25 | 064ecc91 | Leonidas Poulopoulos | </script>
|
26 | 064ecc91 | Leonidas Poulopoulos | <div align="center" id="review"> |
27 | 064ecc91 | Leonidas Poulopoulos | <h2>{% trans "Review application" %} #{{ application.pk }} {% trans "by" %} {{ application.applicant }}</h2> |
28 | 064ecc91 | Leonidas Poulopoulos | <p>{% trans "Submitted" %} {{ application.filed|date }}</p> |
29 | 064ecc91 | Leonidas Poulopoulos | {% if application.is_pending %} |
30 | 064ecc91 | Leonidas Poulopoulos | <form method="POST" id="appform"> |
31 | 064ecc91 | Leonidas Poulopoulos | {% csrf_token %} |
32 | 064ecc91 | Leonidas Poulopoulos | <fieldset>
|
33 | 064ecc91 | Leonidas Poulopoulos | <legend>{% trans "Instance information" %}</legend> |
34 | 064ecc91 | Leonidas Poulopoulos | <table>
|
35 | 064ecc91 | Leonidas Poulopoulos | <tr><th>{{ appform.hostname.label_tag }}</th><td>{{ appform.hostname }}<span class="error">{{ appform.hostname.errors|join:", " }}</span></td></tr> |
36 | 064ecc91 | Leonidas Poulopoulos | <tr><th>{{ appform.memory.label_tag }}</th><td>{{ appform.memory }}<span class="error">{{ appform.memory.errors|join:", " }}</span></td></tr> |
37 | 064ecc91 | Leonidas Poulopoulos | <tr><th>{{ appform.vcpus.label_tag }}</th><td>{{ appform.vcpus }}<span class="error">{{ appform.vcpus.errors|join:", " }}</span></td></tr> |
38 | 064ecc91 | Leonidas Poulopoulos | <tr><th>{{ appform.disk_size.label_tag }}</th><td>{{ appform.disk_size }}<span class="error">{{ appform.disk_size.errors|join:", " }}</span></td></tr> |
39 | 064ecc91 | Leonidas Poulopoulos | <tr><th>{{ appform.organization.label_tag }}</th><td>{{ appform.organization }}<span class="error">{{ appform.organization.errors|join:", " }}</span></td></tr> |
40 | 064ecc91 | Leonidas Poulopoulos | <tr><th>{{ appform.hosts_mail_server.label_tag }}</th><td>{{ appform.hosts_mail_server }}<span class="error">{{ appform.hosts_mail_server.errors|join:", " }}</span></td></tr> |
41 | 064ecc91 | Leonidas Poulopoulos | <tr><th>{{ appform.operating_system.label_tag }}</th><td>{{ appform.operating_system }}<span class="error">{{ appform.operating_system.errors|join:", " }}</span></td></tr> |
42 | 064ecc91 | Leonidas Poulopoulos | </table>
|
43 | 064ecc91 | Leonidas Poulopoulos | </fieldset>
|
44 | 064ecc91 | Leonidas Poulopoulos | |
45 | 064ecc91 | Leonidas Poulopoulos | {% if application.admin_contact_name %} |
46 | 064ecc91 | Leonidas Poulopoulos | <fieldset>
|
47 | 064ecc91 | Leonidas Poulopoulos | <legend>{% trans "Administrative contact" %}</legend> |
48 | 064ecc91 | Leonidas Poulopoulos | <table>
|
49 | 064ecc91 | Leonidas Poulopoulos | <tr><th>{% trans "Name" %}</th><td>{{ application.admin_contact_name }}</td></tr> |
50 | 064ecc91 | Leonidas Poulopoulos | <tr><th>{% trans "Email" %}</th><td>{{ application.admin_contact_email }}</td></tr> |
51 | 064ecc91 | Leonidas Poulopoulos | <tr><th>{% trans "Phone" %}</th><td>{{ application.admin_contact_phone }}</td></tr> |
52 | 064ecc91 | Leonidas Poulopoulos | </table>
|
53 | 064ecc91 | Leonidas Poulopoulos | </fieldset>
|
54 | 064ecc91 | Leonidas Poulopoulos | {% endif %} |
55 | 064ecc91 | Leonidas Poulopoulos | |
56 | 064ecc91 | Leonidas Poulopoulos | <fieldset>
|
57 | 064ecc91 | Leonidas Poulopoulos | <legend>{% trans "Comments" %}</legend> |
58 | 064ecc91 | Leonidas Poulopoulos | <div class="comments"> |
59 | 064ecc91 | Leonidas Poulopoulos | {{ application.comments }} |
60 | 064ecc91 | Leonidas Poulopoulos | </div>
|
61 | 064ecc91 | Leonidas Poulopoulos | </fieldset>
|
62 | 064ecc91 | Leonidas Poulopoulos | |
63 | 064ecc91 | Leonidas Poulopoulos | <fieldset>
|
64 | 064ecc91 | Leonidas Poulopoulos | <legend>{% trans "Placement" %}</legend> |
65 | 064ecc91 | Leonidas Poulopoulos | {% if application.network %} |
66 | 064ecc91 | Leonidas Poulopoulos | <div class="notice"> |
67 | 064ecc91 | Leonidas Poulopoulos | {% trans "The user has requested explicit network placement on" %} {{ application.network }} ({{ application.network.cluster.description }}) |
68 | 064ecc91 | Leonidas Poulopoulos | </div>
|
69 | 064ecc91 | Leonidas Poulopoulos | {% endif %} |
70 | 064ecc91 | Leonidas Poulopoulos | |
71 | 064ecc91 | Leonidas Poulopoulos | <p>{% trans "Choose either a network, or a cluster from the quick list to use the cluster's default network." %}</p> |
72 | 064ecc91 | Leonidas Poulopoulos | <p>{% trans "Network" %}: {{ appform.network }}</p> |
73 | 064ecc91 | Leonidas Poulopoulos | {% if appform.network.errors %} |
74 | 064ecc91 | Leonidas Poulopoulos | <p class="error">{{ appform.network.errors|join:", " }}</p> |
75 | 064ecc91 | Leonidas Poulopoulos | {% endif %} |
76 | 064ecc91 | Leonidas Poulopoulos | <p>{% for cl in fast_clusters %}<a href="#" onclick="set_network('{{ cl.get_default_network.pk }}');">{{ cl.description }} ({{ cl.slug }})</a> {% if not forloop.last %}| {% endif %}{% endfor %}</p> |
77 | 064ecc91 | Leonidas Poulopoulos | </fieldset>
|
78 | 064ecc91 | Leonidas Poulopoulos | |
79 | 064ecc91 | Leonidas Poulopoulos | <fieldset>
|
80 | 064ecc91 | Leonidas Poulopoulos | <legend>{% trans "Decision" %}</legend> |
81 | 064ecc91 | Leonidas Poulopoulos | <p>{% trans "Comments to the user" %}:</p> |
82 | 064ecc91 | Leonidas Poulopoulos | {% if appform.admin_comments.errors %} |
83 | 064ecc91 | Leonidas Poulopoulos | <p><span class="error">{{ appform.admin_comments.errors }}</span></p> |
84 | 064ecc91 | Leonidas Poulopoulos | {% endif %} |
85 | 064ecc91 | Leonidas Poulopoulos | <p>{{ appform.admin_comments }}</p> |
86 | 064ecc91 | Leonidas Poulopoulos | <p><input type="submit" value="Accept" name="accept"/> <input type="submit" value="Reject" name="reject" /></p> |
87 | 064ecc91 | Leonidas Poulopoulos | </legend>
|
88 | 064ecc91 | Leonidas Poulopoulos | </form>
|
89 | 064ecc91 | Leonidas Poulopoulos | {% else %} |
90 | 064ecc91 | Leonidas Poulopoulos | <fieldset>
|
91 | 064ecc91 | Leonidas Poulopoulos | <legend>{% trans "Instance information" %}</legend> |
92 | 064ecc91 | Leonidas Poulopoulos | <table>
|
93 | 064ecc91 | Leonidas Poulopoulos | <tr><th>{{ appform.hostname.label_tag }}</th><td>{{ application.hostname }}</td></tr> |
94 | 064ecc91 | Leonidas Poulopoulos | <tr><th>{{ appform.memory.label_tag }}</th><td>{{ application.memory }}</td></tr> |
95 | 064ecc91 | Leonidas Poulopoulos | <tr><th>{{ appform.vcpus.label_tag }}</th><td>{{ application.vcpus }}</td></tr> |
96 | 064ecc91 | Leonidas Poulopoulos | <tr><th>{{ appform.disk_size.label_tag }}</th><td>{{ application.disk_size }}</td></tr> |
97 | 064ecc91 | Leonidas Poulopoulos | <tr><th>{{ appform.organization.label_tag }}</th><td>{{ application.organization }}</td></tr> |
98 | 064ecc91 | Leonidas Poulopoulos | <tr><th>{{ appform.hosts_mail_server.label_tag }}</th><td>{{ application.hosts_mail_server }}</td></tr> |
99 | 064ecc91 | Leonidas Poulopoulos | <tr><th>{{ appform.operating_system.label_tag }}</th><td>{{ application.operating_system }}</td></tr> |
100 | 064ecc91 | Leonidas Poulopoulos | </table>
|
101 | 064ecc91 | Leonidas Poulopoulos | </fieldset>
|
102 | 064ecc91 | Leonidas Poulopoulos | |
103 | 064ecc91 | Leonidas Poulopoulos | {% if application.admin_contact_name %} |
104 | 064ecc91 | Leonidas Poulopoulos | <fieldset>
|
105 | 064ecc91 | Leonidas Poulopoulos | <legend>{% trans "Administrative contact" %}</legend> |
106 | 064ecc91 | Leonidas Poulopoulos | <table>
|
107 | 064ecc91 | Leonidas Poulopoulos | <tr><th>{% trans "Name" %}</th><td>{{ application.admin_contact_name }}</td></tr> |
108 | 064ecc91 | Leonidas Poulopoulos | <tr><th>{% trans "Email" %}</th><td>{{ application.admin_contact_email }}</td></tr> |
109 | 064ecc91 | Leonidas Poulopoulos | <tr><th>{% trans "Phone" %}</th><td>{{ application.admin_contact_phone }}</td></tr> |
110 | 064ecc91 | Leonidas Poulopoulos | </table>
|
111 | 064ecc91 | Leonidas Poulopoulos | </fieldset>
|
112 | 064ecc91 | Leonidas Poulopoulos | {% endif %} |
113 | 064ecc91 | Leonidas Poulopoulos | |
114 | 064ecc91 | Leonidas Poulopoulos | <fieldset>
|
115 | 064ecc91 | Leonidas Poulopoulos | <legend>{% trans "Comments" %}</legend> |
116 | 064ecc91 | Leonidas Poulopoulos | <div class="comments"> |
117 | 064ecc91 | Leonidas Poulopoulos | {{ application.comments }} |
118 | 064ecc91 | Leonidas Poulopoulos | </div>
|
119 | 064ecc91 | Leonidas Poulopoulos | </fieldset>
|
120 | 064ecc91 | Leonidas Poulopoulos | |
121 | 064ecc91 | Leonidas Poulopoulos | <fieldset>
|
122 | 064ecc91 | Leonidas Poulopoulos | <legend>{% trans "Placement" %}</legend> |
123 | 064ecc91 | Leonidas Poulopoulos | <p>{% trans "The instance has been placed on" %} {{ application.network }} ({{ application.cluster.description }})</p> |
124 | 064ecc91 | Leonidas Poulopoulos | </fieldset>
|
125 | 064ecc91 | Leonidas Poulopoulos | {% endif %} |
126 | 064ecc91 | Leonidas Poulopoulos | |
127 | 064ecc91 | Leonidas Poulopoulos | </div>
|
128 | 064ecc91 | Leonidas Poulopoulos | {% endblock %} |