Commit de1c43ce authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

Legg inn støtte for å legge til beskrivelse av VM

parent 5fc89321
......@@ -140,6 +140,7 @@ var submitForm = function() {
data.hw_profile_id = $("#select-it").val();
data.image_id = $("#select-images2").val();
data.vm_description = $("#descr").val();
data.vm_name = randomName();
if (!data.hw_profile_id || !data.image_id) {
......@@ -35,6 +35,7 @@
<th>VM navn</th>
<th>IP adresse</th>
<th>VM Status</th>
......@@ -53,6 +54,7 @@
{{ owner }}</td>
<td>{{ name }}</td>
<td>{{ extended_properties.vm_description }}</td>
<td class="ttcol">{{ publicIp }}</td>
<td>{{ provisioning_state }}</td>
......@@ -91,6 +93,13 @@
<h2>Opprette ny virtuell maskin i denne lab-en</h2>
<div class="sectionForm">
<div class="control-group" style="margin-bottom: 8px">
<label for="descr">Kort beskrivelse</label>
<input class="form-control" id="descr" class="repositories" placeholder="Beskrivelse...."></select>
<!-- <p class="itemdesc">Dette er de maskinimage som din faglærer har gjort tilgjengelig for denne lab-en.</p> -->
<div class="control-group">
<label for="select-images2">Velg maskinimage</label>
<select id="select-images2" class="repositories" data-allowed="{{ lab.edulab_image_ids_list }}" placeholder="Velg maskin"></select>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment