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()
|
actu = Actu.objects.all()
|
||||||
photo = Photo.objects.filter(cat="home").order_by("?").first()
|
photo = Photo.objects.filter(cat="home").order_by("?").first()
|
||||||
lToday = datetime.now()
|
lToday = datetime.now()
|
||||||
lYear = int(lToday.year)
|
lYear = self.pYear
|
||||||
lMonth = int(lToday.month)
|
lMonth = self.pMonth
|
||||||
lCalendarFromMonth = datetime(lYear, lMonth, 1)
|
lCalendarFromMonth = datetime(lYear, lMonth, 1)
|
||||||
lCalendarToMonth = datetime(lYear, lMonth, monthrange(lYear, lMonth)[1])
|
lCalendarToMonth = datetime(lYear, lMonth, monthrange(lYear, lMonth)[1])
|
||||||
lEvents = Event.objects.filter(
|
lEvents = Event.objects.filter(
|
||||||
|
@ -172,6 +172,14 @@ class Calendar(LoginRequiredMixin, TemplateView):
|
||||||
class Home(Calendar):
|
class Home(Calendar):
|
||||||
lToday = datetime.now()
|
lToday = datetime.now()
|
||||||
|
|
||||||
|
@property
|
||||||
|
def pYear(self):
|
||||||
|
return self.lToday.year
|
||||||
|
|
||||||
|
@property
|
||||||
|
def pMonth(self):
|
||||||
|
return self.lToday.month
|
||||||
|
|
||||||
|
|
||||||
class ViewEvent(LoginRequiredMixin, TemplateView):
|
class ViewEvent(LoginRequiredMixin, TemplateView):
|
||||||
template_name = "calendrier/view_event.html"
|
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">
|
<div id="main">
|
||||||
<section class="wrapper style1">
|
<section class="wrapper style1">
|
||||||
<div class="inner">
|
<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">
|
<span class="image fit">
|
||||||
{% if photo %}
|
{% if photo %}
|
||||||
<img src="{{photo.image.url}}" alt="" /> <div style="position:absolute;z-index:1;right:0;bottom:0">
|
<img src="{{photo.image.url}}" alt="" /> <div style="position:absolute;z-index:1;right:0;bottom:0">
|
||||||
|
|
Loading…
Reference in a new issue