Revision 0efc6389 ui/templates/machines_list.html

b/ui/templates/machines_list.html
11 11
            <a id="action-destroy">{% trans "Destroy" %}</a>
12 12
            <br />
13 13
            <a id="action-details">{% trans "Show Details" %}</a>
14
            <a id="action-group">{% trans "Add to group" %}</a>
14
            {% comment %}<a id="action-group">{% trans "Add to group" %}</a>{% endcomment %}
15 15
            <br />
16 16
            <a id="action-console">{% trans "Console" %}</a>
17
            <a id="action-connect">{% trans "Connect" %}</a>
17 18
            <br />
18 19
            {% comment %}
19 20
            <a id="action-attach">{% trans "Attach disk" %}</a>
20 21
            <a id="action-detach">{% trans "Detach disk" %}</a>
21 22
            <br />
22
            <a id="action-connect">{% trans "Connect to network" %}</a>
23
            <a id="action-disconnect">{% trans "Disconnect from net" %}</a>
23
            <a id="action-network-connect">{% trans "Connect to network" %}</a>
24
            <a id="action-network-disconnect">{% trans "Disconnect from net" %}</a>
24 25
            {% endcomment %}
25 26
        </div>
26 27
        <table class="list-machines" style="display: none">
......
102 103
//a key represents an action, while values are lists with permitted states to which the action can be applied
103 104
var actions = { 'reboot':        ['UNKOWN', 'ACTIVE', 'REBOOT', 'multiple'],
104 105
                'shutdown':      ['UNKOWN', 'ACTIVE', 'REBOOT', 'multiple'],
105
                //'connect':       ['UNKOWN', 'ACTIVE'],
106
                //'disconnect':    ['UNKOWN', 'ACTIVE', 'network'],
106
                'connect':       ['UNKOWN', 'ACTIVE'],
107
                //'network-connect':       ['UNKOWN', 'ACTIVE'],
108
                //'network-disconnect':    ['UNKOWN', 'ACTIVE', 'network'],
107 109
                'console':       ['UNKOWN', 'ACTIVE', 'multiple'],
108 110
                'details':       ['UNKOWN', 'ACTIVE', 'REBOOT', 'STOPPED'],
109 111
                'start':         ['UNKOWN', 'STOPPED', 'multiple'],
110 112
                'destroy':       ['UNKOWN', 'ACTIVE', 'STOPPED', 'REBOOT', 'ERROR', 'BUILD', 'multiple'],
111
                'group':         ['UNKOWN', 'ACTIVE', 'STOPPED', 'REBOOT','multiple'],
113
                //'group':         ['UNKOWN', 'ACTIVE', 'STOPPED', 'REBOOT','multiple'],
112 114
               };
113 115

  
114 116
// on checkbox click, update the actions

Also available in: Unified diff