{% load i18n %}
{% load get_current_class %}
<div class="course-details">
<div><span class="label">{% trans 'By' %}:</span>
{% for course_professor in course.course.course_authors.all %}
<a class="course-instructor" {% if course_professor.user %}href="{% url 'profile' course_professor.user.username %}"{% endif %}>{{ course_professor.get_name }}</a>
{% endfor %}
</div>
{% get_current_class course as current_class %}
<div>{% if current_class.assistant %}<span class="label">{% trans 'Assistant Professor' %}:</span> {{ current_class.assistant.get_full_name }} {% endif %} {% if not course.default_class %} <span class="label">{% trans 'Class' %}:</span> {{ current_class.name }} {% endif %}</div>
</div>
......@@ -18,9 +18,9 @@
<div class="col-xs-12 col-sm-6 col-md-5">
<!-- COURSE-SECTION-NAV -->
<nav class="course-sections {% if user|is_assistant_or_coordinator:course %}admin-menu{% endif %}">
<a href="{% url 'courses_legacy:course_intro' course.slug %}" class="intro {% if '/intro/' in request.path %}active{% endif %}">Início do<br>módulo</a>
<a href="{% url 'courses_legacy:resume_course' course.slug %}" class="resume {% if '/lesson/' in request.path %}active{% endif %}">Continuar<br>módulo</a>
<a href="{% url 'courses_legacy:user_course_notes' course.slug %}" class="notes {% if '/mynotes/' in request.path %}active{% endif %}">Anotações<br>do módulo</a>
<a href="{% url 'courses_legacy:course_intro' course.slug %}" class="intro {% if '/intro/' in request.path %}active{% endif %}">Início do<br>curso</a>
<a href="{% url 'courses_legacy:resume_course' course.slug %}" class="resume {% if '/lesson/' in request.path %}active{% endif %}">Continuar<br>curso</a>
<a href="{% url 'courses_legacy:user_course_notes' course.slug %}" class="notes {% if '/mynotes/' in request.path %}active{% endif %}">Anotações<br>do curso</a>
<a href="{% url 'courses_legacy:course_material' course.slug %}" class="materials {% if '/material/' in request.path %}active{% endif %}">Menu de<br>referências</a>
{% if user|is_assistant_or_coordinator:course %}
<div class="dropdown">
......@@ -31,7 +31,7 @@
<li role="presentation"><a role="menuitem" tabindex="-1" href="{% url 'courses_legacy:reports' course.slug %}">Relatórios</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="{% url 'courses_legacy:classes' course.slug %}">Turmas</a></li>
{% if user.is_superuser or user|is_course_coordinator:course %}
<li role="presentation"><a role="menuitem" tabindex="-1" href="{% url 'courses_legacy:administration.edit_course' course.id %}">Editar módulo</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="{% url 'courses_legacy:administration.edit_course' course.id %}">Editar curso</a></li>
<!--<li role="presentation"><a role="menuitem" tabindex="-1" href="{% url 'courses_legacy:course-evaluations' course.slug %}">{% trans 'Evaluations' %}</a></li>-->
{% endif %}
</ul>
......
......@@ -5,7 +5,7 @@
{% if in_admin %}
<div class="secondary-page-header">
<h3><i class="fa fa-angle-double-right"></i> Autores do módulo</h3>
<h3><i class="fa fa-angle-double-right"></i> Autores do curso</h3>
</div>
<div class="instructors organizing-instructors" ng-show="organizingInstructors" sortable="courseProfessors" on-update="repositionInstructors()">
......
......@@ -5,7 +5,7 @@
<div class="modal-professor">
<div class="modal-header">
<button type="button" class="close" ng-click="cancel()"><i class="fa fa-times" aria-hidden="true"></i> fechar</button>
<h4 class="modal-title">{% trans 'Adicionar/editar autor(a) do módulo' %}</h4>
<h4 class="modal-title">Adicionar/editar autor(a) do curso</h4>
</div>
<div class="modal-body">
......
{% load i18n %}
<!-- HEADER -->
<header class="main-header">
<!-- PAGE-HEADER -->
<div class="page-header container">
<!-- ROW -->
<div class="row">
<div class="col-sm-8 col-md-9 col-xs-12">
<h1><i class="fa fa-angle-double-right"></i> {{course.name}}</h1>
{% include "_course-details-inline.html" with course=course %}
</div>
<div class="col-sm-4 col-md-3 col-xs-12 textright">
{% if user_is_enrolled and not course.has_started %}
<div class="has-tooltip js-login-required uppercase"
href="#"
data-toggle="tooltip"
data-placement="bottom"
data-original-title="{% blocktrans with start_date=course.start_date|date:"d/m/Y" %} This course starts on {{ start_date }} and you are already subscribed{% endblocktrans %}."
title="{% blocktrans with start_date=course.start_date|date:"d/m/Y" %} This course starts on {{ start_date }} and you are already subscribed{% endblocktrans %}.">
<button class="btn btn-lg btn-block btn-default" ng-disabled="true">Ir para o Curso</button>
</div>
{% else %} {# user is not enrolled #}
{% if course.has_started %}
<a href="{% url 'courses_legacy:enroll_course' course.slug %}" class="btn btn-lg btn-info col-xs-12 js-login-required uppercase">Ir para o Curso</a>
{% else %}
<a href="{% url 'courses_legacy:enroll_course' course.slug %}" class="btn btn-lg btn-info col-xs-12 js-login-required uppercase">Inscreva-se</a>
{% endif %}
{% endif %}
</div>
</div>
<!-- END ROW -->
</div>
<!-- END PAGE-HEADER -->
</header>
<!-- END HEADER -->
......@@ -3,10 +3,10 @@
<div class="lesson-list-dropdown">
<button type="button" class="dropdown-toggle" data-toggle="dropdown">
<!--<span class="lesson-breadcrumb">-->
<!--você está no <b>Capítulo 2 de 5 | Unidade 2 de 3:</b>-->
<!--você está na <b>Aula 2 de 5 | Unidade 2 de 3:</b>-->
<!--</span>-->
<span class="lesson-breadcrumb">
você está no Capítulo:
você está na Aula:
</span>
<span class="lesson-name">
<b>{{ lesson.name }}</b>
......@@ -14,7 +14,7 @@
</button>
<ul class="dropdown-menu">
{% for list_lesson in lesson.course.public_lessons %}
<li><a href="{% url 'courses_legacy:lesson' list_lesson.course.slug list_lesson.slug %}"><b>Capítulo {{ forloop.counter }} de {{ lesson.course.public_lessons|length }}: </b> {{ list_lesson.name }}</a></li>
<li><a href="{% url 'courses_legacy:lesson' list_lesson.course.slug list_lesson.slug %}"><b>Aula {{ forloop.counter }} de {{ lesson.course.public_lessons|length }}: </b> {{ list_lesson.name }}</a></li>
{% endfor %}
</ul>
</div>
......@@ -23,7 +23,7 @@
<!-- LESSON NAVIGATION FOR PHONE -->
<div class="lesson-units-mobile visible-xs">
<span class="lesson-breadcrumb">
capítulo
aula
</span>
<select onchange="document.location=this.value" class="form-control">
{% for list_lesson in lesson.course.public_lessons %}
......
{% load i18n %}
<script type="text/ng-template" id="courseCompleteModal.html" xmlns="http://www.w3.org/1999/html">
<div class="modal-header">
<button type="button" class="close" ng-click="cancel()" aria-hidden="true">&times;</button>
<h4 class="modal-title" id="myModalLabel">
{% trans "Course Complete" %}</h4>
</div>
<div class="modal-body">
{% verbatim %}
<div class="row">
<div class="col-md-6">
<h2>Parabéns por chegar ao fim do curso {{ cs.name }}!</h2>
<p ng-show="cs.can_emmit_receipt && cs.user.is_profile_filled">
Você concluiu {{ cs.percent_progress }}% do curso.
<span ng-show="cs.can_emmit_receipt">
Clique abaixo para acessar seu comprovante. Ele pode ser visualizado por qualquer pessoa
através do link de acesso.
</span >
<dd ng-show="cs.can_emmit_receipt && cs.user.is_profile_filled">
<a href="/certificate/{{ receipt.link_hash }}" class="btn btn-success">Ver comprovante</a>
</dd>
</p>
<p ng-show="!cs.user.is_profile_filled && cs.can_emmit_receipt">
Para validar seu comprovante, você precisa preencher seu perfil.
<a href="/profile/edit?next=/certificate/{{ receipt.link_hash }}">
{% endverbatim %}
{% trans 'Clique aqui para editá-lo' %}
{% verbatim %}
</a>.
</p>
<p ng-hide="cs.can_emmit_receipt">
<span>Infelizmente, seu comprovante não pode ser emitido:</span>
</p>
<p ng-hide="cs.course_finished">
Para concluir o curso, você precisa finalizar {{ cs.min_percent_to_complete }}% das atividades e
você concluiu {{ cs.percent_progress }}%
</p>
<p ng-hide="cs.course_finished">
Finalize as atividades restantes para que seu comprovante possa ser emitido!
</p>
</div>
<!--<div class="col-md-6">-->
<!--<span class="text-danger"><i class="glyphicon glyphicon-exclamation-sign"></i> Importante</span>-->
<!--<p>-->
<!--O <strong>comprovante</strong> é a prova de que você concluiu a carga mínima necessária do curso, designada pelos instrutores. Porém, ele <strong>não</strong> possui a validade de um <strong>certificado</strong>.-->
<!--</p>-->
<!--<p ng-show="cs.certificate.processes.length">-->
<!--Processo de certificação em andamento, para verificar o status do processo, clique-->
<!--{% endverbatim %}-->
<!--<a href="user_courses/#my-certificates">aqui</a>-->
<!--{% verbatim %}-->
<!--</p>-->
<!--<p ng-show="cs.can_emmit_receipt && !cs.certificate.processes.length">-->
<!--Para obter um certificado, é necessário ser aprovado na avaliação do curso. Peça a emissão-->
<!--do certificado clicando abaixo.-->
<!--</p>-->
<!--<p ng-show="cs.can_emmit_receipt && !cs.user.is_profile_filled" class="alert alert-danger">-->
<!--Você precisa preencher seu perfil antes de entrar em um processo de certificação-->
<!--</p>-->
<!--&lt;!&ndash; TODO trocar o link pra emissão de certificado &ndash;&gt;-->
<!--<div ng-show="cs.can_emmit_receipt && cs.user.is_profile_filled" class="text-right">-->
<!--<a ng-hide="cs.certificate.processes.length"-->
<!--ng-click="createCertificationProcess()" class="btn btn-success">-->
<!--{% endverbatim %}-->
<!--Pedir certificado-->
<!--{% verbatim %}-->
<!--</a>-->
<!--</div>-->
<!--</div>-->
</div>
{% endverbatim %}
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger" ng-click="cancel()">{% trans "Close" %}</button>
</div>
</script>
......@@ -63,7 +63,7 @@ ng-app="certification"
{% verbatim %}
<select ng-model="form_filters.course" class="form-control"
ng-options="c.id as c.name for c in courses">
<option value="">Todos os Módulos</option>
<option value="">Todos os Cursos</option>
</select>
{% endverbatim %}
</div>
......@@ -137,7 +137,7 @@ ng-app="certification"
{% verbatim %}
<select ng-model="filters.course" class="form-control"
ng-options="c.id as c.name for c in courses">
<option value="">Todos os Módulos</option>
<option value="">Todos os Cursos</option>
</select>
{% endverbatim %}
</div>
......
......@@ -3,16 +3,16 @@
{% 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 %}
ng-app="courses"
ng-app="admin.courses"
{% endblock %}
{% block wrapper_classes %}
......@@ -25,19 +25,19 @@ wrapper-course-lesson
<div class="modal-content">
<div class="modal-header">
<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>
<h4 class="modal-title" id="class-modal-label">Nome do novo curso</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">
<label for="course-name" class="sr-only">Nome do novo módulo</label>
<input ng-model="new_course_name" id="course-name" name="name" class="form-control" placeholder="Nome do novo módulo">
<label for="course-name" class="sr-only">Nome do novo curso</label>
<input ng-model="new_course_name" id="course-name" name="name" class="form-control" placeholder="Nome do novo curso">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
<button type="submit" ng-disabled="!new_course_name" class="btn btn-primary">Criar módulo</button>
<button type="submit" ng-disabled="!new_course_name" class="btn btn-primary">Criar curso</button>
</div>
</form>
</div>
......@@ -50,24 +50,24 @@ wrapper-course-lesson
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" ng-click="cancel()"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
<h4 class="modal-title" id="class-modal-label">Selecione o arquivo de módulo para importar</h4>
<h4 class="modal-title" id="class-modal-label">Selecione o arquivo de curso para importar</h4>
</div>
<form role="form" method="post">
{% csrf_token %}
<div class="modal-body">
<div class="form-group">
<label for="course-import-file" class="sr-only">Selecione o arquivo de módulo para importar</label>
<label for="course-import-file" class="sr-only">Selecione o arquivo de curso para importar</label>
<input file
ng-model="course_import_file"
id="course-import-file"
name="course-import-file"
class="form-control"
placeholder="Arquivo de módulo para importar...">
placeholder="Arquivo de curso para importar...">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" ng-click="cancel()">Cancelar</button>
<button type="button" class="btn btn-primary" ng-click="import_course()">Importar módulo</button>
<button type="button" class="btn btn-primary" ng-click="import_course()">Importar curso</button>
</div>
</form>
</div>
......@@ -76,8 +76,8 @@ wrapper-course-lesson
<!-- ACTIONS -->
<div class="actions-menu" fixed-bar>
<div class="container-fluid">
<a class="btn btn-sm btn-primary btn-inverse add" data-toggle="modal" data-target="#new-course-modal">Criar módulo</a>
<a class="btn btn-sm btn-primary btn-inverse download" ng-click="import_course_modal()">Importar módulo</a>
<a class="btn btn-sm btn-primary btn-inverse add" data-toggle="modal" data-target="#new-course-modal">Criar curso</a>
<a class="btn btn-sm btn-primary btn-inverse download" ng-click="import_course_modal()">Importar curso</a>
</div>
</div>
<!-- END ACTIONS -->
......@@ -86,7 +86,7 @@ wrapper-course-lesson
<div class="courses-content page container-fluid">
<!-- HEADER -->
<header class="page-header">
<h3>Módulos</h3>
<h3>Cursos</h3>
</header>
<!-- END HEADER -->
......@@ -133,7 +133,7 @@ wrapper-course-lesson
<div class="header">
<h4 class="course-title">
{% verbatim %}
<a ng-href="/admin/courses/{{ course.id }}" title="{{ course.name }}">{{ course.name }}</a>
<a ng-href="/legacy/admin/courses/{{ course.id }}" title="{{ course.name }}">{{ course.name }}</a>
{% endverbatim %}
</h4>
......@@ -162,16 +162,16 @@ wrapper-course-lesson
<button class="btn btn-link btn-sm show-all"
ng-click="loadLessons(course);showLessons=!showLessons"
ng-class="showLessons ? 'hide-all': 'show-all'">
<span ng-if="!showLessons">mostrar capítulos</span>
<span ng-if="showLessons">esconder capítulos</span>
<span ng-if="!showLessons">mostrar aulas</span>
<span ng-if="showLessons">esconder aulas</span>
</button>
<div class="lesson-list" ng-show="showLessons">
<div ng-hide="course.lessons.$resolved">
<span>Carregando lista de capítulos...</span>
<span>Carregando lista de aulas...</span>
</div>
<div ng-show="course.lessons.length == 0">
<span>Carregando lista de capítulos...</span>
<span>Carregando lista de aulas...</span>
</div>
<div ng-show="course.lessons">
<div class="lesson" ng-repeat="lesson in course.lessons">
......@@ -179,7 +179,7 @@ wrapper-course-lesson
<span class="label label-warning" ng-if="lesson.status!='published'">Rascunho</span>
{% verbatim %}
<a ng-href="/admin/courses/{{ course.id }}/lessons/{{lesson.id}}" ng-bind="lesson.name" class="lesson-name"></a>
<a ng-href="legacy/admin/courses/{{ course.id }}/lessons/{{lesson.id}}" ng-bind="lesson.name" class="lesson-name"></a>
{% endverbatim %}
</div>
</div>
......@@ -189,10 +189,10 @@ wrapper-course-lesson
<!-- END COURSE -->
<div class="row" ng-show="courseList.$resolved && filteredList.length === 0">
<p class="textcenter">Nenhum módulo encontrado</p>
<p class="textcenter">Nenhum curso encontrado</p>
</div>
<div class="row" ng-show="!courseList.$resolved">
<p class="textcenter">Carregando módulos...<i class="loading fa fa-refresh fa-spin"></i></p>
<p class="textcenter">Carregando cursos...<i class="loading fa fa-refresh fa-spin"></i></p>
</div>
</section>
<!-- END ALL-COURSES -->
......
......@@ -141,7 +141,7 @@ wrapper-course-lesson
{% endverbatim %}
<div class="col-md-2 col-sm-3 col-xs-12 textright">
<span class="btn btn-sm btn-primary" ng-click="show_user_progress_details(user);showLessons=!showLessons">
Mostrar capítulos
Mostrar aulas
<i class="fa" ng-class="{'fa fa-caret-down':!showLessons,'fa fa-caret-up':showLessons}"></i>
</span>
</div>
......
This diff is collapsed.
......@@ -27,7 +27,7 @@
<div class="row">
<div class="col-xs-12 col-md-6">
<label>Grupos de usuários</label>
<ui-select multiple theme="bootstrap" class="form-control" ng-model="contract.groups" title="Escolha um ou mais módulos">
<ui-select multiple theme="bootstrap" class="form-control" ng-model="contract.groups" title="Escolha um ou mais cursos">
<ui-select-match placeholder="Escolha um ou mais grupos de usuários">{{ $item.name }}</ui-select-match>
<ui-select-choices repeat="group in groups | filter: {name: $select.search} track by group.id">
<div ng-bind-html="group.name | highlight: $select.search"></div>
......@@ -37,7 +37,7 @@
<div class="col-xs-12 col-md-6">
<label>Turmas</label>
<ui-select multiple theme="bootstrap" class="form-control" ng-model="contract.classes" title="Escolha um ou mais módulos">
<ui-select multiple theme="bootstrap" class="form-control" ng-model="contract.classes" title="Escolha um ou mais cursos">
<ui-select-match placeholder="Escolha uma ou mais turmas">{{ $item.name }}</ui-select-match>
<ui-select-choices repeat="klass in classes | filter: {name: $select.search} track by klass.id">
<div ng-bind-html="klass.name | highlight: $select.search"></div>
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.