Changeset 43:af62c7b3e074
- Timestamp:
- 08/07/08 00:13:20 (4 months ago)
- Author:
- Jeffrey Gelens <jeffrey@…>
- Branch:
- default
- Message:
-
Interface updates
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r24
|
r43
|
|
| 65 | 65 | |
| 66 | 66 | }); |
| | 67 | |
| | 68 | function check_monitors(server_id) { |
| | 69 | var element = $('input.server'+server_id); |
| | 70 | if (element.attr('checked') { |
| | 71 | element.removeAttr('checked'); |
| | 72 | } |
| | 73 | else { |
| | 74 | element.attr('checked', 'checked'); |
| | 75 | } |
| | 76 | return false; |
| | 77 | } |
-
|
r42
|
r43
|
|
| 81 | 81 | {% if server %}<input type="hidden" name="server" value="{{ server.id }}" />{% endif %} |
| 82 | 82 | <select name="action"> |
| 83 | | <option disabled="disabled">---</option> |
| | 83 | <option selected="selected" disabled="disabled">---</option> |
| 84 | 84 | <option value="monitor">Enable Monitors</option> |
| 85 | 85 | <option value="unmonitor">Disable Monitors</option> |
| … |
… |
|
| 94 | 94 | {% regroup monitors by server as server_list %} |
| 95 | 95 | {% for monitor_list in server_list %} |
| 96 | | {% if not server %} <h3>{{ monitor_list.grouper }}</h3> {% endif %} |
| | 96 | {% if not server %} |
| | 97 | <h3><a href="{{ monitor_list.grouper.get_absolute_url }}">{{ monitor_list.grouper }}</a> |
| | 98 | </h3> |
| | 99 | <p><a href="#" onclick="check_monitors({{ monitor_list.grouper.id }});">(un)check all</a></p> |
| | 100 | {% endif %} |
| 97 | 101 | {% for monitor in monitor_list.list %} |
| 98 | 102 | {% ifchanged monitor.groupname %}<br />{% endifchanged %} |
| 99 | 103 | <div class="{{ monitor|monitorstatus }}"> |
| 100 | | <input type="checkbox" name="monitors" value="{{ monitor.id }}" /> |
| | 104 | <input type="checkbox" class="server{{ monitor_list.grouper.id }}" name="monitors" value="{{ monitor.id }}" /> |
| 101 | 105 | <a href="#" id="{{ monitor.id}}" class="monitor_link">{{ monitor.name }}</a> |
| 102 | 106 | </div> |