Commit 4b34e924 authored by Bruno Martin's avatar Bruno Martin
Browse files

fix url name resolution; fix loadin angularjs app

parent 792e2342
......@@ -3,12 +3,12 @@
{% load i18n %}
{% block js %} {{block.super}}
<script type="text/javascript" src="{% static 'js/courses/app.js' %}"></script>
<script type="text/javascript" src="{% static 'js/courses/filters.js' %}"></script>
<script type="text/javascript" src="{% static 'js/courses/controllers.js' %}"></script>
<script type="text/javascript" src="{% static 'js/factories/timtec-models.js' %}"></script>
<script type="text/javascript" src="{% static 'js/directives/fixedBar.js' %}"></script>
<script type="text/javascript" src="{% static 'js/directives/file.js' %}"></script>
<script type="text/javascript" src="{% static 'js/admin/courses/app.js' %}"></script>
<script type="text/javascript" src="{% static 'js/admin/courses/filters.js' %}"></script>
<script type="text/javascript" src="{% static 'js/admin/courses/controllers.js' %}"></script>
<script type="text/javascript" src="{% static 'js/admin/factories/timtec-models.js' %}"></script>
<script type="text/javascript" src="{% static 'js/admin/directives/fixedBar.js' %}"></script>
<script type="text/javascript" src="{% static 'js/admin/directives/file.js' %}"></script>
{% endblock %}
{% block body_attrs %}
......@@ -27,7 +27,7 @@ wrapper-course-lesson
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Cancelar</span></button>
<h4 class="modal-title" id="class-modal-label">Nome do novo módulo</h4>
</div>
<form role="form" novalidate method="post" action="{% url 'administration.new_course' %}">
<form role="form" novalidate method="post" action="{% url 'courses_legacy:administration.new_course' %}">
{% csrf_token %}
<div class="modal-body">
<div class="form-group">
......
......@@ -74,12 +74,14 @@
{% analytics %}
</head>
<body
<body {% if in_admin %}id="admin"{% else %}id="notadmin"{% endif %}
{% spaceless %}{% block body_attrs %}ng-app{% endblock %}{% endspaceless %}
class="{% if user.is_authenticated %}logged{% else %}anonymous{% endif %}">
<div class="wrapper wrapper-bg {% spaceless %}{% block wrapper_classes %}{% endblock %}{% endspaceless %}">
{% block content %}
{% endblock %}
</div>
</div>
</body>
</html>
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