projects
/
invirt/packages/invirt-web.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Show power buttons as icons
[invirt/packages/invirt-web.git]
/
code
/
templates
/
list.tmpl
diff --git
a/code/templates/list.tmpl
b/code/templates/list.tmpl
index
a72c558
..
e9200dd
100644
(file)
--- a/
code/templates/list.tmpl
+++ b/
code/templates/list.tmpl
@@
-113,8
+113,12
@@
$errorRow('cdrom', $err)
<input type="hidden" name="back" value="list"/>
<input type="hidden" name="machine_id"
value="$machine.machine_id"/>
<input type="hidden" name="back" value="list"/>
<input type="hidden" name="machine_id"
value="$machine.machine_id"/>
-<input type="submit" class="button" name="action" value="#slurp
+<input type="image" class="power #slurp
+#if $machine.uptime then 'on' else 'off'
+" name="action" value="#slurp
#if $machine.uptime then 'Power off' else 'Power on'
#if $machine.uptime then 'Power off' else 'Power on'
+" src="#slurp
+#if $machine.uptime then 'static/power_button_on.png' else 'static/power_button_off.png'
"/>
</form>
</td>
"/>
</form>
</td>