Displaying 2 results from an estimated 2 matches for "network_type".
2009 Sep 23
0
[PATCH server] consolidated network & routing info ui's
...= @network.ip_addresses[0] if @network && @network.ip_addresses.size > 0 %>
+<%= render :partial => 'ip_address_form',
+ :locals => { :parent_type => 'network' } %>
+</div>
+
<script type="text/javascript">
$("#network_type").change(function () {
@@ -43,4 +53,9 @@ $("#network_type").change(function () {
$("#vlan_options").hide();
}
}).trigger('change');
+$('#network_form .form_heading').bind('click', function(e){
+ if(this === e.target){
+ $(this).toggleCla...
2010 Sep 03
1
[PATCH] Adding some control over usages in the network creation/edition form
...; %>
+ <button id="add_usage">Add usage</button>
+ </p>
+ <p>
+ <button id="delete_usages">Remove selected usages</button>
+ </p>
+ </div>
</div>
<div id="vlan_options"
@@ -43,4 +52,49 @@ $("#network_type").change(function () {
$("#vlan_options").hide();
}
}).trigger('change');
+
+$('#add_usage').click(function() {
+ var label = $('#network_usage_label').val();
+ if (label.length > 0) {
+ $.post(
+ "<%= usages_path :format => ...