add responsabilité instru
This commit is contained in:
parent
fc4577c661
commit
80a7f99f28
3 changed files with 11 additions and 2 deletions
|
@ -72,8 +72,8 @@ class Calendar(LoginRequiredMixin, TemplateView):
|
|||
actu = Actu.objects.all()
|
||||
photo = Photo.objects.filter(cat="home").order_by("?").first()
|
||||
lToday = datetime.now()
|
||||
lYear = int(lToday.year)
|
||||
lMonth = int(lToday.month)
|
||||
lYear = self.pYear
|
||||
lMonth = self.pMonth
|
||||
lCalendarFromMonth = datetime(lYear, lMonth, 1)
|
||||
lCalendarToMonth = datetime(lYear, lMonth, monthrange(lYear, lMonth)[1])
|
||||
lEvents = Event.objects.filter(
|
||||
|
@ -172,6 +172,14 @@ class Calendar(LoginRequiredMixin, TemplateView):
|
|||
class Home(Calendar):
|
||||
lToday = datetime.now()
|
||||
|
||||
@property
|
||||
def pYear(self):
|
||||
return self.lToday.year
|
||||
|
||||
@property
|
||||
def pMonth(self):
|
||||
return self.lToday.month
|
||||
|
||||
|
||||
class ViewEvent(LoginRequiredMixin, TemplateView):
|
||||
template_name = "calendrier/view_event.html"
|
||||
|
|
BIN
instruments/static/documents/responsabilite_instru.pdf
Normal file
BIN
instruments/static/documents/responsabilite_instru.pdf
Normal file
Binary file not shown.
|
@ -6,6 +6,7 @@
|
|||
<div id="main">
|
||||
<section class="wrapper style1">
|
||||
<div class="inner">
|
||||
<h3>Si tu empruntes un instrument de la fanfare, découvre tes droits et tes devoirs dans <a target="blank" href="{% static 'documents/responsabilite_instru.pdf' %}" style="color:#e4522f">ce document</a></h3>
|
||||
<span class="image fit">
|
||||
{% if photo %}
|
||||
<img src="{{photo.image.url}}" alt="" /> <div style="position:absolute;z-index:1;right:0;bottom:0">
|
||||
|
|
Loading…
Reference in a new issue