Commit 42f74a54 by Bence Dányi

firewall_gui: angularjs framework added

parent 40762733
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
{% load staticfiles %} {% load staticfiles %}
{% get_current_language as lang %} {% get_current_language as lang %}
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en" ng-app="firewall">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>{% block title %}Firewall GUI{% endblock %}</title> <title>{% block title %}Firewall GUI{% endblock %}</title>
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
<![endif]--> <![endif]-->
<!-- This file store project specific CSS --> <!-- This file store project specific CSS -->
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.6/angular.min.js"></script>
<link href="{% static "css/project.css" %}" rel="stylesheet"> <link href="{% static "css/project.css" %}" rel="stylesheet">
<!-- Use this to quickly test CSS changes in a template, <!-- Use this to quickly test CSS changes in a template,
...@@ -57,11 +58,9 @@ ...@@ -57,11 +58,9 @@
<div class="container"> <div class="container">
<h1>{% block page_title %}Example Base Template{% endblock %}</h1> <h1>{% block page_title %}Szia bd, ez itt a tűzfaladmin!{% endblock %}</h1>
{% block content %} <div ng-view></div>
<p>Use this document as a way to quick start any new project.</p>
{% endblock %}
</div> <!-- /container --> </div> <!-- /container -->
...@@ -75,13 +74,6 @@ ...@@ -75,13 +74,6 @@
<script src="{% static "js/project.js" %}"></script> <script src="{% static "js/project.js" %}"></script>
<script> <script>
{% block extra_js %} {% block extra_js %}
$(function() {
$.get('/firewall/rules/',function(data) {
for(var i in data) {
console.log(data[i]);
}
});
})
{% endblock %} {% endblock %}
</script> </script>
</body> </body>
......
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