Skip to content

Commit

Permalink
Update instances.ejs
Browse files Browse the repository at this point in the history
  • Loading branch information
ma4z-sys authored Jan 10, 2025
1 parent 215ee94 commit 4c23883
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion views/admin/instances.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@
<label class="text-white text-sm tracking-tight mb-2"><%= req.translations.memory %> (MiB):</label>
<input id="memory" class="flex-grow p-2 w-full bg-white/10 border border-white/10 focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 text-white rounded-lg placeholder-gray-400" placeholder="2048">
</div>
<div>
<label class="text-white text-sm tracking-tight mb-2">Disk (GB):</label>
<input id="disk" class="flex-grow p-2 w-full bg-white/10 border border-white/10 focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 text-white rounded-lg placeholder-gray-400" placeholder="10">
</div>
<div>
<label class="text-white text-sm tracking-tight mb-2"><%= req.translations.cpuThreads %>:</label>
<input id="cpu" class="flex-grow p-2 w-full bg-white/10 border border-white/10 focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 text-white rounded-lg placeholder-gray-400" placeholder="1">
Expand Down Expand Up @@ -241,6 +245,7 @@ document.getElementById('createNodeBtn').addEventListener('click', async functio
const name = document.getElementById('name');
const memory = document.getElementById('memory');
const disk = document.getElementById('disk');
const cpu = document.getElementById('cpu');
const ports = document.getElementById('ports');
const imageDropdown = document.getElementById('image');
Expand Down Expand Up @@ -303,6 +308,7 @@ document.getElementById('createNodeBtn').addEventListener('click', async functio
nodeId: document.getElementById('node').value,
user: document.getElementById('user').value,
memory: memory.value,
disk: disk.value,
cpu: cpu.value,
ports: ports.value,
primary: primaryPort.value,
Expand Down Expand Up @@ -392,4 +398,4 @@ function handleError(error) {
}
</script>

<%- include('../components/footer') %>
<%- include('../components/footer') %>

0 comments on commit 4c23883

Please sign in to comment.