diff --git a/jm2l/__init__.py b/jm2l/__init__.py index b1c3ce3..4c5920c 100644 --- a/jm2l/__init__.py +++ b/jm2l/__init__.py @@ -70,6 +70,7 @@ def main(global_config, **settings): # HTML Routes - Public config.add_route('home', '/{year:(\d+/)?}') + config.add_route('edit_index', '/{year:\d+}/edit') config.add_route('presse', '/{year:\d+}/dossier-de-presse') config.add_route('edit_presse', '/{year:\d+}/dossier-de-presse/edit') config.add_route('programme', '/{year:\d+}/le-programme') diff --git a/jm2l/forms.py b/jm2l/forms.py index e7e6551..70f68ec 100644 --- a/jm2l/forms.py +++ b/jm2l/forms.py @@ -75,6 +75,11 @@ class DossPresse(MyBaseForm): doss_presse = TextAreaField('Dossier de Presse', [validators.optional(), validators.Length(max=1000000)], filters=[strip_filter]) +class IndexForm(MyBaseForm): + year_uid = HiddenField() + description = TextAreaField('Index', [validators.optional(), validators.Length(max=1000000)], + filters=[strip_filter]) + class TiersMember(MyBaseForm): class Meta: csrf = False diff --git a/jm2l/static/css/jm2l.css b/jm2l/static/css/jm2l.css index e47fa75..60f22ba 100644 --- a/jm2l/static/css/jm2l.css +++ b/jm2l/static/css/jm2l.css @@ -205,8 +205,8 @@ a { border: 1px solid #d4d4d4; } .ShowEntities td img { - width: 60px; - height: 60px; + width: 100%; + height: 100%; } .ShowEntities td:hover { diff --git a/jm2l/templates/NewIndex.mako b/jm2l/templates/NewIndex.mako index 6385003..29bbf5a 100644 --- a/jm2l/templates/NewIndex.mako +++ b/jm2l/templates/NewIndex.mako @@ -49,8 +49,16 @@ % else: + % if request.user.Staff: + Editer cette page - + % endif Le programme des évenements ${year} % endif +