mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 22:23:23 +00:00
pedagogy: basic display list of UV
This commit is contained in:
parent
5bf5d0277c
commit
ec33311715
@ -52,6 +52,7 @@ from counter.models import Customer, ProductType, Product, Counter, Selling, Stu
|
|||||||
from com.models import Sith, Weekmail, News, NewsDate
|
from com.models import Sith, Weekmail, News, NewsDate
|
||||||
from election.models import Election, Role, Candidature, ElectionList
|
from election.models import Election, Role, Candidature, ElectionList
|
||||||
from forum.models import Forum, ForumTopic
|
from forum.models import Forum, ForumTopic
|
||||||
|
from pedagogy.models import UV
|
||||||
|
|
||||||
|
|
||||||
class Command(BaseCommand):
|
class Command(BaseCommand):
|
||||||
@ -1078,3 +1079,34 @@ Welcome to the wiki page!
|
|||||||
start_date=friday + timedelta(hours=24 * 7 * i),
|
start_date=friday + timedelta(hours=24 * 7 * i),
|
||||||
end_date=friday + timedelta(hours=24 * 7 * i + 8),
|
end_date=friday + timedelta(hours=24 * 7 * i + 8),
|
||||||
).save()
|
).save()
|
||||||
|
|
||||||
|
# Create som data for pedagogy
|
||||||
|
|
||||||
|
UV(
|
||||||
|
code="PA00",
|
||||||
|
author=User.objects.get(id=0),
|
||||||
|
credit_type=settings.SITH_PEDAGOGY_UV_TYPE[3][0],
|
||||||
|
manager="Laurent HEYBERGER",
|
||||||
|
semester=settings.SITH_PEDAGOGY_UV_SEMESTER[3][0],
|
||||||
|
language=settings.SITH_PEDAGOGY_UV_LANGUAGE[0][0],
|
||||||
|
credits=5,
|
||||||
|
title="Participation dans une association étudiante",
|
||||||
|
objectives="* Permettre aux étudiants de réaliser, pendant un semestre, un projet culturel ou associatif et de le valoriser.",
|
||||||
|
program="""* Semestre précédent proposition d'un projet et d'un cahier des charges
|
||||||
|
* Evaluation par un jury de six membres
|
||||||
|
* Si accord réalisation dans le cadre de l'UV
|
||||||
|
* Compte-rendu de l'expérience
|
||||||
|
* Présentation""",
|
||||||
|
skills="""* Gérer un projet associatif ou une action éducative en autonomie:
|
||||||
|
* en produisant un cahier des charges qui -définit clairement le contexte du projet personnel -pose les jalons de ce projet -estime de manière réaliste les moyens et objectifs du projet -définit exactement les livrables attendus
|
||||||
|
* en étant capable de respecter ce cahier des charges ou, le cas échéant, de réviser le cahier des charges de manière argumentée.
|
||||||
|
* Relater son expérience dans un rapport:
|
||||||
|
* qui permettra à d'autres étudiants de poursuivre les actions engagées
|
||||||
|
* qui montre la capacité à s'auto-évaluer et à adopter une distance critique sur son action.""",
|
||||||
|
key_concepts="""* Autonomie
|
||||||
|
* Responsabilité
|
||||||
|
* Cahier des charges
|
||||||
|
* Gestion de projet""",
|
||||||
|
hours_THE=121,
|
||||||
|
hours_TE=4,
|
||||||
|
).save()
|
||||||
|
@ -670,6 +670,10 @@ class AnonymousUser(AuthAnonymousUser):
|
|||||||
def was_subscribed(self):
|
def was_subscribed(self):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
@property
|
||||||
|
def is_subscribed(self):
|
||||||
|
return False
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def subscribed(self):
|
def subscribed(self):
|
||||||
return False
|
return False
|
||||||
|
@ -185,7 +185,7 @@
|
|||||||
<a href="{{ url('matmat:search_clear') }}">{% trans %}Matmatronch{% endtrans %}</a>
|
<a href="{{ url('matmat:search_clear') }}">{% trans %}Matmatronch{% endtrans %}</a>
|
||||||
<a href="/launderette">{% trans %}Launderette{% endtrans %}</a>
|
<a href="/launderette">{% trans %}Launderette{% endtrans %}</a>
|
||||||
<a href="{{ url('core:file_list') }}">{% trans %}Files{% endtrans %}</a>
|
<a href="{{ url('core:file_list') }}">{% trans %}Files{% endtrans %}</a>
|
||||||
{# <a href="https://ae2.utbm.fr/uvs/">{% trans %}Pedagogy{% endtrans %}</a> #}
|
<a href="{{ url('pedagogy:guide') }}">{% trans %}Pedagogy{% endtrans %}</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="dropdown">
|
<div class="dropdown">
|
||||||
|
@ -43,6 +43,9 @@ class UV(models.Model):
|
|||||||
"""
|
"""
|
||||||
return user.is_in_group(settings.SITH_GROUP_PEDAGOGY_ADMIN_ID)
|
return user.is_in_group(settings.SITH_GROUP_PEDAGOGY_ADMIN_ID)
|
||||||
|
|
||||||
|
def can_be_viewed_by(self, user):
|
||||||
|
return user.is_subscribed
|
||||||
|
|
||||||
code = models.CharField(
|
code = models.CharField(
|
||||||
_("code"),
|
_("code"),
|
||||||
max_length=10,
|
max_length=10,
|
||||||
|
12
pedagogy/templates/pedagogy/guide.jinja
Normal file
12
pedagogy/templates/pedagogy/guide.jinja
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
|
||||||
|
{% extends "core/base.jinja" %}
|
||||||
|
|
||||||
|
{% block title %}
|
||||||
|
{% trans %}UV Guide{% endtrans %}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
{% for uv in object_list %}
|
||||||
|
{{ uv.code }}
|
||||||
|
{% endfor %}
|
||||||
|
{% endblock content %}
|
@ -54,12 +54,16 @@ class UVCommentDetailView(DetailView):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class UVListView(ListView):
|
class UVListView(CanViewMixin, ListView):
|
||||||
"""
|
"""
|
||||||
UV guide main page
|
UV guide main page
|
||||||
"""
|
"""
|
||||||
|
|
||||||
pass
|
# This is very basic and is prone to changment
|
||||||
|
|
||||||
|
model = UV
|
||||||
|
ordering = ["code"]
|
||||||
|
template_name = "pedagogy/guide.jinja"
|
||||||
|
|
||||||
|
|
||||||
class UVCommentReportCreateView(CreateView):
|
class UVCommentReportCreateView(CreateView):
|
||||||
|
Loading…
Reference in New Issue
Block a user