Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #2 from evildmp/master

Make the plugin text_enabled for django CMS
  • Loading branch information...
commit 6140a6e261167e16c78f18cd2c1470dc23bc466d 2 parents 4adbe1f + aa9ed6a
@raumkraut authored
View
4 form_designer/contrib/cms_plugins/form_designer_form/cms_plugins.py
@@ -16,7 +16,7 @@ class FormDesignerPlugin(CMSPluginBase):
module = _('Form Designer')
name = _('Form')
admin_preview = False
-
+ text_enabled=True
def render(self, context, instance, placeholder):
if instance.form_definition.form_template_name:
self.render_template = instance.form_definition.form_template_name
@@ -30,5 +30,7 @@ def render(self, context, instance, placeholder):
return response
+ def icon_src(self, instance):
+ return "/static/plugin_icons/form.png"
plugin_pool.register_plugin(FormDesignerPlugin)
View
BIN  form_designer/static/plugin_icons/form.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Please sign in to comment.
Something went wrong with that request. Please try again.