Conjunto de mudanças 6578 no repositório publico
- Timestamp:
- 28/06/2012 20:38:10 (9 anos atrás)
- Localização:
- PortalInterlegis/produtos/il.portalinterlegis/trunk/src/il/portalinterlegis/browser
- Arquivos:
-
- 1 adicionado
- 4 editados
Legenda:
- Não Modificado
- Adicionado
- Removido
-
PortalInterlegis/produtos/il.portalinterlegis/trunk/src/il/portalinterlegis/browser/boxes/interfaces.py
r6575 r6578 22 22 23 23 24 @rich(text=WysiwygFieldWidget, target=AutocompleteFieldWidget) 24 # TODO: title in "almost" WysiwygFieldWidget... (just <b></b> allowed)... configure Tiny and filters 25 @rich(text=WysiwygFieldWidget, 26 target=AutocompleteFieldWidget) 25 27 class IRelated(BoxSchema): 26 28 target = schema.Choice(title=u"Conteúdo relacionado", … … 33 35 34 36 class ISuperTitleBox(IRelated): 37 # TODO: usar hint para que este campo seja o primeiro 35 38 supertitle = schema.TextLine(title=u"Supertítulo", required=True) 36 39 -
PortalInterlegis/produtos/il.portalinterlegis/trunk/src/il/portalinterlegis/browser/boxes/templates/ihighlight.html
r6495 r6578 1 2 1 <h2 class="box-header">Destaque</h2> 2 TODO: <br/><br/><br/> -
PortalInterlegis/produtos/il.portalinterlegis/trunk/src/il/portalinterlegis/browser/boxes/templates/isupertitlebox.html
r6575 r6578 1 1 <div class="simple-box"> 2 <a href="/portal/{{ target}}">3 <h2>{{ title}}</h2>4 <h3 class="icon-news">{{ subtitle}}</h3>2 <a href="/portal/{{ target }}"> 3 <h2>{{ supertitle }}</h2> 4 <h3 class="icon-news">{{ title }}</h3> 5 5 <p> 6 6 {{text}} -
PortalInterlegis/produtos/il.portalinterlegis/trunk/src/il/portalinterlegis/browser/homes.py
r6575 r6578 1 1 # -*- coding: utf-8 -*- 2 from collections import defaultdict 3 from itertools import count 4 2 5 from Products.CMFPlone.interfaces import IPloneSiteRoot 6 from five import grok 7 3 8 from boxes.carousel import CarouselBox 4 from boxes.interfaces import ISuperTitleBox, ICalendar, IAcompanheOInterlegis, IHighlight 9 from boxes.interfaces import ISuperTitleBox, ICalendar, IAcompanheOInterlegis, IHighlight, IRelated 5 10 from boxes.manager import DtRow, Box, GridView 6 11 from boxes.tabs import Tab, TabbedPane 7 from five import grok8 12 from interfaces import \ 9 13 IComunidadeLegislativa, IInformacao, ICapacitacao, ITecnologia, IComunicacao 10 14 11 15 12 # These are meant for more legible grid definitions. Do not overuse.16 # These are meant for more readable grid definitions. Do not overuse. 13 17 FULL = 16 14 ___, _ = DtRow, Box 15 18 _count_dict = defaultdict(count) 19 def _(interface): 20 return Box(interface, _count_dict[interface].next()) 21 ___ = DtRow 16 22 17 23 class Home(GridView): … … 21 27 22 28 grid = [ 23 ___((10, CarouselBox()), (6, _(ICalendar , 1)),),29 ___((10, CarouselBox()), (6, _(ICalendar)),), 24 30 ___((FULL, TabbedPane( 25 31 Tab(u'Informação', u'Informação Legislativa', 26 (4, _(I Highlight, 1)), (4, _(IHighlight, 1)), (4, _(IHighlight, 1)), (4, _(IHighlight, 1)),),32 (4, _(IRelated)), (4, _(IRelated)), (4, _(IRelated)), (4, _(IRelated)),), 27 33 Tab(u'Capacitação', u'Capacitação Legislativa', 28 (4, _(I Highlight, 1)), (4, _(IHighlight, 1)), (4, _(IHighlight, 1)), (4, _(IHighlight, 1)),),34 (4, _(IRelated)), (4, _(IRelated)), (4, _(IRelated)), (4, _(IRelated)),), 29 35 Tab(u'Tecnologia', u'Tecnologia Legislativa', 30 (4, _(I Highlight, 1)), (4, _(IHighlight, 1)), (4, _(IHighlight, 1)), (4, _(IHighlight, 1)),),36 (4, _(IRelated)), (4, _(IRelated)), (4, _(IRelated)), (4, _(IRelated)),), 31 37 Tab(u'Comunicação', u'Comunicação Legislativa', 32 (4, _(I Highlight, 1)), (4, _(IHighlight, 1)), (4, _(IHighlight, 1)), (4, _(IHighlight, 1)),),38 (4, _(IRelated)), (4, _(IRelated)), (4, _(IRelated)), (4, _(IRelated)),), 33 39 ))), 34 ___((FULL, _(IAcompanheOInterlegis , 1)), ),35 ___((4, _(IHighlight , 1)), (4, _(ISuperTitleBox, 1)), (4, _(ISuperTitleBox, 2)), (4, _(ISuperTitleBox, 3)),),40 ___((FULL, _(IAcompanheOInterlegis)), ), 41 ___((4, _(IHighlight)), (4, _(ISuperTitleBox)), (4, _(ISuperTitleBox)), (4, _(ISuperTitleBox)),), 36 42 ] 37 43
Note: Veja
TracChangeset
para ajuda no uso do visualizador de conjunto de mudanças.