Skip to content

Commit

Permalink
fix layout
Browse files Browse the repository at this point in the history
  • Loading branch information
cekk committed Nov 22, 2024
1 parent 311d5a7 commit 4ca9f9c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
12 changes: 7 additions & 5 deletions rer/bandi/browser/bando.pt
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,13 @@
</div>
</td>
</tr>
<tr tal:define="finanziato context/finanziato" tal:condition="finanziato">
<td colspan="2">
<strong>
<span i18n:translate="finanziatori_label">Financed by EU programmes</span>
</strong>
</td>
</tr>
</table>
<table class="vertical listing tableRight" tal:define="foldeeps view/retrieveFolderDeepening" tal:condition="foldeeps">
<tr>
Expand Down Expand Up @@ -113,11 +120,6 @@
<strong><span i18n:translate="materie_label">Topic</span>:</strong>
<span tal:content="python:' | '.join(materie)"></span>
</div>
<div class="finanziatori-bando" tal:define="finanziato context/finanziato"
tal:condition="finanziato">
<strong><span i18n:translate="finanziatori_label">Financed by EU programmes</span></strong>
<!--span tal:content="finanziato"></span-->
</div>
</div>
<div class="visualClear"></div>
<section id="foldeeps">
Expand Down
19 changes: 9 additions & 10 deletions rer/bandi/interfaces/bandoSchema.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@ def checkRequiredField(value):

class IBandoSchema(model.Schema):
"""A Dexterity schema for Annoucements"""

finanziato = schema.Bool(
title=_("finanziatori_label", default="Financed by EU programmes"),
description=_("finanziatori_help", default="Seleziona questo campo se il bando è finanziato con fondi europei."),
required=False,
)

directives.widget(tipologia_bando=RadioFieldWidget)
tipologia_bando = schema.Choice(
title=_("tipologia_bando_label", default="Announcement type"),
Expand All @@ -42,12 +47,6 @@ class IBandoSchema(model.Schema):
),
)

finanziato = schema.Bool(
title=_("finanziatori_label", default="Financed by EU programmes"),
description=_("", default=""),
required=False,
)

directives.widget(materie=CheckBoxFieldWidget)
materie = schema.List(
title=_("materie_label", default="Topic"),
Expand Down Expand Up @@ -81,10 +80,10 @@ class IBandoSchema(model.Schema):
required=False,
)

form.order_after(tipologia_bando="IRichText.text")
form.order_after(finanziato="IRichText.text")
form.order_after(tipologia_bando="finanziato")
form.order_after(destinatari="tipologia_bando")
form.order_after(finanziato="destinatari")
form.order_after(materie="finanziato")
form.order_after(materie="destinatari")
form.order_after(scadenza_bando="materie")
form.order_after(chiusura_procedimento_bando="scadenza_bando")
form.order_after(riferimenti_bando="chiusura_procedimento_bando")

0 comments on commit 4ca9f9c

Please sign in to comment.