feat: bocal small
This commit is contained in:
parent
52e33f0caf
commit
141fe6f681
|
@ -163,7 +163,7 @@ class FilmInterface():
|
||||||
def communication(self):
|
def communication(self):
|
||||||
self.filmEnCours()
|
self.filmEnCours()
|
||||||
rep = input(
|
rep = input(
|
||||||
"Voulez-vous afficher \n 1: l'article du bocal du film courant \n 2: l'article de blog du film courant \n 3: le calendrier du film courant \n 4: la communication Facebook du film courant \n 5: l'email du film courant \n 6: le texte ics du film courant \n 7: le calendrier des films à partir du film courant \n 8: changer le film sélectionné \n 0: revenir au menu principal \n")
|
"Voulez-vous afficher \n 1: l'article du bocal du film courant \n 2: l'article de blog du film courant \n 3: le calendrier du film courant \n 4: la communication Facebook du film courant \n 5: l'email du film courant \n 6: le texte ics du film courant \n 7: le petit bout de bocal du film courant \n 8: le calendrier des films à partir du film courant \n 9: changer le film sélectionné \n 0: revenir au menu principal \n")
|
||||||
if rep == "1":
|
if rep == "1":
|
||||||
print(self.generateur_com.bocal(self.filmCharge))
|
print(self.generateur_com.bocal(self.filmCharge))
|
||||||
self.finAction()
|
self.finAction()
|
||||||
|
@ -183,9 +183,12 @@ class FilmInterface():
|
||||||
print(self.generateur_com.ics_text(self.filmCharge))
|
print(self.generateur_com.ics_text(self.filmCharge))
|
||||||
self.finAction()
|
self.finAction()
|
||||||
elif rep == "7":
|
elif rep == "7":
|
||||||
print(self.generateur_com.allCalendars(self.filmCharge))
|
print(self.generateur_com.bocal_small(self.filmCharge))
|
||||||
self.finAction()
|
self.finAction()
|
||||||
elif rep == "8":
|
elif rep == "8":
|
||||||
|
print(self.generateur_com.allCalendars(self.filmCharge))
|
||||||
|
self.finAction()
|
||||||
|
elif rep == "9":
|
||||||
self.selectFilm()
|
self.selectFilm()
|
||||||
elif rep == "0":
|
elif rep == "0":
|
||||||
self.menu()
|
self.menu()
|
||||||
|
|
|
@ -46,6 +46,9 @@ class GenerateurComm:
|
||||||
def bocal(self, film):
|
def bocal(self, film):
|
||||||
return self.build_com(film, 'bocal.tex', latex=True)
|
return self.build_com(film, 'bocal.tex', latex=True)
|
||||||
|
|
||||||
|
def bocal_small(self, film):
|
||||||
|
return self.build_com(film, 'bocal_small.tex', latex=True)
|
||||||
|
|
||||||
def blog(self, film):
|
def blog(self, film):
|
||||||
return self.build_com(film, 'blog.html.jinja2')
|
return self.build_com(film, 'blog.html.jinja2')
|
||||||
|
|
||||||
|
|
14
templates/bocal_small.tex
Normal file
14
templates/bocal_small.tex
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
\centerline{\date{\VAR{film.date.strftime('%A %d %B %Y')}, 20h30}}
|
||||||
|
\medskip
|
||||||
|
\centerline{Salle Dussane}
|
||||||
|
\medskip
|
||||||
|
\centerline{\emph{\Large \VAR{ film.nom } }}
|
||||||
|
\medskip
|
||||||
|
\centerline{\VAR{ film.realisateur } (\VAR{ film.annee }) }
|
||||||
|
\medskip
|
||||||
|
\centerline{\VAR{ film.formatCopie } . \VAR{ film.langST }}
|
||||||
|
\medskip
|
||||||
|
\centerline{\textit{\VAR{ film.duree } minutes}}
|
||||||
|
|
||||||
|
\medskip
|
||||||
|
\centerline{~\VAR{ prices.one_exte }€~/~\VAR{ prices.one_cof }~€ COF}
|
Loading…
Reference in a new issue