Commit ddb1242c authored by fv3rdugo's avatar fv3rdugo
Browse files

Fix list networks

parent b65cd0f7
......@@ -200,9 +200,6 @@ function networksPageC($scope, $http, $interval, request) {
$scope.list_networks= response.data;
});
}
$scope.action = function(target,action,machineId){
$http.get('/'+target+'/'+action+'/'+machineId+'.json');
};
//On load code
$scope.getNetworks();
$scope.updatePromise = $interval($scope.getNetworks,3000);
......
......@@ -189,8 +189,9 @@ any '/admin' => sub {
};
any '/admin/networks' => sub {
my $c = shift;
$c->render(template => '/main/networks');
my $c = shift;
push @{$c->stash->{js}}, '/js/admin.js';
$c->render(template => '/main/networks');
};
any '/admin/new_networks' => sub {
......@@ -211,6 +212,7 @@ sub networks {
all_domains => $c->param('all_domains'),
no_domains => $c->param('no_domains') )
}
push @{$c->stash->{js}}, '/js/admin.js';
$c->render(template => 'main/new_networks');
}
......
......@@ -33,14 +33,13 @@
</tr>
</thead>
<tbody>
<tr ng-repeat="networks in list_networks">
<td>{{networks.name}}</td>
<td>{{networks.address}}</td>
<td>{{networks.description}}</td>
</a>
</td>
</tr>
<tr ng-repeat="network in list_networks">
<td>{{ network.name }}</td>
<td>{{ network.address }}</td>
<td>{{ network.description }}</td>
<td>{{ network.all_domains }}</td>
<td>{{ network.no_domains }}</td>
</tr>
</tbody>
</table>
</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 to comment