Commit d10a77d8 by Bence Dányi

firewall_gui: show groups on host-details page

parent f665b9f0
......@@ -153,7 +153,7 @@ function EntityController(url) {
return true;
}
});
['vlan', 'vlangroup', 'host', 'firewall'].forEach(function(t) {
['vlan', 'vlangroup', 'host', 'hostgroup', 'firewall'].forEach(function(t) {
$('#' + t).typeahead({
source: function(query, process) {
$.ajax({
......
......@@ -48,8 +48,6 @@
<input type="text" class="input-xlarge" id="ipv6" ng-model="entity.ipv6" />
</div>
</div>
</div>
<div class="span5">
<div class="control-group">
<label class="control-label" for="owner">Owner</label>
<div class="controls">
......@@ -62,6 +60,8 @@
<input type="text" data-provide="typeahead" autocomplete="off" id="vlan" ng-model="entity.vlan.name" />
</div>
</div>
</div>
<div class="span5">
<div class="control-group">
<label class="control-label" for="description">Description</label>
<div class="controls">
......@@ -84,6 +84,21 @@
</div>
</div>
<div class="control-group">
<label class="control-label" for="hostgroups">Host groups</label>
<div class="controls">
<div class="well well-small">
<span class="label label-info" ng-repeat="group in entity.groups">
<a href="#/hostgroups/{{group.id}}">{{group.name}}</a>
<a href><i class="icon-remove"></i></a>
</span>
</div>
<div class="input-append">
<input class="span2" id="hostgroup" type="text">
<button class="btn" type="button">Add</button>
</div>
</div>
</div>
<div class="control-group">
<div class="controls">
<button type="submit" class="btn">Save (nem működik!)</button>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment