fix missing img alt in templates
This commit is contained in:
@@ -19,9 +19,9 @@
|
|||||||
<p class="w3-col l6 m6 hide-small">{{.Notes}}</p>
|
<p class="w3-col l6 m6 hide-small">{{.Notes}}</p>
|
||||||
<p class="w3-col l2 hide-medium">{{.SizeFormatted}}</p>
|
<p class="w3-col l2 hide-medium">{{.SizeFormatted}}</p>
|
||||||
<div class="w3-col l2 m2 s4 flex row nowrap" style="height: 1lh;">
|
<div class="w3-col l2 m2 s4 flex row nowrap" style="height: 1lh;">
|
||||||
<img id="edit-btn" class="clickable" aria-label="change notes" src="images/actions/backups/config.svg#symb">
|
<img id="edit-btn" class="clickable" alt="change notes" src="images/actions/backups/config.svg#symb">
|
||||||
<img id="delete-btn" class="clickable" aria-label="delete backup" role="button" tabindex=0 src="images/actions/backups/delete-active.svg#symb">
|
<img id="delete-btn" class="clickable" alt="delete backup" role="button" tabindex=0 src="images/actions/backups/delete-active.svg#symb">
|
||||||
<img id="restore-btn" class="clickable" aria-label="restore from backup" role="button" tabindex=0 src="images/actions/backups/restore.svg#symb">
|
<img id="restore-btn" class="clickable" alt="restore from backup" role="button" tabindex=0 src="images/actions/backups/restore.svg#symb">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<template id="edit-dialog">
|
<template id="edit-dialog">
|
||||||
@@ -96,7 +96,7 @@
|
|||||||
{{define "backups-add-backup"}}
|
{{define "backups-add-backup"}}
|
||||||
<button type="button" id="backup-add" class="w3-button" aria-label="Create Backup">
|
<button type="button" id="backup-add" class="w3-button" aria-label="Create Backup">
|
||||||
<span class="large" style="margin: 0;">Create Backup</span>
|
<span class="large" style="margin: 0;">Create Backup</span>
|
||||||
<img class="small" role="img" style="height: 1lh; width: 1lh;" aria-label="Create Backup" src="images/actions/network/add.svg#symb">
|
<img class="small" role="img" style="height: 1lh; width: 1lh;" alt="Create Backup" src="images/actions/network/add.svg#symb">
|
||||||
</button>
|
</button>
|
||||||
<template id="create-backup-dialog">
|
<template id="create-backup-dialog">
|
||||||
<link rel="stylesheet" href="modules/w3.css">
|
<link rel="stylesheet" href="modules/w3.css">
|
||||||
|
|||||||
@@ -1,26 +1,26 @@
|
|||||||
{{define "proctype-input"}}
|
{{define "proctype-input"}}
|
||||||
<img aria-label="CPU Type" src="images/resources/cpu.svg#symb">
|
<img alt="CPU Type" src="images/resources/cpu.svg#symb">
|
||||||
<label for="proctype">CPU Type</label>
|
<label for="proctype">CPU Type</label>
|
||||||
{{template "select" .}}
|
{{template "select" .}}
|
||||||
<div></div>
|
<div></div>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{define "cores-input"}}
|
{{define "cores-input"}}
|
||||||
<img aria-label="CPU Amount" src="images/resources/cpu.svg#symb">
|
<img alt="CPU Amount" src="images/resources/cpu.svg#symb">
|
||||||
<label for="cores">CPU Amount</label>
|
<label for="cores">CPU Amount</label>
|
||||||
<input id="cores" name="cores" class="w3-input w3-border" type="number" required value="{{.}}">
|
<input id="cores" name="cores" class="w3-input w3-border" type="number" required value="{{.}}">
|
||||||
<p>Cores</p>
|
<p>Cores</p>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{define "memory-input"}}
|
{{define "memory-input"}}
|
||||||
<img aria-label="Memory Amount" src="images/resources/ram.svg#symb">
|
<img alt="Memory Amount" src="images/resources/ram.svg#symb">
|
||||||
<label for="ram">Memory</label>
|
<label for="ram">Memory</label>
|
||||||
<input id="ram" name="ram" class="w3-input w3-border" type="number" required value="{{.}}">
|
<input id="ram" name="ram" class="w3-input w3-border" type="number" required value="{{.}}">
|
||||||
<p>MiB</p>
|
<p>MiB</p>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{define "swap-input"}}
|
{{define "swap-input"}}
|
||||||
<img aria-label="Swap Amount" src="images/resources/swap.svg#symb">
|
<img alt="Swap Amount" src="images/resources/swap.svg#symb">
|
||||||
<label for="swap">Swap</label>
|
<label for="swap">Swap</label>
|
||||||
<input id="swap" name="swap" class="w3-input w3-border" type="number" required value="{{.}}">
|
<input id="swap" name="swap" class="w3-input w3-border" type="number" required value="{{.}}">
|
||||||
<p>MiB</p>
|
<p>MiB</p>
|
||||||
@@ -46,7 +46,7 @@
|
|||||||
{{define "volumes-add-disk"}}
|
{{define "volumes-add-disk"}}
|
||||||
<button type="button" id="disk-add" class="w3-button" aria-label="Add New Disk">
|
<button type="button" id="disk-add" class="w3-button" aria-label="Add New Disk">
|
||||||
<span class="large" style="margin: 0;">Add Disk</span>
|
<span class="large" style="margin: 0;">Add Disk</span>
|
||||||
<img class="small" role="img" style="height: 1lh; width: 1lh;" aria-label="Add New Disk" src="images/actions/disk/add-disk.svg#symb">
|
<img class="small" style="height: 1lh; width: 1lh;" alt="Add New Disk" src="images/actions/disk/add-disk.svg#symb">
|
||||||
</button>
|
</button>
|
||||||
<template id="add-disk-dialog">
|
<template id="add-disk-dialog">
|
||||||
<dialog class="w3-container w3-card w3-border-0">
|
<dialog class="w3-container w3-card w3-border-0">
|
||||||
@@ -75,7 +75,7 @@
|
|||||||
{{define "volumes-add-cd"}}
|
{{define "volumes-add-cd"}}
|
||||||
<button type="button" id="cd-add" class="w3-button" aria-label="Add New CD">
|
<button type="button" id="cd-add" class="w3-button" aria-label="Add New CD">
|
||||||
<span class="large" style="margin: 0;">Mount CD</span>
|
<span class="large" style="margin: 0;">Mount CD</span>
|
||||||
<img class="small" role="img" style="height: 1lh; width: 1lh;" aria-label="Add New CDROM" src="images/actions/disk/add-cd.svg#symb">
|
<img class="small" style="height: 1lh; width: 1lh;" alt="Add New CDROM" src="images/actions/disk/add-cd.svg#symb">
|
||||||
</button>
|
</button>
|
||||||
<template id="add-cd-dialog">
|
<template id="add-cd-dialog">
|
||||||
<dialog class="w3-container w3-card w3-border-0">
|
<dialog class="w3-container w3-card w3-border-0">
|
||||||
@@ -97,7 +97,7 @@
|
|||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{define "volume-rootfs"}}
|
{{define "volume-rootfs"}}
|
||||||
<img data-volume={{.Name}} xmlns="http://www.w3.org/2000/svg" aria-label="Drive" src="images/resources/drive.svg#symb">
|
<img data-volume={{.Name}} alt="Drive" src="images/resources/drive.svg#symb">
|
||||||
<p>{{.Name}}</p>
|
<p>{{.Name}}</p>
|
||||||
<p>{{.Volume.File}}</p>
|
<p>{{.Volume.File}}</p>
|
||||||
<div>
|
<div>
|
||||||
@@ -109,7 +109,7 @@
|
|||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{define "volume-mp"}}
|
{{define "volume-mp"}}
|
||||||
<img data-volume={{.Name}} xmlns="http://www.w3.org/2000/svg" aria-label="Drive" src="images/resources/drive.svg#symb">
|
<img data-volume={{.Name}} alt="Drive" src="images/resources/drive.svg#symb">
|
||||||
<p>{{.Name}}</p>
|
<p>{{.Name}}</p>
|
||||||
<p>{{.Volume.File}}</p>
|
<p>{{.Volume.File}}</p>
|
||||||
<div>
|
<div>
|
||||||
@@ -121,7 +121,7 @@
|
|||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{define "volume-ide"}}
|
{{define "volume-ide"}}
|
||||||
<img data-volume={{.Name}} xmlns="http://www.w3.org/2000/svg" aria-label="Drive" src="images/resources/drive.svg#symb">
|
<img data-volume={{.Name}} alt="Drive" src="images/resources/drive.svg#symb">
|
||||||
<p>{{.Name}}</p>
|
<p>{{.Name}}</p>
|
||||||
<p>{{.Volume.File}}</p>
|
<p>{{.Volume.File}}</p>
|
||||||
<div>
|
<div>
|
||||||
@@ -133,7 +133,7 @@
|
|||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{define "volume-scsi"}}
|
{{define "volume-scsi"}}
|
||||||
<img data-volume={{.Name}} xmlns="http://www.w3.org/2000/svg" aria-label="Drive" src="images/resources/drive.svg#symb">
|
<img data-volume={{.Name}} alt="Drive" src="images/resources/drive.svg#symb">
|
||||||
<p>{{.Name}}</p>
|
<p>{{.Name}}</p>
|
||||||
<p>{{.Volume.File}}</p>
|
<p>{{.Volume.File}}</p>
|
||||||
<div>
|
<div>
|
||||||
@@ -145,7 +145,7 @@
|
|||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{define "volume-unused"}}
|
{{define "volume-unused"}}
|
||||||
<img data-volume={{.Name}} xmlns="http://www.w3.org/2000/svg" aria-label="Drive" src="images/resources/drive.svg#symb">
|
<img data-volume={{.Name}} alt="Drive" src="images/resources/drive.svg#symb">
|
||||||
<p>{{.Name}}</p>
|
<p>{{.Name}}</p>
|
||||||
<p>{{.Volume.File}}</p>
|
<p>{{.Volume.File}}</p>
|
||||||
<div>
|
<div>
|
||||||
@@ -160,7 +160,7 @@
|
|||||||
<volume-action data-type="move" data-volume="{{.Name}}">
|
<volume-action data-type="move" data-volume="{{.Name}}">
|
||||||
<template shadowrootmode="open">
|
<template shadowrootmode="open">
|
||||||
<link rel="stylesheet" href="css/style.css">
|
<link rel="stylesheet" href="css/style.css">
|
||||||
<img class="clickable" aria-label="Move {{.Name}}" src="images/actions/disk/move-active.svg#symb">
|
<img class="clickable" alt="Move {{.Name}}" src="images/actions/disk/move-active.svg#symb">
|
||||||
<template id="dialog-template">
|
<template id="dialog-template">
|
||||||
<dialog class="w3-container w3-card w3-border-0">
|
<dialog class="w3-container w3-card w3-border-0">
|
||||||
<p class="w3-large" id="prompt" style="text-align: center;">
|
<p class="w3-large" id="prompt" style="text-align: center;">
|
||||||
@@ -186,7 +186,7 @@
|
|||||||
<volume-action data-type="none" data-volume="{{.Name}}">
|
<volume-action data-type="none" data-volume="{{.Name}}">
|
||||||
<template shadowrootmode="open">
|
<template shadowrootmode="open">
|
||||||
<link rel="stylesheet" href="css/style.css">
|
<link rel="stylesheet" href="css/style.css">
|
||||||
<img aria-label="" src="images/actions/disk/move-inactive.svg#symb">
|
<img alt="" src="images/actions/disk/move-inactive.svg#symb">
|
||||||
</template>
|
</template>
|
||||||
</volume-action>
|
</volume-action>
|
||||||
{{end}}
|
{{end}}
|
||||||
@@ -195,7 +195,7 @@
|
|||||||
<volume-action data-type="resize" data-volume="{{.Name}}">
|
<volume-action data-type="resize" data-volume="{{.Name}}">
|
||||||
<template shadowrootmode="open">
|
<template shadowrootmode="open">
|
||||||
<link rel="stylesheet" href="css/style.css">
|
<link rel="stylesheet" href="css/style.css">
|
||||||
<img class="clickable" aria-label="Resize {{.Name}}" src="images/actions/disk/resize-active.svg#symb">
|
<img class="clickable" alt="Resize {{.Name}}" src="images/actions/disk/resize-active.svg#symb">
|
||||||
<template id="dialog-template">
|
<template id="dialog-template">
|
||||||
<dialog class="w3-container w3-card w3-border-0">
|
<dialog class="w3-container w3-card w3-border-0">
|
||||||
<p class="w3-large" id="prompt" style="text-align: center;">
|
<p class="w3-large" id="prompt" style="text-align: center;">
|
||||||
@@ -221,7 +221,7 @@
|
|||||||
<volume-action data-type="none" data-volume="{{.Name}}">
|
<volume-action data-type="none" data-volume="{{.Name}}">
|
||||||
<template shadowrootmode="open">
|
<template shadowrootmode="open">
|
||||||
<link rel="stylesheet" href="css/style.css">
|
<link rel="stylesheet" href="css/style.css">
|
||||||
<img aria-label="" src="images/actions/disk/resize-inactive.svg#symb">
|
<img alt="" src="images/actions/disk/resize-inactive.svg#symb">
|
||||||
</template>
|
</template>
|
||||||
</volume-action>
|
</volume-action>
|
||||||
{{end}}
|
{{end}}
|
||||||
@@ -230,7 +230,7 @@
|
|||||||
<volume-action data-type="delete" data-volume="{{.Name}}">
|
<volume-action data-type="delete" data-volume="{{.Name}}">
|
||||||
<template shadowrootmode="open">
|
<template shadowrootmode="open">
|
||||||
<link rel="stylesheet" href="css/style.css">
|
<link rel="stylesheet" href="css/style.css">
|
||||||
<img class="clickable" aria-label="Delete {{.Name}}" src="images/actions/disk/delete-active.svg#symb">
|
<img class="clickable" alt="Delete {{.Name}}" src="images/actions/disk/delete-active.svg#symb">
|
||||||
<template id="dialog-template">
|
<template id="dialog-template">
|
||||||
<dialog class="w3-container w3-card w3-border-0">
|
<dialog class="w3-container w3-card w3-border-0">
|
||||||
<p class="w3-large" id="prompt" style="text-align: center;">
|
<p class="w3-large" id="prompt" style="text-align: center;">
|
||||||
@@ -255,7 +255,7 @@
|
|||||||
<volume-action data-type="none" data-volume="{{.Name}}">
|
<volume-action data-type="none" data-volume="{{.Name}}">
|
||||||
<template shadowrootmode="open">
|
<template shadowrootmode="open">
|
||||||
<link rel="stylesheet" href="css/style.css">
|
<link rel="stylesheet" href="css/style.css">
|
||||||
<img aria-label="" src="images/actions/disk/delete-inactive.svg#symb">
|
<img alt="" src="images/actions/disk/delete-inactive.svg#symb">
|
||||||
</template>
|
</template>
|
||||||
</volume-action>
|
</volume-action>
|
||||||
{{end}}
|
{{end}}
|
||||||
@@ -264,7 +264,7 @@
|
|||||||
<volume-action data-type="attach" data-volume="{{.Name}}">
|
<volume-action data-type="attach" data-volume="{{.Name}}">
|
||||||
<template shadowrootmode="open">
|
<template shadowrootmode="open">
|
||||||
<link rel="stylesheet" href="css/style.css">
|
<link rel="stylesheet" href="css/style.css">
|
||||||
<img class="clickable" aria-label="Attach {{.Name}}" src="images/actions/disk/attach.svg#symb">
|
<img class="clickable" alt="Attach {{.Name}}" src="images/actions/disk/attach.svg#symb">
|
||||||
<template id="dialog-template">
|
<template id="dialog-template">
|
||||||
<dialog class="w3-container w3-card w3-border-0">
|
<dialog class="w3-container w3-card w3-border-0">
|
||||||
<p class="w3-large" id="prompt" style="text-align: center;">
|
<p class="w3-large" id="prompt" style="text-align: center;">
|
||||||
@@ -297,7 +297,7 @@
|
|||||||
<volume-action data-type="detach" data-volume="{{.Name}}">
|
<volume-action data-type="detach" data-volume="{{.Name}}">
|
||||||
<template shadowrootmode="open">
|
<template shadowrootmode="open">
|
||||||
<link rel="stylesheet" href="css/style.css">
|
<link rel="stylesheet" href="css/style.css">
|
||||||
<img class="clickable" aria-label="Detach {{.Name}}" src="images/actions/disk/detach.svg#symb">
|
<img class="clickable" alt="Detach {{.Name}}" src="images/actions/disk/detach.svg#symb">
|
||||||
<template id="dialog-template">
|
<template id="dialog-template">
|
||||||
<dialog class="w3-container w3-card w3-border-0">
|
<dialog class="w3-container w3-card w3-border-0">
|
||||||
<p class="w3-large" id="prompt" style="text-align: center;">
|
<p class="w3-large" id="prompt" style="text-align: center;">
|
||||||
@@ -322,7 +322,7 @@
|
|||||||
<volume-action data-type="none">
|
<volume-action data-type="none">
|
||||||
<template shadowrootmode="open">
|
<template shadowrootmode="open">
|
||||||
<link rel="stylesheet" href="css/style.css">
|
<link rel="stylesheet" href="css/style.css">
|
||||||
<img aria-label="" src="images/common/blank.svg">
|
<img alt="" src="images/common/blank.svg">
|
||||||
</template>
|
</template>
|
||||||
</volume-action>
|
</volume-action>
|
||||||
{{end}}
|
{{end}}
|
||||||
@@ -336,7 +336,7 @@
|
|||||||
{{define "nets-add-net"}}
|
{{define "nets-add-net"}}
|
||||||
<button type="button" id="network-add" class="w3-button" aria-label="Add New Network Interface">
|
<button type="button" id="network-add" class="w3-button" aria-label="Add New Network Interface">
|
||||||
<span class="large" style="margin: 0;">Add Network</span>
|
<span class="large" style="margin: 0;">Add Network</span>
|
||||||
<img class="small" role="img" style="height: 1lh; width: 1lh;" aria-label="Add New Network Interface" src="images/actions/network/add.svg#symb">
|
<img class="small" style="height: 1lh; width: 1lh;" alt="Add New Network Interface" src="images/actions/network/add.svg#symb">
|
||||||
</button>
|
</button>
|
||||||
<template id="add-net-dialog">
|
<template id="add-net-dialog">
|
||||||
<dialog class="w3-container w3-card w3-border-0">
|
<dialog class="w3-container w3-card w3-border-0">
|
||||||
@@ -361,14 +361,14 @@
|
|||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{define "net"}}
|
{{define "net"}}
|
||||||
<img data-network="{{.Net_ID}}" aria-label="Net {{.Net_ID}}" src="images/resources/network.svg#symb">
|
<img data-network="{{.Net_ID}}" alt="Net {{.Net_ID}}" src="images/resources/network.svg#symb">
|
||||||
<p>{{.Net_ID}}</p>
|
<p>{{.Net_ID}}</p>
|
||||||
<p>{{.Value}}</p>
|
<p>{{.Value}}</p>
|
||||||
<div>
|
<div>
|
||||||
<network-action data-type="config" data-network="{{.Net_ID}}" data-value="{{.Value}}">
|
<network-action data-type="config" data-network="{{.Net_ID}}" data-value="{{.Value}}">
|
||||||
<template shadowrootmode="open">
|
<template shadowrootmode="open">
|
||||||
<link rel="stylesheet" href="css/style.css">
|
<link rel="stylesheet" href="css/style.css">
|
||||||
<img class="clickable" aria-label="Configure Net {{.Net_ID}}" src="images/actions/network/config.svg#symb">
|
<img class="clickable" alt="Configure Net {{.Net_ID}}" src="images/actions/network/config.svg#symb">
|
||||||
<template id="dialog-template">
|
<template id="dialog-template">
|
||||||
<dialog class="w3-container w3-card w3-border-0">
|
<dialog class="w3-container w3-card w3-border-0">
|
||||||
<p class="w3-large" id="prompt" style="text-align: center;">
|
<p class="w3-large" id="prompt" style="text-align: center;">
|
||||||
@@ -390,7 +390,7 @@
|
|||||||
<network-action data-type="delete" data-network="{{.Net_ID}}" data-value="{{.Value}}">
|
<network-action data-type="delete" data-network="{{.Net_ID}}" data-value="{{.Value}}">
|
||||||
<template shadowrootmode="open">
|
<template shadowrootmode="open">
|
||||||
<link rel="stylesheet" href="css/style.css">
|
<link rel="stylesheet" href="css/style.css">
|
||||||
<img class="clickable" aria-label="Delete Net {{.Net_ID}}" src="images/actions/network/delete-active.svg#symb">
|
<img class="clickable" alt="Delete Net {{.Net_ID}}" src="images/actions/network/delete-active.svg#symb">
|
||||||
<template id="dialog-template">
|
<template id="dialog-template">
|
||||||
<dialog class="w3-container w3-card w3-border-0">
|
<dialog class="w3-container w3-card w3-border-0">
|
||||||
<p class="w3-large" id="prompt" style="text-align: center;">
|
<p class="w3-large" id="prompt" style="text-align: center;">
|
||||||
@@ -421,7 +421,7 @@
|
|||||||
{{define "devices-add-device"}}
|
{{define "devices-add-device"}}
|
||||||
<button type="button" id="device-add" class="w3-button" aria-label="Add New PCIe Device">
|
<button type="button" id="device-add" class="w3-button" aria-label="Add New PCIe Device">
|
||||||
<span class="large" style="margin: 0;">Add Device</span>
|
<span class="large" style="margin: 0;">Add Device</span>
|
||||||
<img class="small" role="img" style="height: 1lh; width: 1lh;" aria-label="Add New PCIe Device" src="images/actions/device/add.svg#symb">
|
<img class="small" style="height: 1lh; width: 1lh;" alt="Add New PCIe Device" src="images/actions/device/add.svg#symb">
|
||||||
</button>
|
</button>
|
||||||
<template id="add-device-dialog">
|
<template id="add-device-dialog">
|
||||||
<dialog class="w3-container w3-card w3-border-0">
|
<dialog class="w3-container w3-card w3-border-0">
|
||||||
@@ -444,14 +444,14 @@
|
|||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{define "device"}}
|
{{define "device"}}
|
||||||
<img data-device="{{.Device_ID}}" aria-label="Device {{.Device_ID}}" src="images/resources/device.svg#symb">
|
<img data-device="{{.Device_ID}}" alt="Device {{.Device_ID}}" src="images/resources/device.svg#symb">
|
||||||
<p>{{.Device_ID}}</p>
|
<p>{{.Device_ID}}</p>
|
||||||
<p>{{.Device_Name}}</p>
|
<p>{{.Device_Name}}</p>
|
||||||
<div>
|
<div>
|
||||||
<device-action data-type="config" data-device="{{.Device_ID}}" data-value="{{.Value}}">
|
<device-action data-type="config" data-device="{{.Device_ID}}" data-value="{{.Value}}">
|
||||||
<template shadowrootmode="open">
|
<template shadowrootmode="open">
|
||||||
<link rel="stylesheet" href="css/style.css">
|
<link rel="stylesheet" href="css/style.css">
|
||||||
<img class="clickable" aria-label="Configure Device {{.Device_ID}}" src="images/actions/device/config.svg#symb">
|
<img class="clickable" alt="Configure Device {{.Device_ID}}" src="images/actions/device/config.svg#symb">
|
||||||
<template id="dialog-template">
|
<template id="dialog-template">
|
||||||
<dialog class="w3-container w3-card w3-border-0">
|
<dialog class="w3-container w3-card w3-border-0">
|
||||||
<p class="w3-large" id="prompt" style="text-align: center;">
|
<p class="w3-large" id="prompt" style="text-align: center;">
|
||||||
@@ -473,7 +473,7 @@
|
|||||||
<device-action data-type="delete" data-device="{{.Device_ID}}" data-value="{{.Value}}">
|
<device-action data-type="delete" data-device="{{.Device_ID}}" data-value="{{.Value}}">
|
||||||
<template shadowrootmode="open">
|
<template shadowrootmode="open">
|
||||||
<link rel="stylesheet" href="css/style.css">
|
<link rel="stylesheet" href="css/style.css">
|
||||||
<img class="clickable" aria-label="Delete Device {{.Device_ID}}" src="images/actions/device/delete-active.svg#symb">
|
<img class="clickable" alt="Delete Device {{.Device_ID}}" src="images/actions/device/delete-active.svg#symb">
|
||||||
<template id="dialog-template">
|
<template id="dialog-template">
|
||||||
<dialog class="w3-container w3-card w3-border-0">
|
<dialog class="w3-container w3-card w3-border-0">
|
||||||
<p class="w3-large" id="prompt" style="text-align: center;">
|
<p class="w3-large" id="prompt" style="text-align: center;">
|
||||||
@@ -537,15 +537,15 @@
|
|||||||
{{define "boot-target"}}
|
{{define "boot-target"}}
|
||||||
{{if .volume_id}}
|
{{if .volume_id}}
|
||||||
<div class="draggable-item" data-value="{{.volume_id}}" style="display: grid; grid-template-columns: auto auto 8ch 1fr; column-gap: 10px; align-items: center;">
|
<div class="draggable-item" data-value="{{.volume_id}}" style="display: grid; grid-template-columns: auto auto 8ch 1fr; column-gap: 10px; align-items: center;">
|
||||||
<img aria-label="Drag" src="images/actions/drag.svg#symb">
|
<img alt="Drag" src="images/actions/drag.svg#symb">
|
||||||
<img aria-label="Volume" src="images/resources/drive.svg#symb">
|
<img alt="Volume" src="images/resources/drive.svg#symb">
|
||||||
<p style="margin: 0px;">{{.volume_id}}</p>
|
<p style="margin: 0px;">{{.volume_id}}</p>
|
||||||
<p style="margin: 0px; overflow: hidden; white-space: nowrap;">{{.file}}</p>
|
<p style="margin: 0px; overflow: hidden; white-space: nowrap;">{{.file}}</p>
|
||||||
</div>
|
</div>
|
||||||
{{else if .net_id}}
|
{{else if .net_id}}
|
||||||
<div class="draggable-item" data-value="{{.net_id}}" style="display: grid; grid-template-columns: auto auto 8ch 1fr; column-gap: 10px; align-items: center;">
|
<div class="draggable-item" data-value="{{.net_id}}" style="display: grid; grid-template-columns: auto auto 8ch 1fr; column-gap: 10px; align-items: center;">
|
||||||
<img aria-label="Drag" src="images/actions/drag.svg#symb">
|
<img alt="Drag" src="images/actions/drag.svg#symb">
|
||||||
<img aria-label="Net" src="images/resources/network.svg#symb">
|
<img alt="Net" src="images/resources/network.svg#symb">
|
||||||
<p style="margin: 0px;">{{.net_id}}</p>
|
<p style="margin: 0px;">{{.net_id}}</p>
|
||||||
<p style="margin: 0px; overflow: hidden; white-space: nowrap;">{{.value}}</p>
|
<p style="margin: 0px; overflow: hidden; white-space: nowrap;">{{.value}}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -60,53 +60,53 @@
|
|||||||
<p class="hide-small">{{.Type}}</p>
|
<p class="hide-small">{{.Type}}</p>
|
||||||
<div class="flex row nowrap hide-tiny">
|
<div class="flex row nowrap hide-tiny">
|
||||||
{{if eq .Status "running"}}
|
{{if eq .Status "running"}}
|
||||||
<img id="status" aria-label="instance is running" src="images/status/active.svg#symb">
|
<img id="status" alt="instance is running" src="images/status/active.svg#symb">
|
||||||
{{else if eq .Status "stopped"}}
|
{{else if eq .Status "stopped"}}
|
||||||
<img id="status" aria-label="instance is stopped" src="images/status/inactive.svg#symb">
|
<img id="status" alt="instance is stopped" src="images/status/inactive.svg#symb">
|
||||||
{{else if eq .Status "loading"}}
|
{{else if eq .Status "loading"}}
|
||||||
<img id="status" aria-label="instance is loading" src="images/status/loading.svg#symb">
|
<img id="status" alt="instance is loading" src="images/status/loading.svg#symb">
|
||||||
{{else}}
|
{{else}}
|
||||||
<img id="status" aria-label="instance is loading" src="images/status/loading.svg#symb">
|
<img id="status" alt="instance is loading" src="images/status/loading.svg#symb">
|
||||||
{{end}}
|
{{end}}
|
||||||
<p>{{.Status}}</p>
|
<p>{{.Status}}</p>
|
||||||
</div>
|
</div>
|
||||||
<p class="hide-medium">{{.Node}}</p>
|
<p class="hide-medium">{{.Node}}</p>
|
||||||
<div class="flex row nowrap hide-medium">
|
<div class="flex row nowrap hide-medium">
|
||||||
{{if eq .NodeStatus "online"}}
|
{{if eq .NodeStatus "online"}}
|
||||||
<img aria-label="node is online" src="images/status/active.svg#symb">
|
<img alt="node is online" src="images/status/active.svg#symb">
|
||||||
{{else if eq .NodeStatus "offline"}}
|
{{else if eq .NodeStatus "offline"}}
|
||||||
<img aria-label="node is offline" src="images/status/inactive.svg#symb">
|
<img alt="node is offline" src="images/status/inactive.svg#symb">
|
||||||
{{else if eq .NodeStatus "unknown"}}
|
{{else if eq .NodeStatus "unknown"}}
|
||||||
<img aria-label="node is offline" src="images/status/inactive.svg#symb">
|
<img alt="node is offline" src="images/status/inactive.svg#symb">
|
||||||
{{else}}
|
{{else}}
|
||||||
{{end}}
|
{{end}}
|
||||||
<p>{{.NodeStatus}}</p>
|
<p>{{.NodeStatus}}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex row nowrap" style="height: 1lh;">
|
<div class="flex row nowrap" style="height: 1lh;">
|
||||||
{{if and (eq .NodeStatus "online") (eq .Status "running")}}
|
{{if and (eq .NodeStatus "online") (eq .Status "running")}}
|
||||||
<img id="power-btn" class="clickable" aria-label="shutdown instance" role="button" tabindex=0 src="images/actions/instance/stop.svg#symb">
|
<img id="power-btn" class="clickable" alt="shutdown instance" role="button" tabindex=0 src="images/actions/instance/stop.svg#symb">
|
||||||
<img id="configure-btn" aria-disabled="true" role="none" src="images/actions/instance/config-inactive.svg#symb">
|
<img id="configure-btn" alt="" aria-disabled="true" role="none" src="images/actions/instance/config-inactive.svg#symb">
|
||||||
<img id="backup-btn" aria-disabled="true" role="none" src="images/actions/instance/backup-inactive.svg#symb">
|
<img id="backup-btn" alt="" aria-disabled="true" role="none" src="images/actions/instance/backup-inactive.svg#symb">
|
||||||
<a href="{{.ConsolePath}}" target="_blank">
|
<a href="{{.ConsolePath}}" target="_blank">
|
||||||
<img id="console-btn" class="clickable" aria-label="open console" src="images/actions/instance/console-active.svg#symb">
|
<img id="console-btn" class="clickable" alt="open console" src="images/actions/instance/console-active.svg#symb">
|
||||||
</a>
|
</a>
|
||||||
<img id="delete-btn" aria-disabled="true" role="none" src="images/actions/instance/delete-inactive.svg#symb">
|
<img id="delete-btn" alt="" aria-disabled="true" role="none" src="images/actions/instance/delete-inactive.svg#symb">
|
||||||
{{else if and (eq .NodeStatus "online") (eq .Status "stopped")}}
|
{{else if and (eq .NodeStatus "online") (eq .Status "stopped")}}
|
||||||
<img id="power-btn" class="clickable" aria-label="start instance" role="button" tabindex=0 src="images/actions/instance/start.svg#symb">
|
<img id="power-btn" class="clickable" alt="start instance" role="button" tabindex=0 src="images/actions/instance/start.svg#symb">
|
||||||
<a href="{{.ConfigPath}}">
|
<a href="{{.ConfigPath}}">
|
||||||
<img id="configure-btn" class="clickable" aria-label="change configuration" src="images/actions/instance/config-active.svg#symb">
|
<img id="configure-btn" class="clickable" alt="change configuration" src="images/actions/instance/config-active.svg#symb">
|
||||||
</a>
|
</a>
|
||||||
<a href="{{.BackupsPath}}">
|
<a href="{{.BackupsPath}}">
|
||||||
<img id="backup-btn" class="clickable" aria-label="manage backups" src="images/actions/instance/backup-active.svg#symb">
|
<img id="backup-btn" class="clickable" alt="manage backups" src="images/actions/instance/backup-active.svg#symb">
|
||||||
</a>
|
</a>
|
||||||
<img id="console-btn" aria-disabled="true" role="none" src="images/actions/instance/console-inactive.svg#symb">
|
<img id="console-btn" alt="" aria-disabled="true" role="none" src="images/actions/instance/console-inactive.svg#symb">
|
||||||
<img id="delete-btn" class="clickable" aria-label="delete instance" role="button" tabindex=0 src="images/actions/instance/delete-active.svg#symb">
|
<img id="delete-btn" class="clickable" alt="delete instance" role="button" tabindex=0 src="images/actions/instance/delete-active.svg#symb">
|
||||||
{{else if and (eq .NodeStatus "online") (eq .Status "loading")}}
|
{{else if and (eq .NodeStatus "online") (eq .Status "loading")}}
|
||||||
<img id="power-btn" aria-disabled="true" role="none" src="images/actions/instance/loading.svg#symb">
|
<img id="power-btn" alt="" aria-disabled="true" role="none" src="images/actions/instance/loading.svg#symb">
|
||||||
<img id="configure-btn" aria-disabled="true" role="none" src="images/actions/instance/config-inactive.svg#symb">
|
<img id="configure-btn" alt="" aria-disabled="true" role="none" src="images/actions/instance/config-inactive.svg#symb">
|
||||||
<img id="backup-btn" aria-disabled="true" role="none" src="images/actions/instance/backup-inactive.svg#symb">
|
<img id="backup-btn" alt="" aria-disabled="true" role="none" src="images/actions/instance/backup-inactive.svg#symb">
|
||||||
<img id="console-btn" aria-disabled="true" role="none" src="images/actions/instance/console-inactive.svg#symb">
|
<img id="console-btn" alt="" aria-disabled="true" role="none" src="images/actions/instance/console-inactive.svg#symb">
|
||||||
<img id="delete-btn" aria-disabled="true" role="none" src="images/actions/instance/delete-inactive.svg#symb">
|
<img id="delete-btn" alt="" aria-disabled="true" role="none" src="images/actions/instance/delete-inactive.svg#symb">
|
||||||
{{else}}
|
{{else}}
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user