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
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)
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)
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
def prepare(_next, self): _next(self) selector = '#form-%s' % '-'.join(self.form.path) ajax_form_fiddle(self.request, selector, 'replace')
def __call__(_next, self, model, request): ajax_form_fiddle(request, ".right_column", "inner") return _next(self, model, request)
def __call__(_next, self, model, request): ajax_form_fiddle(request, ".principal_form", "inner") return _next(self, model, request)
def __call__(_next, self, model, request): ajax_form_fiddle(request, '.principal_form', 'inner') return _next(self, model, request)
def __call__(_next, self, model, request): ajax_form_fiddle(request, '.right_column', 'inner') return _next(self, model, request)