{{extend 'layout.html'}}
{{=T('No virtual machines found.')}} {{else:}}
| {{=T('Name')}} | {{=T('State')}} | {{=T('Start/Stop')}} | {{=T('VNC address')}} | {{=T('VNC port')}} | {{=T('Delete')}} |
|---|---|---|---|---|---|
| {{=stroje[i]}} | {{stav = '' if info[stroje[i]]['database_status']!='READY':}} {{ for j in infoDB: if j['domain']==stroje[i]: response.write(j['status']) stav = j['status'] if stav=='MANUAL_INSTALL': response.write(' ') response.write(A('(' + T('finish') + ')', _href='javascript:potvrzeni("' + T('Sure you want to finish manual installation? Virtual machine will be stopped (if running) and CD image will be unmounted.') + '", "' + URL('projekt_stroj_manual_finish/' + stroje[i]) + '")', _onMouseover="return hidestatus()")) pass pass pass }} {{else:}} {{=T(info[stroje[i]]['libvirt_status'])}} {{pass}} | {{ if info[stroje[i]]['libvirt_status']=='RUNNING': akce = 'Stop' elif info[stroje[i]]['libvirt_status']=='STOPPED': akce = 'Start' pass }} {{ if info[stroje[i]]['libvirt_status']=='UNDEFINED': response.write(T('please contact your teacher')) elif stav=='READY_TO_INSTALL': response.write(T('N/A')) else: response.write(A(T(akce), _href='zmena_stavu_stroje/'+stroje[i])) pass}} | {{if info[stroje[i]]['libvirt_status']=='RUNNING': response.write(info[stroje[i]]['vnc_address']) else: response.write(T('N/A')) pass}} | {{if info[stroje[i]]['libvirt_status']=='RUNNING': response.write(info[stroje[i]]['vnc_port']) else: response.write(T('N/A')) pass}} | {{if stav=='READY_TO_INSTALL': response.write(T('N/A')) else: response.write(A(T('Delete'), _href='javascript:potvrzeni("' + T('Sure you want to delete virtual machine') + ' \'' + stroje[i] + '\'? ' + T('All data and settings will be erased!') + '", "' + URL('projekt_stroj_smazat/' + stroje[i]) + '")', _onMouseover="return hidestatus()"))}} {{pass}} |