Example #1
0
 def __call__(_next, self, model, request):
     ajax_form_fiddle(request, '#content', 'inner')
     info = getNodeInfo(model.node_info_name)
     heading = u'<h1>Add %s</h1>' % info.title
     form = _next(self, model, request)
     if form is None:
         form = u''
     rendered = self.show_heading and heading + form or form
     return u'<div class="box">%s</div>' % rendered
Example #2
0
 def __call__(_next, self, model, request):
     ajax_form_fiddle(request, '#content', 'inner')
     form = _next(self, model, request)
     if not form:
         form = u''
     self.rendered_form = form
     path = self.path
     if not path:
         path = 'cone.app.browser:templates/content_form.pt'
     return render_template(
         path, request=request, model=model, context=self)
Example #3
0
 def __call__(_next, self, model, request):
     ajax_form_fiddle(request, '#content', 'inner')
     form = _next(self, model, request)
     if form is None:
         form = u''
     self.rendered_form = form
     path = self.path
     if not path:
         path = 'cone.app.browser:templates/content_form.pt'
     return render_template(
         path, request=request, model=model, context=self)
Example #4
0
 def __call__(_next, self, model, request):
     form = _next(self, model, request)
     selector = '%s %s' % (self.overlay_selector,
                           self.overlay_content_selector)
     ajax_form_fiddle(request, selector, 'inner')
     return form
Example #5
0
 def prepare(_next, self):
     _next(self)
     selector = '#form-%s' % '-'.join(self.form.path)
     ajax_form_fiddle(self.request, selector, 'replace')
Example #6
0
 def __call__(_next, self, model, request):
     ajax_form_fiddle(request, ".right_column", "inner")
     return _next(self, model, request)
Example #7
0
 def __call__(_next, self, model, request):
     ajax_form_fiddle(request, ".principal_form", "inner")
     return _next(self, model, request)
Example #8
0
 def __call__(_next, self, model, request):
     ajax_form_fiddle(request, '.principal_form', 'inner')
     return _next(self, model, request)
Example #9
0
 def __call__(_next, self, model, request):
     ajax_form_fiddle(request, '.right_column', 'inner')
     return _next(self, model, request)
Example #10
0
 def prepare(_next, self):
     _next(self)
     selector = '#form-%s' % '-'.join(self.form.path)
     ajax_form_fiddle(self.request, selector, 'replace')
Example #11
0
 def __call__(_next, self, model, request):
     form = _next(self, model, request)
     selector = '%s %s' % (self.overlay_selector,
                           self.overlay_content_selector)
     ajax_form_fiddle(request, selector, 'inner')
     return form
Example #12
0
 def __call__(_next, self, model, request):
     ajax_form_fiddle(request, '.right_column', 'inner')
     return _next(self, model, request)
Example #13
0
 def __call__(_next, self, model, request):
     ajax_form_fiddle(request, '.principal_form', 'inner')
     return _next(self, model, request)