Skip to content

Commit

Permalink
small fixes in course materials
Browse files Browse the repository at this point in the history
  • Loading branch information
brunosmartin committed Nov 11, 2013
1 parent ebc9baf commit 18d59dc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion core/templates/admin/admin-base.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<body id="admin">

<!-- NAVBAR -->
<div id="main-navbar" class="navbar navbar-fixed-top navbar-inverse">
<div id="main-navbar" class="navbar navbar-inverse">
<div class="container">
<a class="navbar-brand" href="/">TIM Tec - ADMIN</a>
<ul class="nav navbar-nav pull-right">
Expand Down
5 changes: 0 additions & 5 deletions course_material/static/js/course_material/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ function CourseMaterialEditorCtrl($scope, $sce, $window, CourseMaterial, Course)
});
});

// $scope.course_material = CourseMaterial.get({course: $scope.course.id}, function (course_material){
// $scope.editor_text = course_material.text;
// });


$scope.save = function(){
$scope.course_material.text = $scope.editor_text;
$scope.course_material.$update({course: $scope.course.id});
Expand Down
4 changes: 1 addition & 3 deletions course_material/templates/course-material-admin.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,14 @@
{% endblock %}

{% block content %}
<script>
window.course_id = {{ course.pk }};</script>
<!-- CONTAINER -->
<div>
<!-- HEADER -->
<header id="main-header" class="container">
<div class="page-header">
<div class="row">
<div class="col-sm-9 col-lg-9">
<h1 class="top editable"><span contenteditable="true" ng-model="course.name"></span></h1>
<h1 class="top editable">{{ course.name }}</h1>
<h5><span class="icon-addable icon-plus-sign-alt"></span> Adicionar professores ao curso</h5>
</div>
<div class="col-sm-3 col-lg-3 textright">
Expand Down

0 comments on commit 18d59dc

Please sign in to comment.