equal
deleted
inserted
replaced
125 self.template_header(self.content_type, view) |
125 self.template_header(self.content_type, view) |
126 w = self.w |
126 w = self.w |
127 w(u'<div id="pageContent">\n') |
127 w(u'<div id="pageContent">\n') |
128 vtitle = self._cw.form.get('vtitle') |
128 vtitle = self._cw.form.get('vtitle') |
129 if vtitle: |
129 if vtitle: |
130 w(u'<h1 class="vtitle">%s</h1>\n' % xml_escape(vtitle)) |
130 w(u'<div class="vtitle">%s</div>\n' % xml_escape(vtitle)) |
131 # display entity type restriction component |
131 # display entity type restriction component |
132 etypefilter = self._cw.vreg['components'].select_or_none( |
132 etypefilter = self._cw.vreg['components'].select_or_none( |
133 'etypenavigation', self._cw, rset=self.cw_rset) |
133 'etypenavigation', self._cw, rset=self.cw_rset) |
134 if etypefilter and etypefilter.cw_propval('visible'): |
134 if etypefilter and etypefilter.cw_propval('visible'): |
135 etypefilter.render(w=w) |
135 etypefilter.render(w=w) |
189 |
189 |
190 def nav_column(self, view, context): |
190 def nav_column(self, view, context): |
191 boxes = list(self._cw.vreg['boxes'].poss_visible_objects( |
191 boxes = list(self._cw.vreg['boxes'].poss_visible_objects( |
192 self._cw, rset=self.cw_rset, view=view, context=context)) |
192 self._cw, rset=self.cw_rset, view=view, context=context)) |
193 if boxes: |
193 if boxes: |
|
194 getlayout = self._cw.vreg['components'].select |
194 self.w(u'<td id="navColumn%s"><div class="navboxes">\n' % context.capitalize()) |
195 self.w(u'<td id="navColumn%s"><div class="navboxes">\n' % context.capitalize()) |
195 for box in boxes: |
196 for box in boxes: |
196 box.render(w=self.w, view=view) |
197 box.render(w=self.w, view=view) |
197 self.w(u'</div></td>\n') |
198 self.w(u'</div></td>\n') |
198 |
199 |
267 w(u'</td>') |
268 w(u'</td>') |
268 w(u'<td id="contentcol" rowspan="2">') |
269 w(u'<td id="contentcol" rowspan="2">') |
269 w(u'<div id="pageContent">\n') |
270 w(u'<div id="pageContent">\n') |
270 vtitle = self._cw.form.get('vtitle') |
271 vtitle = self._cw.form.get('vtitle') |
271 if vtitle: |
272 if vtitle: |
272 w(u'<h1 class="vtitle">%s</h1>' % xml_escape(vtitle)) |
273 w(u'<div class="vtitle">%s</div>' % xml_escape(vtitle)) |
273 |
274 |
274 def topleft_header(self): |
275 def topleft_header(self): |
275 logo = self._cw.vreg['components'].select_or_none('logo', self._cw, |
276 logo = self._cw.vreg['components'].select_or_none('logo', self._cw, |
276 rset=self.cw_rset) |
277 rset=self.cw_rset) |
277 if logo and logo.cw_propval('visible'): |
278 if logo and logo.cw_propval('visible'): |
390 self.w(u'<div id="footer">') |
391 self.w(u'<div id="footer">') |
391 actions = self._cw.vreg['actions'].possible_actions(self._cw, |
392 actions = self._cw.vreg['actions'].possible_actions(self._cw, |
392 rset=self.cw_rset) |
393 rset=self.cw_rset) |
393 footeractions = actions.get('footer', ()) |
394 footeractions = actions.get('footer', ()) |
394 for i, action in enumerate(footeractions): |
395 for i, action in enumerate(footeractions): |
395 self.w(u'<a href="%s"' % action.url()) |
396 self.w(u'<a href="%s">%s</a>' % (action.url(), |
396 if getattr(action, 'html_class'): |
397 self._cw._(action.title))) |
397 self.w(u' class="%s"' % action.html_class()) |
|
398 self.w(u'>%s</a>' % self._cw._(action.title)) |
|
399 if i < (len(footeractions) - 1): |
398 if i < (len(footeractions) - 1): |
400 self.w(u' | ') |
399 self.w(u' | ') |
401 self.w(u'</div>') |
400 self.w(u'</div>') |
402 |
401 |
403 |
402 |